jamespot-react-components 1.3.138 → 1.3.162
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.cjs +2093 -1926
- package/dist/jamespot-react-components.js +25002 -24074
- package/dist/src/components/Editors/components/EditorImageUpload.d.ts +2 -1
- package/dist/src/components/Editors/components/EditorInput.d.ts +2 -1
- package/dist/src/components/Editors/components/EditorRichText.d.ts +2 -1
- package/dist/src/components/Form/Input/JRCSelect/JRCInputSelect.style.d.ts +4 -4
- package/dist/src/components/JRCButtonDropdown/JRCButtonDropdown.styles.d.ts +8 -8
- package/dist/src/components/JRCButtonDropdown/JRCButtonDropdown.types.d.ts +1 -1
- package/dist/src/components/JRCCalendar/JRCCalendar.d.ts +1 -1
- package/dist/src/components/JRCCalendar/types.d.ts +1 -0
- package/dist/src/components/JRCCollapse/JRCCollapse.d.ts +2 -0
- package/dist/src/components/JRCCommentsBloc/JRCComment.d.ts +1 -1
- package/dist/src/components/JRCCommentsBloc/JRCCommentsBloc.d.ts +2 -2
- package/dist/src/components/JRCConfirmationModal/JRCConfirmationModal.d.ts +2 -1
- package/dist/src/components/JRCDragNDrop/Draggable.d.ts +2 -1
- package/dist/src/components/JRCDragNDrop/Droppable.d.ts +1 -1
- package/dist/src/components/JRCDragNDrop/JRCDndOneLevel.d.ts +1 -1
- package/dist/src/components/JRCDragNDrop/types.d.ts +1 -0
- package/dist/src/components/JRCDropDown/JRCDropDown.d.ts +2 -1
- package/dist/src/components/JRCDropDown/JRCDropDown.stories.d.ts +1 -0
- package/dist/src/components/JRCEmptySpace/JRCEmptySpace.d.ts +2 -0
- package/dist/src/components/JRCFlex/JRCFlexBox.d.ts +2 -2
- package/dist/src/components/JRCHtml/JRCHtml.d.ts +1 -0
- package/dist/src/components/JRCPublishButton/JRCPublishButton.d.ts +6 -1
- package/dist/src/components/JRCRateStars/JRCRateStars.d.ts +2 -1
- package/dist/src/components/JRCTooltip/JRCBaseTooltip.d.ts +0 -2
- package/dist/src/components/Widgets/JRCWidgetAccordion/JRCWidgetAccordion.d.ts +5 -0
- package/dist/src/components/Widgets/JRCWidgetAccordion/JRCWidgetAccordionEditor.d.ts +7 -0
- package/dist/src/components/Widgets/JRCWidgetApplication/JRCWidgetApplication.const.d.ts +2 -7
- package/dist/src/components/Widgets/JRCWidgetArticle/JRCWidgetArticle.d.ts +5 -0
- package/dist/src/components/Widgets/JRCWidgetArticle/JRCWidgetArticleEditor.d.ts +7 -0
- package/dist/src/components/Widgets/JRCWidgetArticleTitle/JRCWidgetArticleTitleEditor.d.ts +0 -2
- package/dist/src/components/Widgets/JRCWidgetAttachment/JRCWidgetArticleAttachmentEditor.d.ts +0 -2
- package/dist/src/components/Widgets/JRCWidgetCheckList/JRCWidgetCheckListEditor.d.ts +1 -2
- package/dist/src/components/Widgets/JRCWidgetCountdown/Confetti.d.ts +1 -0
- package/dist/src/components/Widgets/JRCWidgetCountdown/CountdownEvent.d.ts +1 -1
- package/dist/src/components/Widgets/JRCWidgetCountdown/CountdownNumbers.d.ts +4 -1
- package/dist/src/components/Widgets/JRCWidgetCountdown/JRCWidgetCountdown.d.ts +4 -2
- package/dist/src/components/Widgets/JRCWidgetCountdown/JRCWidgetCountdown.stories.d.ts +9 -1
- package/dist/src/components/Widgets/JRCWidgetCountdown/countdown.utils.d.ts +20 -4
- package/dist/src/components/Widgets/JRCWidgetImage/JRCWidgetImage.d.ts +1 -0
- package/dist/src/components/Widgets/JRCWidgetImage/JRCWidgetImageEditor.d.ts +2 -1
- package/dist/src/components/Widgets/JRCWidgetList/JRCWidgetList.utils.d.ts +1 -0
- package/dist/src/components/Widgets/JRCWidgetList/WidgetListEntries.d.ts +12 -0
- package/dist/src/components/Widgets/JRCWidgetList/WidgetListEntryModal.d.ts +8 -0
- package/dist/src/components/Widgets/JRCWidgetPages/JRCWidgetPages.const.d.ts +1 -0
- package/dist/src/components/Widgets/JRCWidgetPages/JRCWidgetPages.d.ts +8 -0
- package/dist/src/components/Widgets/JRCWidgetPages/JRCWidgetPages.utils.d.ts +24 -0
- package/dist/src/components/Widgets/JRCWidgetPages/JRCWidgetPagesEditor.d.ts +19 -0
- package/dist/src/components/Widgets/JRCWidgetPages/WidgetPagesEntries.d.ts +20 -0
- package/dist/src/components/Widgets/JRCWidgetQuickSurvey/JRCWidgetQuickSurveyEditor.d.ts +1 -2
- package/dist/src/components/Widgets/JRCWidgetSkeleton.d.ts +1 -1
- package/dist/src/components/Widgets/JRCWidgetSlider/JRCWidgetSliderEditor.d.ts +1 -0
- package/dist/src/components/Widgets/JRCWidgetSlider/JRCWidgetSliderEditorSlide.d.ts +2 -1
- package/dist/src/components/Widgets/JRCWidgetWall/JRCWidgetWallEditor.d.ts +7 -0
- package/dist/src/components/Widgets/JRCWidgetWall/JRCWidgetWallEditor.stories.d.ts +7 -0
- package/dist/src/components/Widgets/JRCWidgetWelcome/JRCWidgetWelcome.stories.d.ts +1 -1
- package/dist/src/components/Widgets/const.d.ts +8 -0
- package/dist/src/components/Widgets/context/provider.d.ts +2 -2
- package/dist/src/components/Widgets/utils.d.ts +2 -0
- package/dist/src/components/index.d.ts +11 -3
- package/dist/src/translation/lang.json.d.ts +27 -14
- package/dist/src/utils/index.d.ts +3 -1
- package/dist/src/utils/utils.html.d.ts +4 -1
- package/dist/src/utils/utils.tinymce.d.ts +3 -1
- package/package.json +4 -4
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { WidgetPagesEntry } from 'jamespot-user-api';
|
|
2
|
+
import { WidgetPagesEntryPath } from './JRCWidgetPages.utils';
|
|
3
|
+
export declare const CSSWidgetPagesRow: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
4
|
+
export declare const CSSWidgetPagesTitle: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
5
|
+
export type WidgetPagesEntryHandlers = {
|
|
6
|
+
onRename: (path: WidgetPagesEntryPath, title: string) => void;
|
|
7
|
+
onPickIcon: (path: WidgetPagesEntryPath) => void;
|
|
8
|
+
onRemoveIcon: (path: WidgetPagesEntryPath) => void;
|
|
9
|
+
onEditPage: ((path: WidgetPagesEntryPath) => void) | undefined;
|
|
10
|
+
onRemove: (path: WidgetPagesEntryPath) => void;
|
|
11
|
+
onAddChild: (path: WidgetPagesEntryPath) => void;
|
|
12
|
+
onToggleOpen: (path: WidgetPagesEntryPath) => void;
|
|
13
|
+
onMove: (parentPath: WidgetPagesEntryPath, dragIndex: number, hoverIndex: number) => void;
|
|
14
|
+
};
|
|
15
|
+
type WidgetPagesEntriesProps = WidgetPagesEntryHandlers & {
|
|
16
|
+
entries: WidgetPagesEntry[];
|
|
17
|
+
parentKey: string;
|
|
18
|
+
};
|
|
19
|
+
export declare const WidgetPagesEntries: ({ entries, parentKey, onRename, onPickIcon, onRemoveIcon, onEditPage, onRemove, onAddChild, onToggleOpen, onMove, }: WidgetPagesEntriesProps) => import("react").JSX.Element | null;
|
|
20
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { WidgetQuickSurveyContent, WidgetQuickSurveyContentArr } from 'jamespot-user-api';
|
|
2
2
|
type JRCWidgetSurveyEditorProps = {
|
|
3
3
|
token?: string;
|
|
4
4
|
uniqid: string;
|
|
@@ -12,7 +12,6 @@ type JRCWidgetSurveyEditorProps = {
|
|
|
12
12
|
uniqid: string;
|
|
13
13
|
title: string;
|
|
14
14
|
}) => void;
|
|
15
|
-
onSave?: (uniqid: string, content: Partial<CombinedWidgetContent>) => void;
|
|
16
15
|
handleChange: (content: Partial<WidgetQuickSurveyContent>) => void;
|
|
17
16
|
};
|
|
18
17
|
export declare const JRCWidgetQuickSurveyEditor: ({ token, uniqid, uri, content, inplace, handleChange, }: JRCWidgetSurveyEditorProps) => import("react").JSX.Element;
|
|
@@ -4,4 +4,4 @@ export type JRCWidgetSkeletonProps = {
|
|
|
4
4
|
maxHeight: number;
|
|
5
5
|
name: WidgetKeys;
|
|
6
6
|
};
|
|
7
|
-
export declare const JRCWidgetSkeleton: ({ maxWidth, maxHeight, name }: JRCWidgetSkeletonProps) => import("react").JSX.Element;
|
|
7
|
+
export declare const JRCWidgetSkeleton: ({ maxWidth, maxHeight, name }: JRCWidgetSkeletonProps) => import("react").JSX.Element | null;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { WidgetSliderContent } from 'jamespot-user-api';
|
|
2
2
|
import { JRCInputTinyMCERawProps } from '../../Form/Input/JRCInputTinyMCERaw/JRCInputTinyMCERaw';
|
|
3
|
+
export declare function slideUUID(): string;
|
|
3
4
|
export declare const JRCWidgetSliderEditor: ({ slides, loop, autoplay, delay, useDots, token, onChange, tinyMCECommonOptions, }: WidgetSliderContent & {
|
|
4
5
|
token: string;
|
|
5
6
|
onSave: (content: Partial<WidgetSliderContent>) => void;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { WidgetCoverSlide } from 'jamespot-user-api';
|
|
2
2
|
import { JRCInputTinyMCERawProps } from '../../Form/Input/JRCInputTinyMCERaw/JRCInputTinyMCERaw';
|
|
3
|
-
export declare const JRCWidgetSliderEditorSlide: ({ forceOpen, id, title, text, titleHeading, textColor, opacityColor, opacityFilter, button, token, onUploadSuccess, onSave, onClickDelete, tinyMCECommonOptions, }: {
|
|
3
|
+
export declare const JRCWidgetSliderEditorSlide: ({ forceOpen, id, title, text, titleHeading, textColor, opacityColor, opacityFilter, button, token, onUploadSuccess, onSave, onClickDelete, onClose, tinyMCECommonOptions, }: {
|
|
4
4
|
forceOpen?: boolean;
|
|
5
5
|
token?: string;
|
|
6
6
|
onUploadStart: () => void;
|
|
7
7
|
onUploadSuccess: (id: number | undefined) => void;
|
|
8
8
|
onSave: (slide: Partial<WidgetCoverSlide>) => void;
|
|
9
9
|
onClickDelete: () => void;
|
|
10
|
+
onClose: () => void;
|
|
10
11
|
tinyMCECommonOptions?: Pick<JRCInputTinyMCERawProps, "commonOptions" | "mentionsQueries">;
|
|
11
12
|
} & Pick<WidgetCoverSlide, "id" | "title" | "text" | "titleHeading" | "textColor" | "opacityColor" | "opacityFilter" | "button">) => import("react").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { WidgetWallContent } from 'jamespot-user-api';
|
|
2
|
+
export interface JRCWidgetWallEditorProps {
|
|
3
|
+
uniqid: string;
|
|
4
|
+
content: WidgetWallContent;
|
|
5
|
+
onChangeContent: (uniqid: string, content: WidgetWallContent) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const JRCWidgetWallEditor: ({ uniqid, content, onChangeContent }: JRCWidgetWallEditorProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { JRCWidgetWallEditor } from './JRCWidgetWallEditor';
|
|
3
|
+
declare const meta: Meta<typeof JRCWidgetWallEditor>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof JRCWidgetWallEditor>;
|
|
6
|
+
export declare const Automatic: Story;
|
|
7
|
+
export declare const Manual: Story;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Meta } from '@storybook/react-vite';
|
|
2
|
+
import { EditorFontSize, Position, ProfileDisplayType, TextFontWeight } from '../const';
|
|
2
3
|
import { JRCWidgetWelcome } from './JRCWidgetWelcome';
|
|
3
|
-
import { ProfileDisplayType, Position, TextFontWeight, EditorFontSize } from '../const';
|
|
4
4
|
declare const _default: Meta<typeof JRCWidgetWelcome>;
|
|
5
5
|
export default _default;
|
|
6
6
|
export declare const Default: {
|
|
@@ -143,6 +143,14 @@ export declare const ProfileDisplayOptions: {
|
|
|
143
143
|
label: string;
|
|
144
144
|
value: ProfileDisplayType;
|
|
145
145
|
}[];
|
|
146
|
+
export declare enum WelcomeDisplayType {
|
|
147
|
+
WithFirstName = "1",
|
|
148
|
+
WithFirstNameLastName = "2"
|
|
149
|
+
}
|
|
150
|
+
export declare const WelcomeDisplayOptions: {
|
|
151
|
+
label: string;
|
|
152
|
+
value: WelcomeDisplayType;
|
|
153
|
+
}[];
|
|
146
154
|
export declare enum ProfilePictureSize {
|
|
147
155
|
Small = "60",
|
|
148
156
|
Medium = "80",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { HookListType, WidgetContentRaw, WidgetStateProps } from 'jamespot-user-api';
|
|
3
3
|
export type HookIsActive = (name: keyof HookListType) => boolean | undefined;
|
|
4
4
|
type OnError = (message: string) => void;
|
|
5
5
|
type OnStateChange = (state: WidgetStateProps) => void;
|
|
@@ -10,7 +10,7 @@ export type Handlers = {
|
|
|
10
10
|
handleCatch: (reason: any) => void;
|
|
11
11
|
handleFinally: () => void;
|
|
12
12
|
};
|
|
13
|
-
export type EditorBaseContext<T =
|
|
13
|
+
export type EditorBaseContext<T = WidgetContentRaw> = {
|
|
14
14
|
hook?: {
|
|
15
15
|
isActive: HookIsActive;
|
|
16
16
|
};
|
|
@@ -5,9 +5,11 @@ export declare function imageResize(width: number, height: number, maxWidth: num
|
|
|
5
5
|
height: number;
|
|
6
6
|
};
|
|
7
7
|
export declare const mockFileLittle: () => jFileLittle;
|
|
8
|
+
export declare function resolvePosition(position: string | null | undefined): Position;
|
|
8
9
|
export declare function getPositionStyle(position: Position): React.CSSProperties;
|
|
9
10
|
export declare const mock_jUserList: () => jUserList;
|
|
10
11
|
export declare const getCurrentUserDisplayText: (displayMode: string, currentUser: jUserList) => string;
|
|
12
|
+
export declare const getWelcomeCurrentUserDisplayText: (displayMode: string, currentUser: jUserList) => string;
|
|
11
13
|
export declare function explodeUri(uri: string): {
|
|
12
14
|
id: number;
|
|
13
15
|
type: string | undefined;
|
|
@@ -167,8 +167,12 @@ export { JRCStepperPage } from './Templates/JRCStepperPage';
|
|
|
167
167
|
export { JRCTemplateTwoColumns } from './Templates/JRCTwoColumns.template';
|
|
168
168
|
export { JRCWidgetAccessibility } from './Widgets/JRCWidgetAccessibility/JRCWidgetAccessibility';
|
|
169
169
|
export { JRCWidgetAccessibilityEditor } from './Widgets/JRCWidgetAccessibility/JRCWidgetAccessibilityEditor';
|
|
170
|
+
export { JRCWidgetAccordion } from './Widgets/JRCWidgetAccordion/JRCWidgetAccordion';
|
|
171
|
+
export { JRCWidgetAccordionEditor } from './Widgets/JRCWidgetAccordion/JRCWidgetAccordionEditor';
|
|
170
172
|
export { JRCWidgetApplication } from './Widgets/JRCWidgetApplication/JRCWidgetApplication';
|
|
171
173
|
export { JRCWidgetApplicationEditor } from './Widgets/JRCWidgetApplication/JRCWidgetApplicationEditor';
|
|
174
|
+
export { JRCWidgetArticle } from './Widgets/JRCWidgetArticle/JRCWidgetArticle';
|
|
175
|
+
export { JRCWidgetArticleEditor } from './Widgets/JRCWidgetArticle/JRCWidgetArticleEditor';
|
|
172
176
|
export { JRCWidgetArticleButton } from './Widgets/JRCWidgetArticleButton/JRCWidgetArticleButton';
|
|
173
177
|
export { JRCWidgetArticleButtonEditor } from './Widgets/JRCWidgetArticleButton/JRCWidgetArticleButtonEditor';
|
|
174
178
|
export { JRCWidgetArticleGallery } from './Widgets/JRCWidgetArticleGallery/JRCWidgetArticleGallery';
|
|
@@ -199,6 +203,7 @@ export { JRCWidgetContactEditor } from './Widgets/JRCWidgetContact/JRCWidgetCont
|
|
|
199
203
|
export { JRCWidgetContactCardDav } from './Widgets/JRCWidgetContactCardDav/JRCWidgetContactCardDav';
|
|
200
204
|
export { JRCWidgetContactCardDavEditor } from './Widgets/JRCWidgetContactCardDav/JRCWidgetContactCardDavEditor';
|
|
201
205
|
export { JRCWidgetCountdown } from './Widgets/JRCWidgetCountdown/JRCWidgetCountdown';
|
|
206
|
+
export { countdownSize, type CountdownSize } from './Widgets/JRCWidgetCountdown/countdown.utils';
|
|
202
207
|
export { JRCWidgetCountdownEditor } from './Widgets/JRCWidgetCountdown/JRCWidgetCountdownEditor';
|
|
203
208
|
export { JRCWidgetCover } from './Widgets/JRCWidgetCover/JRCWidgetCover';
|
|
204
209
|
export { JRCWidgetCoverEditor } from './Widgets/JRCWidgetCover/JRCWidgetCoverEditor';
|
|
@@ -214,8 +219,6 @@ export { JRCWidgetFaq } from './Widgets/JRCWidgetFaq/JRCWidgetFaq';
|
|
|
214
219
|
export { JRCWidgetFaqEditor } from './Widgets/JRCWidgetFaq/JRCWidgetFaqEditor';
|
|
215
220
|
export { JRCWidgetFile } from './Widgets/JRCWidgetFile/JRCWidgetFile';
|
|
216
221
|
export { JRCWidgetFileEditor } from './Widgets/JRCWidgetFile/JRCWidgetFileEditor';
|
|
217
|
-
export { JRCWidgetQuizz } from './Widgets/JRCWidgetQuizz/JRCWidgetQuizz';
|
|
218
|
-
export { JRCWidgetQuizzEditor } from './Widgets/JRCWidgetQuizz/JRCWidgetQuizzEditor';
|
|
219
222
|
export { JRCWidgetFlockler } from './Widgets/JRCWidgetFlockler/JRCWidgetFlockler';
|
|
220
223
|
export { JRCWidgetFlocklerEditor } from './Widgets/JRCWidgetFlockler/JRCWidgetFlocklerEditor';
|
|
221
224
|
export { JRCWidgetIcon } from './Widgets/JRCWidgetIcon';
|
|
@@ -223,12 +226,13 @@ export { JRCWidgetImage } from './Widgets/JRCWidgetImage/JRCWidgetImage';
|
|
|
223
226
|
export { JRCWidgetImageEditor } from './Widgets/JRCWidgetImage/JRCWidgetImageEditor';
|
|
224
227
|
export { JRCWidgetList } from './Widgets/JRCWidgetList/JRCWidgetList';
|
|
225
228
|
export { JRCWidgetListEditor } from './Widgets/JRCWidgetList/JRCWidgetListEditor';
|
|
229
|
+
export { JRCWidgetPages } from './Widgets/JRCWidgetPages/JRCWidgetPages';
|
|
230
|
+
export { JRCWidgetPagesEditor } from './Widgets/JRCWidgetPages/JRCWidgetPagesEditor';
|
|
226
231
|
export { JRCWidgetLuccaAbsence } from './Widgets/JRCWidgetLuccaAbsence/JRCWidgetLuccaAbsence';
|
|
227
232
|
export { JRCWidgetLuccaAbsenceEditor } from './Widgets/JRCWidgetLuccaAbsence/JRCWidgetLuccaAbsenceEditor';
|
|
228
233
|
export { JRCWidgetMeteo } from './Widgets/JRCWidgetMeteo/JRCWidgetMeteo';
|
|
229
234
|
export { JRCWidgetMeteoEditor } from './Widgets/JRCWidgetMeteo/JRCWidgetMeteoEditor';
|
|
230
235
|
export { JRCWidgetMyGroup } from './Widgets/JRCWidgetMyGroup/JRCWidgetMyGroup';
|
|
231
|
-
export { JRCWidgetShortcuts } from './Widgets/JRCWidgetShortcuts/JRCWidgetShortcuts';
|
|
232
236
|
export { JRCWidgetNews } from './Widgets/JRCWidgetNews/JRCWidgetNews';
|
|
233
237
|
export { JRCWidgetNewsEditor } from './Widgets/JRCWidgetNews/JRCWidgetNewsEditor';
|
|
234
238
|
export { JRCWidgetNewsflash } from './Widgets/JRCWidgetNewsflash/JRCWidgetNewsflash';
|
|
@@ -237,8 +241,11 @@ export { JRCWidgetPresence } from './Widgets/JRCWidgetPresence/JRCWidgetPresence
|
|
|
237
241
|
export { JRCWidgetPresenceEditor } from './Widgets/JRCWidgetPresence/JRCWidgetPresenceEditor';
|
|
238
242
|
export { JRCWidgetQuickSurvey } from './Widgets/JRCWidgetQuickSurvey/JRCWidgetQuickSurvey';
|
|
239
243
|
export { JRCWidgetQuickSurveyEditor } from './Widgets/JRCWidgetQuickSurvey/JRCWidgetQuickSurveyEditor';
|
|
244
|
+
export { JRCWidgetQuizz } from './Widgets/JRCWidgetQuizz/JRCWidgetQuizz';
|
|
245
|
+
export { JRCWidgetQuizzEditor } from './Widgets/JRCWidgetQuizz/JRCWidgetQuizzEditor';
|
|
240
246
|
export { JRCWidgetSeparator } from './Widgets/JRCWidgetSeparator/JRCWidgetSeparator';
|
|
241
247
|
export { JRCWidgetSeparatorEditor } from './Widgets/JRCWidgetSeparator/JRCWidgetSeparatorEditor';
|
|
248
|
+
export { JRCWidgetShortcuts } from './Widgets/JRCWidgetShortcuts/JRCWidgetShortcuts';
|
|
242
249
|
export { JRCWidgetSkeleton } from './Widgets/JRCWidgetSkeleton';
|
|
243
250
|
export { CoverSliderSlide } from './Widgets/JRCWidgetSlider/components/CoverSliderSlide';
|
|
244
251
|
export { JRCWidgetSliderEditor } from './Widgets/JRCWidgetSlider/JRCWidgetSliderEditor';
|
|
@@ -253,6 +260,7 @@ export { JRCWidgetText } from './Widgets/JRCWidgetText/JRCWidgetText';
|
|
|
253
260
|
export { JRCWidgetTextEditor } from './Widgets/JRCWidgetText/JRCWidgetTextEditor';
|
|
254
261
|
export { JRCWidgetUserProfile } from './Widgets/JRCWidgetUserProfile/JRCWidgetUserProfile';
|
|
255
262
|
export { JRCWidgetUserProfileEditor } from './Widgets/JRCWidgetUserProfile/JRCWidgetUserProfileEditor';
|
|
263
|
+
export { JRCWidgetWallEditor } from './Widgets/JRCWidgetWall/JRCWidgetWallEditor';
|
|
256
264
|
export { JRCWidgetWelcome } from './Widgets/JRCWidgetWelcome/JRCWidgetWelcome';
|
|
257
265
|
export { JRCWidgetWelcomeEditor } from './Widgets/JRCWidgetWelcome/JRCWidgetWelcomeEditor';
|
|
258
266
|
export { JRCWidgetYoutubeEditor } from './Widgets/JRCWidgetYoutube/JRCWidgetYoutubeEditor';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
"en": {
|
|
3
|
+
"LINK_Target_Blank": "New tab",
|
|
4
|
+
"LINK_Target_Self": "Same tab",
|
|
3
5
|
"WIDGET_Charts": "Charts",
|
|
4
6
|
"WIDGET_Charts_Title": "Title",
|
|
5
7
|
"WIDGET_Charts_Subtitle": "Subtitle",
|
|
@@ -62,6 +64,7 @@ declare const _default: {
|
|
|
62
64
|
"WIDGET_METEO": "Weather",
|
|
63
65
|
"WIDGET_METEO_TEXT": "Display the weather in real time",
|
|
64
66
|
"WIDGET_METEO_Iframe": "Weather by Météo France",
|
|
67
|
+
"WIDGET_Wall_Show_More_Button": "Loading the following items",
|
|
65
68
|
"ACTIVITY_Can_Not_comment_Desc": "You cannot comment on this content. Several reasons are possible:<p>- You are not part of the audience of the content</p><p>- You do not have sufficient rights according to the group settings</p><p>- A solar storm creates interference (less likely, but you never know)",
|
|
66
69
|
"ADD_FAVORITE": "Add to favorites",
|
|
67
70
|
"APP_Animated_Meeting": "Diapazone",
|
|
@@ -317,6 +320,8 @@ declare const _default: {
|
|
|
317
320
|
"GLOBAL_Insert": "Insert",
|
|
318
321
|
"GLOBAL_Jamespot": "Jamespot",
|
|
319
322
|
"GLOBAL_Load_More": "Load more results",
|
|
323
|
+
"GLOBAL_Automatic": "Automatic",
|
|
324
|
+
"GLOBAL_Manual": "Manual",
|
|
320
325
|
"GLOBAL_Loading": "Loading",
|
|
321
326
|
"GLOBAL_Login": "Login",
|
|
322
327
|
"GLOBAL_Move": "Move",
|
|
@@ -360,6 +365,7 @@ declare const _default: {
|
|
|
360
365
|
"GLOBAL_Start_typing": "Start typing to search",
|
|
361
366
|
"GLOBAL_Successffully_Deleted": "Successfully deleted",
|
|
362
367
|
"GLOBAL_Today": "Today",
|
|
368
|
+
"GLOBAL_Try_Again": "Try again",
|
|
363
369
|
"GLOBAL_Type_Selection": "Choose a type",
|
|
364
370
|
"GLOBAL_Unsuccessfully_Deleted": "An error occured while deleting your content",
|
|
365
371
|
"GLOBAL_Unsuported_File_Format": "Unsupported file format",
|
|
@@ -607,6 +613,11 @@ declare const _default: {
|
|
|
607
613
|
"WIDGET_Survey_Multiple_Help": "Allow multiple responses",
|
|
608
614
|
"WIDGET_Survey_Multiple": "Multiple response",
|
|
609
615
|
"WIDGET_Survey_Open_Help": "Allows other users to add suggestion",
|
|
616
|
+
"JAG_COUNTDOWN_Finish": "Countdown over!",
|
|
617
|
+
"GLOBAL_Show_Content": "View content",
|
|
618
|
+
"GLOBAL_Join": "Join",
|
|
619
|
+
"GLOBAL_Seconds": "Seconds",
|
|
620
|
+
"GLOBAL_Error": "An error has occurred. Please check your required fields.",
|
|
610
621
|
"WIDGET_Countdown_Days": "Day(s)",
|
|
611
622
|
"WIDGET_Countdown_Hours": "Hour(s)",
|
|
612
623
|
"WIDGET_Countdown_Minutes": "Minutes(s)",
|
|
@@ -720,20 +731,22 @@ declare const _default: {
|
|
|
720
731
|
"WIDGET_Button_Opening_Type_Popup": "Popup",
|
|
721
732
|
"WIDGET_Button_Opening_Type_Popup_Content": "Add a content popup",
|
|
722
733
|
"BUTTON_Button_Href": "Button link",
|
|
723
|
-
"BUTTON_Button_Target": "Opening type"
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
"
|
|
727
|
-
"
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
"
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
"
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
"
|
|
734
|
+
"BUTTON_Button_Target": "Opening type",
|
|
735
|
+
"title_Cover": "Title cover page",
|
|
736
|
+
"WIDGET_Pages_Create_Cover": "Create the cover page",
|
|
737
|
+
"WIDGET_Pages_Add_Entry": "Add entry",
|
|
738
|
+
"WIDGET_Pages_Add_Icon": "Add icon",
|
|
739
|
+
"WIDGET_Pages_Menu_Settings": "Menu settings",
|
|
740
|
+
"WIDGET_Pages_Menu_delete_Entry": "Delete entry",
|
|
741
|
+
"BUTTON_Open_Entry": "Open all entrances",
|
|
742
|
+
"INTRANET_Menu_Add_Entry": "Add an entry",
|
|
743
|
+
"INTRANET_Menu_Limit": "Menu is limited to 3 levels",
|
|
744
|
+
"WIDGET_PAGE_Nb_Entries": "Number of entry(s) and sub-entry(s): ",
|
|
745
|
+
"GLOBAL_Confirm_Delete": "Are you sure you want to delete this?",
|
|
746
|
+
"GLOBAL_Remove_Icon": "Remove icon",
|
|
747
|
+
"GLOBAL_Collapse": "Collapse",
|
|
748
|
+
"GLOBAL_Open": "Open",
|
|
749
|
+
"WIDGET_Pages": "Rubrics"
|
|
737
750
|
}
|
|
738
751
|
}
|
|
739
752
|
;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { configureIframeSandbox } from './utils.html';
|
|
1
2
|
import * as array from './utils.array';
|
|
2
3
|
import * as date from './utils.date';
|
|
3
4
|
import * as document from './utils.document';
|
|
@@ -26,9 +27,10 @@ export declare const Utils: {
|
|
|
26
27
|
string: typeof string;
|
|
27
28
|
time: typeof time;
|
|
28
29
|
tinymce: {
|
|
29
|
-
initTinyMCEOptions: (dynamicOptions: import('jamespot-user-api').TinyMCEDynamicOptions) => import('jamespot-user-api').TinyMCECommonOptions;
|
|
30
|
+
initTinyMCEOptions: (dynamicOptions: import('jamespot-user-api').TinyMCEDynamicOptions, platformPalette?: string[]) => import('jamespot-user-api').TinyMCECommonOptions;
|
|
30
31
|
};
|
|
31
32
|
html: {
|
|
33
|
+
configureIframeSandbox: typeof configureIframeSandbox;
|
|
32
34
|
htmlDecodeSpecialChars: (str: string) => string;
|
|
33
35
|
};
|
|
34
36
|
};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
export declare function
|
|
1
|
+
export declare function configureIframeSandbox(enabled: boolean, exclusions: string[]): void;
|
|
2
|
+
export declare function sanitizeHtml(dirtyHtml?: string, options?: {
|
|
3
|
+
useAdminIframeSettings?: boolean;
|
|
4
|
+
}): string;
|
|
2
5
|
/**
|
|
3
6
|
* Same sanitization as `sanitizeHtml`, minus anything that can take focus — for excerpts rendered
|
|
4
7
|
* inside a clickable card, where a nested link would be invalid HTML and an off-screen focusable
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { TinyMCECommonOptions, TinyMCEDynamicOptions } from 'jamespot-user-api';
|
|
2
|
-
|
|
2
|
+
import { Editor } from 'tinymce';
|
|
3
|
+
export declare const initTinyMCEOptions: (dynamicOptions: TinyMCEDynamicOptions, platformPalette?: string[]) => TinyMCECommonOptions;
|
|
3
4
|
export declare const tinyMCEOptions_mock: TinyMCECommonOptions;
|
|
5
|
+
export declare const insertMention: (editor: Editor, range: Range, value: string) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-react-components",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.162",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/jamespot-react-components.cjs",
|
|
6
6
|
"module": "dist/jamespot-react-components.js",
|
|
@@ -60,8 +60,6 @@
|
|
|
60
60
|
"eslint-plugin-storybook": "10.3.6",
|
|
61
61
|
"globals": "^16.5.0",
|
|
62
62
|
"html2canvas": "^1.4.1",
|
|
63
|
-
"jamespot-front-business": "^1.3.138",
|
|
64
|
-
"jamespot-user-api": "^1.3.138",
|
|
65
63
|
"jsdom": "^26.1.0",
|
|
66
64
|
"knip": "^5.88.1",
|
|
67
65
|
"lint-staged": "^16.4.0",
|
|
@@ -90,7 +88,9 @@
|
|
|
90
88
|
"vite": "^7.3.6",
|
|
91
89
|
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
92
90
|
"vite-plugin-dts": "^4.5.4",
|
|
93
|
-
"vitest": "^4.1.10"
|
|
91
|
+
"vitest": "^4.1.10",
|
|
92
|
+
"jamespot-front-business": "1.3.162",
|
|
93
|
+
"jamespot-user-api": "1.3.162"
|
|
94
94
|
},
|
|
95
95
|
"lint-staged": {
|
|
96
96
|
"*.{js,jsx,ts,tsx}": [
|