jamespot-react-components 1.3.130 → 1.3.132
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 +1806 -1592
- package/dist/jamespot-react-components.js +18046 -17445
- package/dist/src/components/Widgets/JRCWidgetCharts/JRCWidgetCharts.d.ts +2 -1
- package/dist/src/components/Widgets/JRCWidgetList/JRCWidgetList.const.d.ts +13 -0
- package/dist/src/components/Widgets/JRCWidgetList/JRCWidgetList.d.ts +10 -0
- package/dist/src/components/Widgets/JRCWidgetList/JRCWidgetList.stories.d.ts +6 -0
- package/dist/src/components/Widgets/JRCWidgetList/JRCWidgetList.utils.d.ts +7 -0
- package/dist/src/components/Widgets/JRCWidgetList/JRCWidgetListEditor.d.ts +13 -0
- package/dist/src/components/Widgets/JRCWidgetQuizz/JRCWidgetQuizz.d.ts +14 -0
- package/dist/src/components/Widgets/JRCWidgetQuizz/JRCWidgetQuizz.stories.d.ts +23 -0
- package/dist/src/components/Widgets/JRCWidgetQuizz/JRCWidgetQuizz.styles.d.ts +13 -0
- package/dist/src/components/Widgets/JRCWidgetQuizz/JRCWidgetQuizzEditor.d.ts +8 -0
- package/dist/src/components/Widgets/JRCWidgetQuizz/JRCWidgetQuizzForm.d.ts +10 -0
- package/dist/src/components/Widgets/JRCWidgetQuizz/JRCWidgetQuizzQuestion.d.ts +11 -0
- package/dist/src/components/Widgets/JRCWidgetQuizz/JRCWidgetQuizzResult.d.ts +7 -0
- package/dist/src/components/Widgets/JRCWidgetQuizz/QuizzSelectionModal.d.ts +7 -0
- package/dist/src/components/Widgets/JRCWidgetQuizz/useQuizzSelection.d.ts +15 -0
- package/dist/src/components/Widgets/JRCWidgetShortcuts/JRCWidgetShortcuts.const.d.ts +4 -0
- package/dist/src/components/Widgets/JRCWidgetShortcuts/JRCWidgetShortcuts.d.ts +7 -0
- package/dist/src/components/Widgets/JRCWidgetShortcuts/JRCWidgetShortcuts.stories.d.ts +6 -0
- package/dist/src/components/Widgets/JRCWidgetShortcuts/JRCWidgetShortcuts.utils.d.ts +20 -0
- package/dist/src/components/Widgets/JRCWidgetShortcuts/ShortcutRow.d.ts +6 -0
- package/dist/src/components/Widgets/JRCWidgetShortcuts/ShortcutThumbnail.d.ts +6 -0
- package/dist/src/components/index.d.ts +5 -0
- package/dist/src/index.d.ts +5 -2
- package/dist/src/translation/lang.json.d.ts +24 -2
- package/package.json +3 -3
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { WidgetChartsContent } from 'jamespot-user-api';
|
|
2
2
|
export type JRCWidgetChartsProps = {
|
|
3
3
|
content: WidgetChartsContent;
|
|
4
|
+
aspect?: number;
|
|
4
5
|
};
|
|
5
|
-
export declare const JRCWidgetCharts: ({ content }: JRCWidgetChartsProps) => import("react").JSX.Element;
|
|
6
|
+
export declare const JRCWidgetCharts: ({ content, aspect }: JRCWidgetChartsProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { OpeningType, WidgetListOrientation } from 'jamespot-user-api';
|
|
2
|
+
export declare const ORIENTATION_OPTIONS: {
|
|
3
|
+
label: string;
|
|
4
|
+
value: WidgetListOrientation;
|
|
5
|
+
}[];
|
|
6
|
+
export declare const OPENING_TYPE_OPTIONS: {
|
|
7
|
+
label: string;
|
|
8
|
+
value: OpeningType;
|
|
9
|
+
}[];
|
|
10
|
+
export declare const DEFAULT_ORIENTATION: WidgetListOrientation;
|
|
11
|
+
export declare const DEFAULT_FONT_SIZE = 12;
|
|
12
|
+
export declare const ICON_COLUMN_WIDTH = 50;
|
|
13
|
+
export declare const NO_ICON_INDENT = 10;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { WidgetListContentArr, WidgetListContent } from 'jamespot-user-api';
|
|
2
|
+
export type JRCWidgetListProps = {
|
|
3
|
+
content: WidgetListContent;
|
|
4
|
+
/**
|
|
5
|
+
* Anchor and popup entries carry no href — resolving them needs the page and the widget builder,
|
|
6
|
+
* so the platform wrapper handles the click. Link entries render as real anchors and never call it.
|
|
7
|
+
*/
|
|
8
|
+
onEntryClick?: (entry: WidgetListContentArr, index: number) => void;
|
|
9
|
+
};
|
|
10
|
+
export declare const JRCWidgetList: ({ content, onEntryClick }: JRCWidgetListProps) => import("react").JSX.Element | null;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { OpeningType, WidgetListContentArr } from 'jamespot-user-api';
|
|
2
|
+
/**
|
|
3
|
+
* Blobs saved before opening types existed carry no `openingType`: an entry with an anchor opens the
|
|
4
|
+
* anchor, everything else opens its link. Mirrors the migration the legacy editor runs on load.
|
|
5
|
+
*/
|
|
6
|
+
export declare const resolveOpeningType: (entry: WidgetListContentArr) => OpeningType;
|
|
7
|
+
export declare const resolveCssValue: (css: Record<string, string | number> | undefined, key: string) => string | undefined;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { WidgetListContent } from 'jamespot-user-api';
|
|
2
|
+
export type JRCWidgetListEditorProps = {
|
|
3
|
+
uniqid: string;
|
|
4
|
+
content: WidgetListContent;
|
|
5
|
+
onChangeContent: (uniqid: string, content: WidgetListContent) => void;
|
|
6
|
+
/**
|
|
7
|
+
* Popup entries embed a widget builder and anchors are picked on the surrounding page: both need
|
|
8
|
+
* the platform, which the design system has no access to. The wrapper opens them.
|
|
9
|
+
*/
|
|
10
|
+
onEditPopup?: (index: number) => void;
|
|
11
|
+
onPickAnchor?: (index: number) => void;
|
|
12
|
+
};
|
|
13
|
+
export declare const JRCWidgetListEditor: ({ uniqid, content, onChangeContent }: JRCWidgetListEditorProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { QuizFieldType, QuizResponseRecord } from 'jamespot-user-api';
|
|
2
|
+
import { QuizzFormValues } from './JRCWidgetQuizzQuestion';
|
|
3
|
+
export type JRCWidgetQuizzProps = {
|
|
4
|
+
fields: Record<string, QuizFieldType>;
|
|
5
|
+
response: QuizResponseRecord;
|
|
6
|
+
description?: string | null | undefined;
|
|
7
|
+
randomOrder?: boolean;
|
|
8
|
+
hideResponses?: boolean;
|
|
9
|
+
closed?: boolean;
|
|
10
|
+
detailsUrl?: string | undefined;
|
|
11
|
+
submitting?: boolean;
|
|
12
|
+
onSubmit: (values: QuizzFormValues) => void;
|
|
13
|
+
};
|
|
14
|
+
export declare const JRCWidgetQuizz: ({ fields, response, description, randomOrder, hideResponses, closed, detailsUrl, submitting, onSubmit, }: JRCWidgetQuizzProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { QuizFieldType } from 'jamespot-user-api';
|
|
3
|
+
import { JRCWidgetQuizz } from './JRCWidgetQuizz';
|
|
4
|
+
import { JRCWidgetQuizzEditorProps } from './JRCWidgetQuizzEditor';
|
|
5
|
+
declare const meta: Meta<typeof JRCWidgetQuizz>;
|
|
6
|
+
export default meta;
|
|
7
|
+
type Story = StoryObj<typeof JRCWidgetQuizz>;
|
|
8
|
+
export declare const Form: Story;
|
|
9
|
+
export declare const Answered: Story;
|
|
10
|
+
export declare const AnsweredWithHiddenResponses: Story;
|
|
11
|
+
export declare const Closed: Story;
|
|
12
|
+
export declare const RandomOrder: Story;
|
|
13
|
+
declare const QuestionHarness: ({ field, total }: {
|
|
14
|
+
field: QuizFieldType;
|
|
15
|
+
total: number;
|
|
16
|
+
}) => import("react").JSX.Element;
|
|
17
|
+
export declare const QuestionRadio: StoryObj<typeof QuestionHarness>;
|
|
18
|
+
export declare const QuestionCheckbox: StoryObj<typeof QuestionHarness>;
|
|
19
|
+
export declare const QuestionSingleQuestionQuizz: StoryObj<typeof QuestionHarness>;
|
|
20
|
+
declare const EditorHarness: ({ content: initialContent, ...props }: Partial<JRCWidgetQuizzEditorProps>) => import("react").JSX.Element;
|
|
21
|
+
export declare const Editor: StoryObj<typeof EditorHarness>;
|
|
22
|
+
export declare const EditorWithSelection: StoryObj<typeof EditorHarness>;
|
|
23
|
+
export declare const EditorTplMode: StoryObj<typeof EditorHarness>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const CSSForm: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, never> & Partial<Pick<import('react').DetailedHTMLProps<import('react').FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, never>>> & string;
|
|
2
|
+
export declare const CSSQuestions: 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;
|
|
3
|
+
export declare const CSSQuestion: 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 CSSQuestionNumber: 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 declare const CSSQuestionNumberValue: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never> & Partial<Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>>> & string;
|
|
6
|
+
export declare const CSSQuestionBody: 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;
|
|
7
|
+
export declare const CSSQuestionLabel: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never> & Partial<Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>>> & string;
|
|
8
|
+
export declare const CSSMandatoryMark: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never> & Partial<Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>>> & string;
|
|
9
|
+
export declare const CSSHelp: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never> & Partial<Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>>> & string;
|
|
10
|
+
export declare const CSSActions: 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;
|
|
11
|
+
export declare const CSSResult: 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;
|
|
12
|
+
export declare const CSSResultTitle: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never> & Partial<Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>>> & string;
|
|
13
|
+
export declare const CSSDetailsLink: 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;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { WidgetDisplayMode, WidgetQuizzContent } from 'jamespot-user-api';
|
|
2
|
+
export interface JRCWidgetQuizzEditorProps {
|
|
3
|
+
uniqid: string;
|
|
4
|
+
content: WidgetQuizzContent;
|
|
5
|
+
mode?: WidgetDisplayMode | undefined;
|
|
6
|
+
onChangeContent: (uniqid: string, content: WidgetQuizzContent) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const JRCWidgetQuizzEditor: ({ uniqid, content, mode, onChangeContent }: JRCWidgetQuizzEditorProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { QuizFieldType } from 'jamespot-user-api';
|
|
2
|
+
import { QuizzFormValues } from './JRCWidgetQuizzQuestion';
|
|
3
|
+
export type JRCWidgetQuizzFormProps = {
|
|
4
|
+
fields: Record<string, QuizFieldType>;
|
|
5
|
+
description?: string | null | undefined;
|
|
6
|
+
randomOrder?: boolean;
|
|
7
|
+
submitting?: boolean;
|
|
8
|
+
onSubmit: (values: QuizzFormValues) => void;
|
|
9
|
+
};
|
|
10
|
+
export declare const JRCWidgetQuizzForm: ({ fields, description, randomOrder, submitting, onSubmit, }: JRCWidgetQuizzFormProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { QuizFieldType } from 'jamespot-user-api';
|
|
2
|
+
import { Control, FieldValues } from 'react-hook-form';
|
|
3
|
+
export type QuizzFormValues = FieldValues & Record<string, string | string[]>;
|
|
4
|
+
export type JRCWidgetQuizzQuestionProps = {
|
|
5
|
+
name: string;
|
|
6
|
+
field: QuizFieldType;
|
|
7
|
+
index: number;
|
|
8
|
+
total: number;
|
|
9
|
+
control: Control<QuizzFormValues>;
|
|
10
|
+
};
|
|
11
|
+
export declare const JRCWidgetQuizzQuestion: ({ name, field, index, total, control }: JRCWidgetQuizzQuestionProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { QuizResponseDone } from 'jamespot-user-api';
|
|
2
|
+
export type JRCWidgetQuizzResultProps = {
|
|
3
|
+
response: QuizResponseDone;
|
|
4
|
+
detailsUrl?: string | undefined;
|
|
5
|
+
showDetails: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare const JRCWidgetQuizzResult: ({ response, detailsUrl, showDetails }: JRCWidgetQuizzResultProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jQuizzList } from 'jamespot-user-api';
|
|
2
|
+
export type QuizzSelectionModalProps = {
|
|
3
|
+
label: string;
|
|
4
|
+
selectedUri?: string | undefined;
|
|
5
|
+
onSelect: (quizz: jQuizzList | undefined) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare const QuizzSelectionModal: ({ label, selectedUri, onSelect }: QuizzSelectionModalProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jQuizzList } from 'jamespot-user-api';
|
|
2
|
+
type UseQuizzSelectionParams = {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
query: string;
|
|
5
|
+
page: number;
|
|
6
|
+
selectedUri?: string | undefined;
|
|
7
|
+
};
|
|
8
|
+
export declare const useQuizzSelection: ({ isOpen, query, page, selectedUri }: UseQuizzSelectionParams) => {
|
|
9
|
+
quizzes: jQuizzList[];
|
|
10
|
+
selected: jQuizzList | undefined;
|
|
11
|
+
setSelected: import('react').Dispatch<import('react').SetStateAction<jQuizzList | undefined>>;
|
|
12
|
+
pageCount: number;
|
|
13
|
+
loading: boolean;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BookmarkRawList, Model } from 'jamespot-user-api';
|
|
2
|
+
export type JRCWidgetShortcutsProps = {
|
|
3
|
+
bookmarks: BookmarkRawList[];
|
|
4
|
+
models: Model<string>[];
|
|
5
|
+
isLoading?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare const JRCWidgetShortcuts: ({ bookmarks, models, isLoading }: JRCWidgetShortcutsProps) => import("react").JSX.Element | null;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BookmarkRawList } from 'jamespot-user-api';
|
|
2
|
+
export type BookmarkThumbnailKind = 'search' | 'external' | 'board' | 'user' | 'object';
|
|
3
|
+
export type BookmarkThumbnail = {
|
|
4
|
+
kind: BookmarkThumbnailKind;
|
|
5
|
+
/** Set for every kind but `user`, which renders the target's avatar instead. */
|
|
6
|
+
iconName?: string;
|
|
7
|
+
/** Background color of the target's model; `undefined` when the type is unknown to the store. */
|
|
8
|
+
color?: string;
|
|
9
|
+
href?: string;
|
|
10
|
+
isExternal: boolean;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Single source of truth for "what a bookmark looks like", shared by the Shortcuts widget and the
|
|
14
|
+
* Bookmarks app table. A saved search and an external link are both stored as a link with no
|
|
15
|
+
* target, so they are told apart by which of `bookmarkMeta` / `bookmarkUrl` is set.
|
|
16
|
+
*/
|
|
17
|
+
export declare const resolveBookmarkThumbnail: (bookmark: BookmarkRawList, model?: {
|
|
18
|
+
icon?: string | undefined;
|
|
19
|
+
color?: string | undefined;
|
|
20
|
+
} | undefined) => BookmarkThumbnail;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BookmarkRawList } from 'jamespot-user-api';
|
|
2
|
+
import { BookmarkThumbnail } from './JRCWidgetShortcuts.utils';
|
|
3
|
+
export declare const ShortcutRow: ({ bookmark, thumbnail }: {
|
|
4
|
+
bookmark: BookmarkRawList;
|
|
5
|
+
thumbnail: BookmarkThumbnail;
|
|
6
|
+
}) => import("react").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BookmarkRawList } from 'jamespot-user-api';
|
|
2
|
+
import { BookmarkThumbnail } from './JRCWidgetShortcuts.utils';
|
|
3
|
+
export declare const ShortcutThumbnail: ({ bookmark, thumbnail, }: {
|
|
4
|
+
bookmark: BookmarkRawList;
|
|
5
|
+
thumbnail: BookmarkThumbnail;
|
|
6
|
+
}) => import("react").JSX.Element;
|
|
@@ -214,16 +214,21 @@ export { JRCWidgetFaq } from './Widgets/JRCWidgetFaq/JRCWidgetFaq';
|
|
|
214
214
|
export { JRCWidgetFaqEditor } from './Widgets/JRCWidgetFaq/JRCWidgetFaqEditor';
|
|
215
215
|
export { JRCWidgetFile } from './Widgets/JRCWidgetFile/JRCWidgetFile';
|
|
216
216
|
export { JRCWidgetFileEditor } from './Widgets/JRCWidgetFile/JRCWidgetFileEditor';
|
|
217
|
+
export { JRCWidgetQuizz } from './Widgets/JRCWidgetQuizz/JRCWidgetQuizz';
|
|
218
|
+
export { JRCWidgetQuizzEditor } from './Widgets/JRCWidgetQuizz/JRCWidgetQuizzEditor';
|
|
217
219
|
export { JRCWidgetFlockler } from './Widgets/JRCWidgetFlockler/JRCWidgetFlockler';
|
|
218
220
|
export { JRCWidgetFlocklerEditor } from './Widgets/JRCWidgetFlockler/JRCWidgetFlocklerEditor';
|
|
219
221
|
export { JRCWidgetIcon } from './Widgets/JRCWidgetIcon';
|
|
220
222
|
export { JRCWidgetImage } from './Widgets/JRCWidgetImage/JRCWidgetImage';
|
|
221
223
|
export { JRCWidgetImageEditor } from './Widgets/JRCWidgetImage/JRCWidgetImageEditor';
|
|
224
|
+
export { JRCWidgetList } from './Widgets/JRCWidgetList/JRCWidgetList';
|
|
225
|
+
export { JRCWidgetListEditor } from './Widgets/JRCWidgetList/JRCWidgetListEditor';
|
|
222
226
|
export { JRCWidgetLuccaAbsence } from './Widgets/JRCWidgetLuccaAbsence/JRCWidgetLuccaAbsence';
|
|
223
227
|
export { JRCWidgetLuccaAbsenceEditor } from './Widgets/JRCWidgetLuccaAbsence/JRCWidgetLuccaAbsenceEditor';
|
|
224
228
|
export { JRCWidgetMeteo } from './Widgets/JRCWidgetMeteo/JRCWidgetMeteo';
|
|
225
229
|
export { JRCWidgetMeteoEditor } from './Widgets/JRCWidgetMeteo/JRCWidgetMeteoEditor';
|
|
226
230
|
export { JRCWidgetMyGroup } from './Widgets/JRCWidgetMyGroup/JRCWidgetMyGroup';
|
|
231
|
+
export { JRCWidgetShortcuts } from './Widgets/JRCWidgetShortcuts/JRCWidgetShortcuts';
|
|
227
232
|
export { JRCWidgetNews } from './Widgets/JRCWidgetNews/JRCWidgetNews';
|
|
228
233
|
export { JRCWidgetNewsEditor } from './Widgets/JRCWidgetNews/JRCWidgetNewsEditor';
|
|
229
234
|
export { JRCWidgetNewsflash } from './Widgets/JRCWidgetNewsflash/JRCWidgetNewsflash';
|
package/dist/src/index.d.ts
CHANGED
|
@@ -3,18 +3,21 @@ declare global {
|
|
|
3
3
|
}
|
|
4
4
|
export { default as Theme } from './styles/theme';
|
|
5
5
|
export { default as Resources } from './translation';
|
|
6
|
-
export * as components from './components';
|
|
7
6
|
export * from './components';
|
|
7
|
+
export * as components from './components';
|
|
8
8
|
export { JRC404 } from './components/404/JRC404';
|
|
9
9
|
export { FocusVisibleOutline } from './components/Common/Outline';
|
|
10
10
|
export { SkipToContent } from './components/Common/SkipToContent';
|
|
11
11
|
export { SROnly } from './components/Common/SROnly';
|
|
12
12
|
export { JTinyMCEExtensionsBuilders } from './components/Form/Input/JRCInputTinyMCERaw/extensions/JTinyMCEExtensions';
|
|
13
13
|
export { JRCProvider } from './components/JRCProvider/JRCProvider';
|
|
14
|
+
export { resolveOpeningType } from './components/Widgets/JRCWidgetList/JRCWidgetList.utils';
|
|
14
15
|
export { DEFAULT_NEWS_LIMIT } from './components/Widgets/JRCWidgetNews/JRCWidgetNews.const';
|
|
16
|
+
export { resolveBookmarkThumbnail } from './components/Widgets/JRCWidgetShortcuts/JRCWidgetShortcuts.utils';
|
|
17
|
+
export type { BookmarkThumbnail, BookmarkThumbnailKind, } from './components/Widgets/JRCWidgetShortcuts/JRCWidgetShortcuts.utils';
|
|
15
18
|
export * from './hooks';
|
|
16
19
|
export * from './types';
|
|
17
20
|
export { getColor } from './styles/theme';
|
|
18
21
|
export { color, fw, size, sizePX, space, spacePX, zIndex } from './styles/theme.helpers';
|
|
19
22
|
export { Utils } from './utils';
|
|
20
|
-
export type {
|
|
23
|
+
export type { ParsedProvider, Provider } from './utils/utils.iframeVideo';
|
|
@@ -145,6 +145,7 @@ declare const _default: {
|
|
|
145
145
|
"CALENDAR_Widget_View_Month": "Month",
|
|
146
146
|
"CLIPBOARD_Copy_Success": "Copied to clipboard",
|
|
147
147
|
"COLOR_PICKER_recent_colors": "Recent colors",
|
|
148
|
+
"COLOR_PICKER_Placeholder": "Select a color",
|
|
148
149
|
"COMMENT_Add_Comment": "Add comment",
|
|
149
150
|
"COMMENT_Add_Widget": "Add widget",
|
|
150
151
|
"COMMENT_Answer": "Answer",
|
|
@@ -670,6 +671,15 @@ declare const _default: {
|
|
|
670
671
|
"WIDGET_APPLICATION": "Applications",
|
|
671
672
|
"WIDGET_APPLICATION_TEXT": "Display a grid of shortcuts to your applications, links and tools.",
|
|
672
673
|
"WIDGET_Select_Application": "Select an application",
|
|
674
|
+
"WIDGET_QUIZZ": "Quizz",
|
|
675
|
+
"WIDGET_QUIZZ_TEXT": "Ajouter un quizz à votre page intranet",
|
|
676
|
+
"WIDGET_Select_Quizz": "Select a quizz",
|
|
677
|
+
"QUIZZ_Respond": "Respond",
|
|
678
|
+
"QUIZZ_Already_responded": "You answered that quiz !",
|
|
679
|
+
"QUIZZ_Your_score": "Your score",
|
|
680
|
+
"QUIZZ_See_details": "See details",
|
|
681
|
+
"QUIZZ_closed": "Times over! This quiz is closed ...",
|
|
682
|
+
"GLOBAL_Quizz": "Quiz",
|
|
673
683
|
"WIDGET_Display": "Display",
|
|
674
684
|
"WIDGET_Application_Number_Per_Line": "Number per line",
|
|
675
685
|
"WIDGET_Application_Unused_App": "Unused application",
|
|
@@ -699,10 +709,22 @@ declare const _default: {
|
|
|
699
709
|
"WIDGET_Select_SocialPoll": "Select a survey",
|
|
700
710
|
"WIDGET_Survey_Selection": "Select survey",
|
|
701
711
|
"GLOBAL_No_Survey_Results": "There is no survey open at the moment",
|
|
702
|
-
"FOLDER_Nb_Documents": "{count, plural, one {# document} other {# documents}}"
|
|
712
|
+
"FOLDER_Nb_Documents": "{count, plural, one {# document} other {# documents}}",
|
|
713
|
+
"WIDGET_Shortcuts_Empty": "You have no shortcuts. Click the favourite icon on a publication to add one.",
|
|
714
|
+
"GLOBAL_Title": "Title",
|
|
715
|
+
"WIDGET_LIST_Add_Row": "Add element",
|
|
716
|
+
"WIDGET_LIST_Add_Anchor": "Add anchor",
|
|
717
|
+
"WIDGET_Button_Opening_Type_Selection": "Select an opening type",
|
|
718
|
+
"WIDGET_Button_Opening_Type_Link": "Link",
|
|
719
|
+
"WIDGET_Button_Opening_Type_Anchor": "Anchor",
|
|
720
|
+
"WIDGET_Button_Opening_Type_Popup": "Popup",
|
|
721
|
+
"WIDGET_Button_Opening_Type_Popup_Content": "Add a content popup",
|
|
722
|
+
"BUTTON_Button_Href": "Button link",
|
|
723
|
+
"BUTTON_Button_Target": "Opening type"
|
|
703
724
|
},
|
|
704
725
|
"fr": {
|
|
705
|
-
"FOLDER_Nb_Documents": "{count, plural, one {# document} other {# documents}}"
|
|
726
|
+
"FOLDER_Nb_Documents": "{count, plural, one {# document} other {# documents}}",
|
|
727
|
+
"WIDGET_Shortcuts_Empty": "Vous n'avez aucun raccourci. Cliquez sur l'icône favori d'une publication pour en ajouter un."
|
|
706
728
|
},
|
|
707
729
|
"de": {
|
|
708
730
|
"FOLDER_Nb_Documents": "{count, plural, one {# Dokument} other {# Dokumente}}"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-react-components",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.132",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/jamespot-react-components.cjs",
|
|
6
6
|
"module": "dist/jamespot-react-components.js",
|
|
@@ -60,8 +60,8 @@
|
|
|
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.
|
|
64
|
-
"jamespot-user-api": "^1.3.
|
|
63
|
+
"jamespot-front-business": "^1.3.132",
|
|
64
|
+
"jamespot-user-api": "^1.3.132",
|
|
65
65
|
"jsdom": "^26.1.0",
|
|
66
66
|
"knip": "^5.88.1",
|
|
67
67
|
"lint-staged": "^16.4.0",
|