jamespot-react-components 1.3.103 → 1.3.105
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 +1347 -1245
- package/dist/jamespot-react-components.js +14972 -14206
- package/dist/src/components/Drives/JRCDriveMSGraph.d.ts +2 -1
- package/dist/src/components/Drives/MicrosoftGraph/MSGraphDocuments.d.ts +1 -0
- package/dist/src/components/Drives/hooks.d.ts +2 -5
- package/dist/src/components/Editors/EditorDisplay.d.ts +7 -0
- package/dist/src/components/Editors/EditorDisplayInput.d.ts +6 -0
- package/dist/src/components/Editors/components/Editor.style.d.ts +4 -1
- package/dist/src/components/Editors/components/EditorButtonToggle.d.ts +2 -1
- package/dist/src/components/Editors/components/EditorInputToggle.d.ts +2 -1
- package/dist/src/components/Editors/components/EditorInputToggleSelect.d.ts +15 -0
- package/dist/src/components/Editors/ensure.d.ts +4 -0
- package/dist/src/components/Editors/types.d.ts +54 -0
- package/dist/src/components/Widgets/JRCWidgetArticleImage/JRCWidgetArticleImage.d.ts +8 -0
- package/dist/src/components/Widgets/JRCWidgetArticleImage/JRCWidgetArticleImage.stories.d.ts +4 -0
- package/dist/src/components/Widgets/JRCWidgetCountdown/CountdownEvent.d.ts +8 -0
- package/dist/src/components/Widgets/JRCWidgetCountdown/CountdownNumbers.d.ts +4 -0
- package/dist/src/components/Widgets/JRCWidgetCountdown/JRCWidgetCountdown.d.ts +4 -0
- package/dist/src/components/Widgets/JRCWidgetCountdown/JRCWidgetCountdown.stories.d.ts +4 -0
- package/dist/src/components/Widgets/JRCWidgetCountdown/JRCWidgetCountdownEditor.d.ts +5 -0
- package/dist/src/components/Widgets/JRCWidgetCountdown/ModalArticleList.d.ts +7 -0
- package/dist/src/components/Widgets/JRCWidgetCountdown/countdown.utils.d.ts +6 -0
- package/dist/src/components/Widgets/JRCWidgetCountdown/types.d.ts +8 -0
- package/dist/src/components/Widgets/JRCWidgetFlockler/JRCWidgetFlockler.const.d.ts +9 -0
- package/dist/src/components/Widgets/JRCWidgetFlockler/JRCWidgetFlockler.d.ts +11 -0
- package/dist/src/components/Widgets/JRCWidgetFlockler/JRCWidgetFlockler.stories.d.ts +7 -0
- package/dist/src/components/Widgets/JRCWidgetFlockler/JRCWidgetFlocklerEditor.d.ts +12 -0
- package/dist/src/components/Widgets/JRCWidgetImage/JRCWidgetImage.const.d.ts +39 -0
- package/dist/src/components/Widgets/JRCWidgetImage/JRCWidgetImage.d.ts +16 -5
- package/dist/src/components/Widgets/JRCWidgetImage/JRCWidgetImage.stories.d.ts +4 -2
- package/dist/src/components/Widgets/JRCWidgetImage/JRCWidgetImageEditor.d.ts +8 -7
- package/dist/src/components/index.d.ts +6 -1
- package/dist/src/hooks/useInterval.d.ts +1 -0
- package/dist/src/translation/lang.json.d.ts +27 -0
- package/dist/src/utils/utils.url.d.ts +2 -0
- package/package.json +3 -3
- /package/dist/src/components/Widgets/{JRCWidgetImage → JRCWidgetArticleImage}/JRCWidgetArticleImageEditor.d.ts +0 -0
- /package/dist/src/components/Widgets/{JRCWidgetImage → JRCWidgetArticleImage}/styles.d.ts +0 -0
|
@@ -6,6 +6,7 @@ type JRCDriveMSGraphProps = {
|
|
|
6
6
|
useNavigation?: boolean;
|
|
7
7
|
useFilter?: boolean;
|
|
8
8
|
useDocumentFilters: string[];
|
|
9
|
+
foldersOnly?: boolean;
|
|
9
10
|
onSelect?: (item: MSUnifiedEntity, driveParams: MSDocumentParams) => void;
|
|
10
11
|
onSelectMultiDocument?: (items: MSUnifiedEntity[], driveParams: MSDocumentParams) => void;
|
|
11
12
|
onSelectDocument?: (item: MSUnifiedEntity, lastFolder: MSUnifiedEntity | undefined, driveParams: MSDocumentParams) => void;
|
|
@@ -15,5 +16,5 @@ type JRCDriveMSGraphProps = {
|
|
|
15
16
|
onLogout?: () => void;
|
|
16
17
|
currentAccount?: DriveAccount;
|
|
17
18
|
};
|
|
18
|
-
export declare const JRCDriveMSGraph: ({ initialParams, initialFolder, initialFolderColor, useDocumentFilters, useFilter, useNavigation, onSelect, onSelectDocument, onSelectMultiDocument, onError, handleLogin, onLogin, currentAccount, }: JRCDriveMSGraphProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare const JRCDriveMSGraph: ({ initialParams, initialFolder, initialFolderColor, useDocumentFilters, foldersOnly, useFilter, useNavigation, onSelect, onSelectDocument, onSelectMultiDocument, onError, handleLogin, onLogin, currentAccount, }: JRCDriveMSGraphProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
20
|
export {};
|
|
@@ -5,6 +5,7 @@ type MSGraphDocumentsProps = {
|
|
|
5
5
|
useNavigation: boolean;
|
|
6
6
|
useFilter: boolean;
|
|
7
7
|
useDocumentFilters: string[];
|
|
8
|
+
foldersOnly?: boolean;
|
|
8
9
|
onClick: (entity: MSUnifiedEntity) => void;
|
|
9
10
|
onSelect?: (entity: MSUnifiedEntity) => void;
|
|
10
11
|
onSelectDocument?: (entity: MSUnifiedEntity) => void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { MSTenantEntity } from 'jamespot-user-api';
|
|
1
2
|
type ErrorType = {
|
|
2
3
|
error: number;
|
|
3
4
|
errorMsg: string;
|
|
@@ -13,11 +14,7 @@ export declare function useTenants({ id }: {
|
|
|
13
14
|
id: string;
|
|
14
15
|
}): {
|
|
15
16
|
loading: boolean;
|
|
16
|
-
entities:
|
|
17
|
-
type: string;
|
|
18
|
-
title: string;
|
|
19
|
-
name?: "group" | "groups" | "sites" | "onedrive" | "documents" | "me" | undefined;
|
|
20
|
-
}[];
|
|
17
|
+
entities: MSTenantEntity[];
|
|
21
18
|
error: ErrorType | undefined;
|
|
22
19
|
};
|
|
23
20
|
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { EditorModel } from './types';
|
|
2
|
+
export type EditorDisplayProps<M extends readonly EditorModel[]> = {
|
|
3
|
+
model: M;
|
|
4
|
+
initialValues: Record<string, string | number | boolean>;
|
|
5
|
+
onChange: (name: string, value: string | number | boolean) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare const EditorDisplay: <M extends readonly EditorModel[]>({ model, initialValues, onChange, }: EditorDisplayProps<M>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
export declare const CSSEditor: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
2
|
export declare const CSSEditorWidgetProperties: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
3
|
export declare const CSSEditorWarning: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
|
-
export declare const CSSEditorComponentWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').
|
|
4
|
+
export declare const CSSEditorComponentWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
5
|
+
isDisabled?: boolean;
|
|
6
|
+
}>> & string;
|
|
7
|
+
export declare const CSSEditorComponentWrapperDisabledMessage: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
5
8
|
export declare const CSSEditorComponentLabel: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
6
9
|
export declare const CSSEditorComponentDescription: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
7
10
|
export declare const CSSEditorComponentSeparator: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLHRElement>, HTMLHRElement>, never>> & string;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Sizes, ToggleListOption, ToggleValue } from '../../Form/Input/JRCInputCheckbox/JRCInputToggle';
|
|
2
|
-
export declare const EditorButtonToggle: <T extends ToggleValue>({ name, label, initialValue, description, options, onChange, size, dataCy, }: {
|
|
2
|
+
export declare const EditorButtonToggle: <T extends ToggleValue>({ name, label, initialValue, description, isDisabled, options, onChange, size, dataCy, }: {
|
|
3
3
|
name?: string;
|
|
4
4
|
label?: string;
|
|
5
5
|
initialValue: T | undefined;
|
|
6
|
+
isDisabled?: boolean;
|
|
6
7
|
description?: string;
|
|
7
8
|
options: ToggleListOption[];
|
|
8
9
|
onChange: (value: T) => void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CheckboxOption } from '../../Form/Input/JRCInputCheckbox/JRCInputCheckbox.types';
|
|
2
|
-
export declare const EditorInputToggle: ({ label, initialValue, description, options, onChange, }: {
|
|
2
|
+
export declare const EditorInputToggle: ({ label, name, initialValue, description, options, onChange, }: {
|
|
3
3
|
label?: string;
|
|
4
|
+
name: string;
|
|
4
5
|
initialValue: boolean;
|
|
5
6
|
description?: string;
|
|
6
7
|
options: CheckboxOption[];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ButtonColors } from '../../../components/JRCButton/types';
|
|
2
|
+
export type ToggleValues = string | number | boolean;
|
|
3
|
+
export declare const EditorInputToggleSelect: ({ label, name, initialValue, description, options, isDisabled, onChange, }: {
|
|
4
|
+
label?: string;
|
|
5
|
+
name: string;
|
|
6
|
+
initialValue: ToggleValues;
|
|
7
|
+
description?: string;
|
|
8
|
+
options: {
|
|
9
|
+
label: string;
|
|
10
|
+
value: ToggleValues;
|
|
11
|
+
color?: ButtonColors;
|
|
12
|
+
}[];
|
|
13
|
+
isDisabled?: boolean;
|
|
14
|
+
onChange: (value: ToggleValues) => void;
|
|
15
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function ensureIsStringOrNumber(value: unknown): value is string | number;
|
|
2
|
+
export declare function ensureIsString(value: unknown): value is string;
|
|
3
|
+
export declare function ensureIsBoolean(value: unknown): value is boolean;
|
|
4
|
+
export declare function ensureIsColor(value: unknown): value is string;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { ButtonColors } from '../JRCButton/types';
|
|
3
|
+
import { ToggleValues } from './components/EditorInputToggleSelect';
|
|
4
|
+
import { EditorSelectOptions } from './components/EditorSelect';
|
|
5
|
+
export declare enum EditorModelTypes {
|
|
6
|
+
Select = "select",
|
|
7
|
+
Toggle = "toggle",
|
|
8
|
+
ToggleSelect = "toggle-select",
|
|
9
|
+
Color = "color",
|
|
10
|
+
Custom = "custom",
|
|
11
|
+
ButtonToggle = "button-toggle"
|
|
12
|
+
}
|
|
13
|
+
export type EditorModelBase = {
|
|
14
|
+
label: string;
|
|
15
|
+
name: string;
|
|
16
|
+
isDisabled?: boolean;
|
|
17
|
+
isDisabledMessage?: string;
|
|
18
|
+
mandatory?: boolean;
|
|
19
|
+
};
|
|
20
|
+
export type EditorModelSelect = EditorModelBase & {
|
|
21
|
+
type: EditorModelTypes.Select;
|
|
22
|
+
options: EditorSelectOptions;
|
|
23
|
+
};
|
|
24
|
+
export type EditorModelToggle = EditorModelBase & {
|
|
25
|
+
type: EditorModelTypes.Toggle;
|
|
26
|
+
options: {
|
|
27
|
+
label: string;
|
|
28
|
+
value: string | number;
|
|
29
|
+
}[];
|
|
30
|
+
};
|
|
31
|
+
export type EditorModelButtonToggle = EditorModelBase & {
|
|
32
|
+
type: EditorModelTypes.ButtonToggle;
|
|
33
|
+
options: {
|
|
34
|
+
label: string;
|
|
35
|
+
value: string | number;
|
|
36
|
+
}[];
|
|
37
|
+
};
|
|
38
|
+
export type EditorModelToggleSelect = EditorModelBase & {
|
|
39
|
+
type: EditorModelTypes.ToggleSelect;
|
|
40
|
+
options: {
|
|
41
|
+
label: string;
|
|
42
|
+
value: ToggleValues;
|
|
43
|
+
color?: ButtonColors;
|
|
44
|
+
}[];
|
|
45
|
+
};
|
|
46
|
+
export type EditorModelColor = EditorModelBase & {
|
|
47
|
+
type: EditorModelTypes.Color;
|
|
48
|
+
options: string[];
|
|
49
|
+
};
|
|
50
|
+
export type EditorModelCustom = EditorModelBase & {
|
|
51
|
+
type: EditorModelTypes.Custom;
|
|
52
|
+
component: ReactElement;
|
|
53
|
+
};
|
|
54
|
+
export type EditorModel = EditorModelSelect | EditorModelToggle | EditorModelColor | EditorModelToggleSelect | EditorModelButtonToggle | EditorModelCustom;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type JRCWidgetArticleImageProps = {
|
|
2
|
+
useFilter?: boolean;
|
|
3
|
+
maxWidth: number;
|
|
4
|
+
maxHeight?: number;
|
|
5
|
+
uri?: string;
|
|
6
|
+
loadWithDelay?: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const JRCWidgetArticleImage: ({ useFilter, maxWidth, maxHeight, uri, loadWithDelay, }: JRCWidgetArticleImageProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ArticlesList } from 'jamespot-user-api';
|
|
2
|
+
import { WidgetCountdownHandlers } from './types';
|
|
3
|
+
export declare const CountdownEvent: ({ uri, handlers, onSetEvent, onRemove, }: {
|
|
4
|
+
uri: string;
|
|
5
|
+
handlers: WidgetCountdownHandlers;
|
|
6
|
+
onSetEvent: (event: ArticlesList) => void;
|
|
7
|
+
onRemove: () => void;
|
|
8
|
+
}) => string | import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { WidgetCountdownContent, WidgetEditorActions } from 'jamespot-user-api';
|
|
2
|
+
import { WidgetCountdownHandlers } from './types';
|
|
3
|
+
export declare const JRCWidgetCountdownEditor: ({ articleUri, background, backgroundColor, usePattern, textShadow, size, color, handlers, onChange, }: {
|
|
4
|
+
handlers: WidgetCountdownHandlers;
|
|
5
|
+
} & WidgetEditorActions<WidgetCountdownContent> & WidgetCountdownContent) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { WidgetCountdownHandlers } from './types';
|
|
2
|
+
export declare const ModalArticleList: ({ handlers, type, label, onSelect, }: {
|
|
3
|
+
handlers: WidgetCountdownHandlers;
|
|
4
|
+
type: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
onSelect: (uri: string) => void;
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const FLOCKLER_PLUGINS_URL = "https://plugins.flockler.com/";
|
|
2
|
+
/**
|
|
3
|
+
* A Flockler embed URL ends with `.../{clientId}/{layoutId}` — the script src and the target
|
|
4
|
+
* div id are both derived from those two trailing path segments (iso the legacy `apply()`).
|
|
5
|
+
*/
|
|
6
|
+
export declare const parseFlocklerIds: (url: string) => {
|
|
7
|
+
clientId: string;
|
|
8
|
+
layoutId: string;
|
|
9
|
+
} | null;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface JRCWidgetFlocklerProps {
|
|
2
|
+
url?: string;
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* Flockler embed display. Flockler's hosted script populates a `<div id="flockler-embed-{layoutId}">`
|
|
6
|
+
* with the social wall. We inject that script imperatively (`useEffect` + `ref`) rather than via
|
|
7
|
+
* `JRCHtml`/`dangerouslySetInnerHTML`: the former sanitizes out `<script>` tags, the latter never
|
|
8
|
+
* executes injected scripts. Cleanup empties the container on url change /
|
|
9
|
+
* unmount so a re-render never double-injects or leaves a ghost wall.
|
|
10
|
+
*/
|
|
11
|
+
export declare const JRCWidgetFlockler: ({ url }: JRCWidgetFlocklerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { JRCWidgetFlockler } from './JRCWidgetFlockler';
|
|
3
|
+
declare const meta: Meta<typeof JRCWidgetFlockler>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof JRCWidgetFlockler>;
|
|
6
|
+
export declare const WithEmbed: Story;
|
|
7
|
+
export declare const Empty: Story;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { WidgetFlocklerContent } from 'jamespot-user-api';
|
|
2
|
+
export interface JRCWidgetFlocklerEditorProps {
|
|
3
|
+
uniqid: string;
|
|
4
|
+
content: WidgetFlocklerContent;
|
|
5
|
+
onChangeContent: (uniqid: string, content: WidgetFlocklerContent) => void;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Flockler editor: a single embed-URL field. No explicit "Apply" button (unlike the legacy panel) —
|
|
9
|
+
* the value flows through `onChangeContent` → Redux → the display re-injects the script, the React
|
|
10
|
+
* idiom shared with the youtube/embed editors.
|
|
11
|
+
*/
|
|
12
|
+
export declare const JRCWidgetFlocklerEditor: ({ uniqid, content, onChangeContent }: JRCWidgetFlocklerEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export declare const DEFAULT_URL_SCALE = 1000;
|
|
2
|
+
export declare const DEFAULT_BORDER_RADIUS = 0;
|
|
3
|
+
export declare const ADJUST_IMAGE = 1;
|
|
4
|
+
export declare const ADJUST_BACKGROUND = 0;
|
|
5
|
+
export declare const AdjustOptions: {
|
|
6
|
+
label: string;
|
|
7
|
+
value: number;
|
|
8
|
+
}[];
|
|
9
|
+
export declare const BackgroundPositionOptions: ({
|
|
10
|
+
label: string;
|
|
11
|
+
value: "left";
|
|
12
|
+
} | {
|
|
13
|
+
label: string;
|
|
14
|
+
value: "center";
|
|
15
|
+
} | {
|
|
16
|
+
label: string;
|
|
17
|
+
value: "right";
|
|
18
|
+
})[];
|
|
19
|
+
export declare const VerticalAlignOptions: ({
|
|
20
|
+
label: string;
|
|
21
|
+
value: "top";
|
|
22
|
+
} | {
|
|
23
|
+
label: string;
|
|
24
|
+
value: "center";
|
|
25
|
+
} | {
|
|
26
|
+
label: string;
|
|
27
|
+
value: "bottom";
|
|
28
|
+
})[];
|
|
29
|
+
export declare const ClickOptions: ({
|
|
30
|
+
label: string;
|
|
31
|
+
value: "yes";
|
|
32
|
+
} | {
|
|
33
|
+
label: string;
|
|
34
|
+
value: "no";
|
|
35
|
+
})[];
|
|
36
|
+
export declare const AdvancedSettingsOptions: {
|
|
37
|
+
label: string;
|
|
38
|
+
value: number;
|
|
39
|
+
}[];
|
|
@@ -1,8 +1,19 @@
|
|
|
1
|
+
import { HTMLAttributeAnchorTarget } from 'react';
|
|
1
2
|
export type JRCWidgetImageProps = {
|
|
2
|
-
useFilter?: boolean;
|
|
3
|
-
maxWidth: number;
|
|
4
|
-
maxHeight?: number;
|
|
5
3
|
uri?: string;
|
|
6
|
-
|
|
4
|
+
urlMode?: boolean;
|
|
5
|
+
urlValue?: string;
|
|
6
|
+
urlWidthValue?: number;
|
|
7
|
+
urlHeightValue?: number;
|
|
8
|
+
urlLeftValue?: number;
|
|
9
|
+
urlTopValue?: number;
|
|
10
|
+
urlScaleValue?: number;
|
|
11
|
+
adjust?: number;
|
|
12
|
+
backgroundPosition?: 'left' | 'center' | 'right';
|
|
13
|
+
verticalAlign?: 'top' | 'center' | 'bottom';
|
|
14
|
+
borderRadius?: number;
|
|
15
|
+
click?: 'yes' | 'no';
|
|
16
|
+
href?: string;
|
|
17
|
+
target?: HTMLAttributeAnchorTarget;
|
|
7
18
|
};
|
|
8
|
-
export declare const JRCWidgetImage: (
|
|
19
|
+
export declare const JRCWidgetImage: (props: JRCWidgetImageProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react-vite';
|
|
1
|
+
import { Meta, StoryFn } from '@storybook/react-vite';
|
|
2
2
|
declare const _default: Meta;
|
|
3
3
|
export default _default;
|
|
4
|
-
export declare const
|
|
4
|
+
export declare const UploadImage: StoryFn;
|
|
5
|
+
export declare const BackgroundMode: StoryFn;
|
|
6
|
+
export declare const ExternalUrl: StoryFn;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
1
|
+
import { WidgetImageContent } from 'jamespot-user-api';
|
|
2
|
+
export interface JRCWidgetImageEditorProps {
|
|
3
|
+
uniqid: string;
|
|
4
|
+
content: WidgetImageContent;
|
|
5
|
+
token?: string;
|
|
6
|
+
onChangeContent: (uniqid: string, content: WidgetImageContent) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const JRCWidgetImageEditor: ({ uniqid, content, token, onChangeContent }: JRCWidgetImageEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -191,6 +191,8 @@ export { JRCWidgetSeparator } from './Widgets/JRCWidgetSeparator/JRCWidgetSepara
|
|
|
191
191
|
export { JRCWidgetSeparatorEditor } from './Widgets/JRCWidgetSeparator/JRCWidgetSeparatorEditor';
|
|
192
192
|
export { JRCWidgetContactCardDav } from './Widgets/JRCWidgetContactCardDav/JRCWidgetContactCardDav';
|
|
193
193
|
export { JRCWidgetContactCardDavEditor } from './Widgets/JRCWidgetContactCardDav/JRCWidgetContactCardDavEditor';
|
|
194
|
+
export { JRCWidgetCountdown } from './Widgets/JRCWidgetCountdown/JRCWidgetCountdown';
|
|
195
|
+
export { JRCWidgetCountdownEditor } from './Widgets/JRCWidgetCountdown/JRCWidgetCountdownEditor';
|
|
194
196
|
export { JRCWidgetCover } from './Widgets/JRCWidgetCover/JRCWidgetCover';
|
|
195
197
|
export { JRCWidgetCoverEditor } from './Widgets/JRCWidgetCover/JRCWidgetCoverEditor';
|
|
196
198
|
export { JRCWidgetEmailsImap } from './Widgets/JRCWidgetEmailsImap/JRCWidgetEmailsImap';
|
|
@@ -199,7 +201,8 @@ export { JRCWidgetEmailsImapLevel2 } from './Widgets/JRCWidgetEmailsImap/JRCWidg
|
|
|
199
201
|
export { JRCWidgetEmptyInplace } from './Widgets/JRCWidgetEmptyInplace';
|
|
200
202
|
export { JRCWidgetExtensionEditor } from './Widgets/JRCWidgetExtension/JRCWidgetExtensionEditor';
|
|
201
203
|
export { JRCWidgetIcon } from './Widgets/JRCWidgetIcon';
|
|
202
|
-
export {
|
|
204
|
+
export { JRCWidgetArticleImage } from './Widgets/JRCWidgetArticleImage/JRCWidgetArticleImage';
|
|
205
|
+
export { JRCWidgetArticleImageEditor } from './Widgets/JRCWidgetArticleImage/JRCWidgetArticleImageEditor';
|
|
203
206
|
export { JRCWidgetImage } from './Widgets/JRCWidgetImage/JRCWidgetImage';
|
|
204
207
|
export { JRCWidgetImageEditor } from './Widgets/JRCWidgetImage/JRCWidgetImageEditor';
|
|
205
208
|
export { JRCWidgetLuccaAbsence } from './Widgets/JRCWidgetLuccaAbsence/JRCWidgetLuccaAbsence';
|
|
@@ -221,6 +224,8 @@ export { JRCWidgetText } from './Widgets/JRCWidgetText/JRCWidgetText';
|
|
|
221
224
|
export { JRCWidgetTextEditor } from './Widgets/JRCWidgetText/JRCWidgetTextEditor';
|
|
222
225
|
export { JRCWidgetEmbed } from './Widgets/JRCWidgetEmbed/JRCWidgetEmbed';
|
|
223
226
|
export { JRCWidgetEmbedEditor } from './Widgets/JRCWidgetEmbed/JRCWidgetEmbedEditor';
|
|
227
|
+
export { JRCWidgetFlockler } from './Widgets/JRCWidgetFlockler/JRCWidgetFlockler';
|
|
228
|
+
export { JRCWidgetFlocklerEditor } from './Widgets/JRCWidgetFlockler/JRCWidgetFlocklerEditor';
|
|
224
229
|
export { JRCWidgetUserProfile } from './Widgets/JRCWidgetUserProfile/JRCWidgetUserProfile';
|
|
225
230
|
export { JRCWidgetUserProfileEditor } from './Widgets/JRCWidgetUserProfile/JRCWidgetUserProfileEditor';
|
|
226
231
|
export { JRCWidgetWelcome } from './Widgets/JRCWidgetWelcome/JRCWidgetWelcome';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useInterval(callback: () => void, delay: number | null): void;
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
"en": {
|
|
3
|
+
"GLOBAL_Background": "Background",
|
|
4
|
+
"INTRANET_Advanced_Options": "Advanced options",
|
|
5
|
+
"WIDGET_Add_Image_Url": "Add an image URL",
|
|
6
|
+
"WIDGET_IMAGE": "Image",
|
|
7
|
+
"WIDGET_IMAGE_TEXT": "Display an image",
|
|
8
|
+
"WIDGET_Image_Adjust": "Image adjustment",
|
|
9
|
+
"WIDGET_Image_Background_Position": "Background position",
|
|
10
|
+
"WIDGET_Image_Upload_Label": "Add an image",
|
|
11
|
+
"WIDGET_Image_Background_Vertical_Position": "Vertical background position",
|
|
12
|
+
"WIDGET_Image_Scale": "Scale",
|
|
13
|
+
"WIDGET_Image_X_Position": "Horizontal position",
|
|
14
|
+
"WIDGET_Image_Y_Position": "Vertical position",
|
|
3
15
|
"ACTIVITY_Can_Not_comment": "You cannot comment on this content",
|
|
4
16
|
"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)",
|
|
5
17
|
"ADD_FAVORITE": "Add to favorites",
|
|
@@ -351,6 +363,7 @@ declare const _default: {
|
|
|
351
363
|
"PANEL_Size_Small": "Petit",
|
|
352
364
|
"PANEL_Text_Color": "Couleur du texte",
|
|
353
365
|
"PANEL_Text_Size": "Taille du texte",
|
|
366
|
+
"PANEL_Text_Shadow": "Ajouter une ombre portée au texte",
|
|
354
367
|
"PANEL_Title": "Titre",
|
|
355
368
|
"PANEL_Widget_Empty_Setting": "Il n'y a rien à configurer",
|
|
356
369
|
"PANEL_Widget_Extension_Name": "Nom de l'extension",
|
|
@@ -507,6 +520,16 @@ declare const _default: {
|
|
|
507
520
|
"WIDGET_Survey_Multiple_Help": "Allow multiple responses",
|
|
508
521
|
"WIDGET_Survey_Multiple": "Multiple response",
|
|
509
522
|
"WIDGET_Survey_Open_Help": "Allows other users to add suggestion",
|
|
523
|
+
"WIDGET_Countdown_Days": "Day(s)",
|
|
524
|
+
"WIDGET_Countdown_Hours": "Hour(s)",
|
|
525
|
+
"WIDGET_Countdown_Minutes": "Minutes(s)",
|
|
526
|
+
"WIDGET_Countdown_Select_Social_Event": "Sélectionner un évènement",
|
|
527
|
+
"WIDGET_Countdown_Select_Social_Event_Message": "Seuls les événements/réunions des 60 prochains jours peuvent être affichés dans le compte à rebours",
|
|
528
|
+
"WIDGET_Countdown_Select_Meeting": "Sélectionner une réunion",
|
|
529
|
+
"PANEL_Widget_Countdown_Size": "Séléctionnez une taille",
|
|
530
|
+
"PANEL_Widget_Countdown_Use_Image": "Sélectionner une type de fond",
|
|
531
|
+
"PANEL_Widget_Countdown_Use_Image_Disabled_Message": "Aucune illustration disponible",
|
|
532
|
+
"PANEL_Widget_Countdown_Use_Background_Texture": "Texture de fond",
|
|
510
533
|
"WIDGET_Survey_Open": "Open survey",
|
|
511
534
|
"WIDGET_Text_Use_Flex_Label": "Disposition flexible",
|
|
512
535
|
"WIDGET_User_Profil_Display_Mode_Label": "Affichage du nom",
|
|
@@ -530,6 +553,10 @@ declare const _default: {
|
|
|
530
553
|
"WIDGET_Welcome": "Message d'accueil",
|
|
531
554
|
"WIDGET_Embed": "Embed",
|
|
532
555
|
"WIDGET_Embed_Text": "Embed external HTML content (iframe, integration code)",
|
|
556
|
+
"WIDGET_FLOCKLER": "Flockler",
|
|
557
|
+
"WIDGET_FLOCKLER_TEXT": "Embed a Flockler social wall",
|
|
558
|
+
"WIDGET_Flockler_Embed_Code": "Embed code url",
|
|
559
|
+
"WIDGET_Flockler_Embed_Code_Help": "Copy preview URL here",
|
|
533
560
|
"WIDGET_Youtube_Url": "Video URL",
|
|
534
561
|
"WIDGET_Youtube": "Video",
|
|
535
562
|
"WIDGET_Youtube_Text": "Embed a YouTube video",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-react-components",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.105",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/jamespot-react-components.cjs",
|
|
6
6
|
"module": "dist/jamespot-react-components.js",
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
"eslint-plugin-storybook": "10.3.6",
|
|
60
60
|
"globals": "^16.5.0",
|
|
61
61
|
"html2canvas": "^1.4.1",
|
|
62
|
-
"jamespot-front-business": "^1.3.
|
|
63
|
-
"jamespot-user-api": "^1.3.
|
|
62
|
+
"jamespot-front-business": "^1.3.104",
|
|
63
|
+
"jamespot-user-api": "^1.3.105",
|
|
64
64
|
"jsdom": "^26.1.0",
|
|
65
65
|
"knip": "^5.88.1",
|
|
66
66
|
"lint-staged": "^16.4.0",
|
|
File without changes
|
|
File without changes
|