jamespot-react-core 1.1.185 → 1.1.187
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/build/435.38154081efc76cefc3ba.chunk.js +654 -0
- package/build/435.38154081efc76cefc3ba.chunk.js.map +1 -0
- package/build/app.bundle.js +638 -441
- package/build/app.bundle.js.map +1 -1
- package/build/src/ReactCore.d.ts +3 -3
- package/build/src/components/Empty.d.ts +1 -1
- package/build/src/components/ExtensionProvider.component.d.ts +2 -2
- package/build/src/components/RTProvider.component.d.ts +2 -2
- package/build/src/components/Toaster.d.ts +1 -1
- package/build/src/components/TwoColLayout.d.ts +1 -1
- package/build/src/components/editors/EditorTabDisplayLevel.d.ts +12 -0
- package/build/src/components/editors/EditorTabWidgetSelection.d.ts +4 -0
- package/build/src/components/editors/components/EditorInputColor.d.ts +8 -0
- package/build/src/components/editors/components/EditorInputNumber.d.ts +6 -0
- package/build/src/components/editors/components/EditorInputSelect.d.ts +16 -0
- package/build/src/components/editors/states/EditorIsInitialize.d.ts +2 -2
- package/build/src/components/editors/style.d.ts +1 -0
- package/build/src/components/widgets/Widget.d.ts +6 -4
- package/build/src/components/widgets/WidgetLayer/WidgetLayer.d.ts +2 -2
- package/build/src/components/widgets/WidgetWrapperCore.d.ts +4 -3
- package/build/src/components/widgets/WidgetWrapperCoreEditHover.d.ts +7 -0
- package/build/src/components/widgets/components/WidgetUploader.d.ts +2 -2
- package/build/src/components/widgets/utils.d.ts +3 -2
- package/build/src/components/widgets/wrapper/JRCWidgetArticleTitleWrapper.d.ts +2 -1
- package/build/src/components/widgets/wrapper/JRCWidgetCalendarCalDavWrapper.d.ts +9 -0
- package/build/src/components/widgets/wrapper/JRCWidgetContactCardDavWrapper.d.ts +9 -0
- package/build/src/components/widgets/wrapper/JRCWidgetEmailsImapWrapper.d.ts +9 -0
- package/build/src/components/widgets/wrapper/JRCWidgetIconWrapper.d.ts +11 -0
- package/build/src/components/widgets/wrapper/WidgetCalendarCalDav/WidgetCalendarCalDavHeader.d.ts +8 -0
- package/build/src/components/widgets/wrapper/WidgetContactCardDav/WidgetContactCardDavHeader.d.ts +8 -0
- package/build/src/components/widgets/wrapper/WidgetEmailsImap/WidgetEmailsImapHeader.d.ts +13 -0
- package/build/src/components/widgets/wrapper/components/OfficeConfigurationPrompt.d.ts +24 -0
- package/build/src/components/widgets/wrapper/components/WidgetHeader.d.ts +13 -0
- package/build/src/components/widgets/wrapper/components/WidgetIntranetTitle.d.ts +13 -0
- package/build/src/components/widgets/wrapper/components/WidgetScroll.d.ts +9 -0
- package/build/src/components/widgets/wrapper/components/WidgetStylePadding.d.ts +8 -0
- package/build/src/components/widgets/wrapper/components/WidgetStyleWrapper.d.ts +14 -0
- package/build/src/displayer/DisplayForm.component.d.ts +5 -5
- package/build/src/displayer/components/DisplayRender.d.ts +1 -1
- package/build/src/displayer/components/inputs/Date.d.ts +1 -1
- package/build/src/displayer/components/inputs/DefaultInput.d.ts +1 -1
- package/build/src/displayer/components/inputs/InputAudience.d.ts +1 -1
- package/build/src/displayer/components/inputs/InputCheckbox.d.ts +1 -1
- package/build/src/displayer/components/inputs/InputEmail.d.ts +1 -1
- package/build/src/displayer/components/inputs/InputRichText.d.ts +1 -1
- package/build/src/displayer/components/inputs/InputSelect.d.ts +1 -1
- package/build/src/displayer/components/inputs/InputTaxonomy.d.ts +1 -1
- package/build/src/displayer/components/inputs/InputTextarea.d.ts +1 -1
- package/build/src/displayer/components/inputs/OrientedLink.d.ts +1 -1
- package/build/src/displayer/types.d.ts +5 -5
- package/build/src/displayer/useDisplay.d.ts +1 -1
- package/build/src/redux/store.d.ts +294 -15
- package/build/src/registry/ReactCommonRegistry.d.ts +2 -2
- package/build/src/registry/ReactCoreRegistry.d.ts +2 -2
- package/build/src/registry/ext-component-list.d.ts +8 -0
- package/build/src/utils/types.d.ts +4 -4
- package/package.json +4 -4
- package/build/724.843c4f66e67a00f149d5.chunk.js +0 -561
- package/build/724.843c4f66e67a00f149d5.chunk.js.map +0 -1
package/build/src/ReactCore.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactCore, ReactExtensions, Gabarit, ReactLoadedExtensions } from './utils/types';
|
|
2
2
|
import { ReactTranslation, SupportedLanguages } from './utils/translation';
|
|
3
|
-
import
|
|
3
|
+
import { MouseEvent } from 'react';
|
|
4
4
|
import { useDisplay, useDisplayList } from './displayer/useDisplay';
|
|
5
5
|
import { ReactRouter } from './utils/router';
|
|
6
6
|
import { JInjectStore } from './redux/store';
|
|
@@ -35,8 +35,8 @@ declare class App implements ReactCore {
|
|
|
35
35
|
reload: boolean;
|
|
36
36
|
notify?: boolean;
|
|
37
37
|
callback?: () => void;
|
|
38
|
-
event?:
|
|
38
|
+
event?: MouseEvent<HTMLElement>;
|
|
39
39
|
}): void;
|
|
40
|
-
changeWindowLocation(targetUrl: string, event:
|
|
40
|
+
changeWindowLocation(targetUrl: string, event: MouseEvent<HTMLElement>, enableWindowOpen?: boolean): void;
|
|
41
41
|
}
|
|
42
42
|
export default App;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export declare const Empty: () => React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
export type ExtensionProviderProps = {
|
|
3
3
|
layout?: boolean;
|
|
4
|
-
children?:
|
|
4
|
+
children?: ReactNode;
|
|
5
5
|
};
|
|
6
6
|
export declare const ExtensionProvider: ({ layout, children }: ExtensionProviderProps) => React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export declare const Toaster: () => React.JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* level 1 : Icon only (iOS like)
|
|
5
|
+
* level 2 : Icon + Notification cell (iOS like)
|
|
6
|
+
* level 3 : Default display
|
|
7
|
+
* Level 4 : ???
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
export declare const EditorTabDisplayLevel: ({ uniqid }: {
|
|
11
|
+
uniqid: string;
|
|
12
|
+
}) => React.JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const Label: import("styled-components").StyledComponent<"label", import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
+
export declare const Fieldset: import("styled-components").StyledComponent<"fieldset", import("styled-components").DefaultTheme, {}, never>;
|
|
4
|
+
export declare const EditorInputColor: ({ label, initialValue, handleChange, }: {
|
|
5
|
+
label: string;
|
|
6
|
+
initialValue?: string | undefined;
|
|
7
|
+
handleChange: (color: string) => void;
|
|
8
|
+
}) => React.JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type EditorSelectOption = {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string;
|
|
5
|
+
};
|
|
6
|
+
export type EditorSelectOptions = EditorSelectOption[];
|
|
7
|
+
export declare const EditorInputSelect: ({ label, options, initialValue, required, handleChange, }: {
|
|
8
|
+
label: string;
|
|
9
|
+
options: {
|
|
10
|
+
label: string;
|
|
11
|
+
value: string;
|
|
12
|
+
}[];
|
|
13
|
+
initialValue?: string | undefined;
|
|
14
|
+
required: boolean;
|
|
15
|
+
handleChange: (value: string) => void;
|
|
16
|
+
}) => React.JSX.Element;
|
|
@@ -11,6 +11,7 @@ export declare const CSSEditor: import("styled-components").StyledComponent<"div
|
|
|
11
11
|
position: 'left' | 'right';
|
|
12
12
|
}, never>;
|
|
13
13
|
export declare const CSSEditorContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
14
|
+
export declare const CSSEditorTab: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
14
15
|
export declare const CSSEditorIsBusy: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
15
16
|
export declare const CSSEditorIsLocked: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
16
17
|
export declare const CSSEditorMenu: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { CombinedWidgetType, WidgetDisplayMode } from 'jamespot-user-api';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { CombinedWidgetType, WidgetDisplayMode, WidgetWrapperLevel } from 'jamespot-user-api';
|
|
3
3
|
export declare const CSSWidgetWithTitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
4
|
-
export declare const DisplayWidget: ({ widget, width, inplace, mode, onWidgetUpdate, cannotDisplayComponent, }: {
|
|
4
|
+
export declare const DisplayWidget: ({ widget, width, inplace, mode, onWidgetUpdate, cannotDisplayComponent, levelFallback, dataCy, }: {
|
|
5
5
|
widget: CombinedWidgetType;
|
|
6
6
|
width?: number | undefined;
|
|
7
7
|
inplace: boolean;
|
|
8
8
|
mode: WidgetDisplayMode;
|
|
9
9
|
onWidgetUpdate?: (() => void) | undefined;
|
|
10
10
|
onClick: () => void;
|
|
11
|
-
cannotDisplayComponent?: ((widget: string) =>
|
|
11
|
+
cannotDisplayComponent?: ((widget: string) => ReactNode) | undefined;
|
|
12
|
+
levelFallback?: ((level: WidgetWrapperLevel, url: string) => ReactNode | undefined) | undefined;
|
|
13
|
+
dataCy?: string | undefined;
|
|
12
14
|
}) => React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { ReactElement } from 'react';
|
|
2
2
|
import { WidgetDisplayMode } from 'jamespot-user-api';
|
|
3
3
|
export declare const WidgetLayer: ({ uniqid, mode }: {
|
|
4
4
|
uniqid: string;
|
|
@@ -10,6 +10,6 @@ export type Vector = {
|
|
|
10
10
|
};
|
|
11
11
|
export declare const DraggableHandler: ({ position, children, onMouseUp, }: {
|
|
12
12
|
position: Vector;
|
|
13
|
-
children:
|
|
13
|
+
children: ReactElement;
|
|
14
14
|
onMouseUp: (position: Vector) => void;
|
|
15
15
|
}) => React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
import { jCommentList, WidgetDisplayMode, WidgetWrapperProps } from 'jamespot-user-api';
|
|
3
3
|
type WidgetWrapperCoreProps = {
|
|
4
4
|
uniqid: string;
|
|
@@ -8,7 +8,8 @@ type WidgetWrapperCoreProps = {
|
|
|
8
8
|
mode: WidgetDisplayMode;
|
|
9
9
|
width?: number | undefined;
|
|
10
10
|
onWidgetUpdate?: () => void;
|
|
11
|
-
cannotDisplayComponent?: (widget: string) =>
|
|
11
|
+
cannotDisplayComponent?: (widget: string) => ReactNode;
|
|
12
|
+
dataCy?: string;
|
|
12
13
|
};
|
|
13
|
-
export declare const WidgetWrapperCore: ({ uniqid, widgetObject, widget, inplace, mode, width, onWidgetUpdate, cannotDisplayComponent, }: WidgetWrapperCoreProps) => React.JSX.Element;
|
|
14
|
+
export declare const WidgetWrapperCore: ({ uniqid, widgetObject, widget, inplace, mode, width, onWidgetUpdate, cannotDisplayComponent, dataCy, }: WidgetWrapperCoreProps) => React.JSX.Element;
|
|
14
15
|
export default WidgetWrapperCore;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WidgetKeys } from 'jamespot-user-api';
|
|
3
|
+
export declare const WrapperEditMode: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;
|
|
4
|
+
export declare const WidgetWrapperCoreEditHover: ({ uniqid, name }: {
|
|
5
|
+
uniqid: string;
|
|
6
|
+
name: WidgetKeys;
|
|
7
|
+
}) => React.JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
import { jFileLittle } from 'jamespot-user-api';
|
|
3
3
|
export declare const CSSHidden: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
4
4
|
type InplaceUploaderProps = {
|
|
5
|
-
children:
|
|
5
|
+
children: ReactNode;
|
|
6
6
|
initialFiles: jFileLittle[];
|
|
7
7
|
initialClick?: boolean;
|
|
8
8
|
multiple: boolean;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
export declare const loadImage: (setImageDimensions: Dispatch<SetStateAction<{
|
|
2
3
|
width: number;
|
|
3
4
|
height: number;
|
|
4
|
-
}>>, imageUrl: string, setError:
|
|
5
|
+
}>>, imageUrl: string, setError: Dispatch<SetStateAction<boolean>>) => void;
|
|
5
6
|
export declare function reduce(obj: Record<string, unknown>, prop: string): Record<string, unknown>;
|
|
6
7
|
export declare function imageResize(width: number, height: number, maxWidth: number, maxHeight: number): {
|
|
7
8
|
width: number;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { WidgetArticleTitleType, WidgetDisplayMode } from 'jamespot-user-api';
|
|
3
|
-
export declare const JRCWidgetArticleTitleWrapper: ({ widget, inplace, mode, }: {
|
|
3
|
+
export declare const JRCWidgetArticleTitleWrapper: ({ widget, inplace, mode, dataCy, }: {
|
|
4
4
|
widget: WidgetArticleTitleType;
|
|
5
5
|
inplace: boolean;
|
|
6
6
|
mode?: "view" | "edit" | "preview" | undefined;
|
|
7
|
+
dataCy?: string | undefined;
|
|
7
8
|
}) => React.JSX.Element;
|
|
8
9
|
export declare const Toolbar: ({ heading, onClick }: {
|
|
9
10
|
heading?: string | undefined;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { WidgetCalendarCalDavType, WidgetDisplayMode, WidgetWrapperLevel } from 'jamespot-user-api';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export type JRCWidgetCalendarCalDavWrapperProps = {
|
|
4
|
+
widget: WidgetCalendarCalDavType;
|
|
5
|
+
inplace: boolean;
|
|
6
|
+
mode?: WidgetDisplayMode;
|
|
7
|
+
levelFallback?: (level: WidgetWrapperLevel, url: string) => React.ReactNode | undefined;
|
|
8
|
+
};
|
|
9
|
+
export declare const JRCWidgetCalendarCalDavWrapper: ({ widget, mode, levelFallback, }: JRCWidgetCalendarCalDavWrapperProps) => React.JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { WidgetContactCardDavType, WidgetDisplayMode, WidgetWrapperLevel } from 'jamespot-user-api';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export type JRCWidgetContactCardDavProps = {
|
|
4
|
+
widget: WidgetContactCardDavType;
|
|
5
|
+
inplace: boolean;
|
|
6
|
+
mode?: WidgetDisplayMode;
|
|
7
|
+
levelFallback?: (level: WidgetWrapperLevel, url: string) => React.ReactNode | undefined;
|
|
8
|
+
};
|
|
9
|
+
export declare const JRCWidgetContactCardDavWrapper: ({ widget, mode, levelFallback }: JRCWidgetContactCardDavProps) => React.JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { WidgetDisplayMode, WidgetEmailsImapType, WidgetWrapperLevel } from 'jamespot-user-api';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export type JRCWidgetEmailsImapProps = {
|
|
4
|
+
widget: WidgetEmailsImapType;
|
|
5
|
+
inplace: boolean;
|
|
6
|
+
mode?: WidgetDisplayMode;
|
|
7
|
+
levelFallback?: (level: WidgetWrapperLevel, url: string) => React.ReactNode | undefined;
|
|
8
|
+
};
|
|
9
|
+
export declare const JRCWidgetEmailsImapWrapper: ({ widget, mode, levelFallback }: JRCWidgetEmailsImapProps) => React.JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { WidgetKeys, WidgetWrapperLevel } from 'jamespot-user-api';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export declare const CSSIconAbsoluteA: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, {
|
|
4
|
+
color: string | undefined;
|
|
5
|
+
}, never>;
|
|
6
|
+
export declare const JRCWidgetIconWrapper: ({ uniqid, name, url, level, }: {
|
|
7
|
+
uniqid: string;
|
|
8
|
+
name: WidgetKeys;
|
|
9
|
+
url: string;
|
|
10
|
+
level: WidgetWrapperLevel;
|
|
11
|
+
}) => React.JSX.Element;
|
package/build/src/components/widgets/wrapper/WidgetCalendarCalDav/WidgetCalendarCalDavHeader.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const UIHeader: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
+
export declare const UIHeaderFlex: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
4
|
+
export declare const WidgetCalendarCalDavHeader: ({ uniqid, isConfigurationValid, handleLogout, }: {
|
|
5
|
+
uniqid: string;
|
|
6
|
+
isConfigurationValid: boolean;
|
|
7
|
+
handleLogout: () => void;
|
|
8
|
+
}) => React.JSX.Element;
|
package/build/src/components/widgets/wrapper/WidgetContactCardDav/WidgetContactCardDavHeader.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const UIHeader: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
+
export declare const UIHeaderFlex: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
4
|
+
export declare const WidgetContactCardDavHeader: ({ uniqid, isConfigurationValid, handleLogout, }: {
|
|
5
|
+
uniqid: string;
|
|
6
|
+
isConfigurationValid: boolean;
|
|
7
|
+
handleLogout: () => void;
|
|
8
|
+
}) => React.JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const UIHeaderWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
3
|
+
backroundColor: string;
|
|
4
|
+
color: string;
|
|
5
|
+
}, never>;
|
|
6
|
+
export declare const UIHeader: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
7
|
+
export declare const UICount: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
8
|
+
export declare const UIHeaderFlex: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
9
|
+
export declare const WidgetEmailsImapHeader: ({ uniqid, isConfigurationValid, handleLogout, }: {
|
|
10
|
+
uniqid: string;
|
|
11
|
+
isConfigurationValid: boolean;
|
|
12
|
+
handleLogout: () => void;
|
|
13
|
+
}) => React.JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { WidgetDisplayMode, WidgetEmailsImapType } from 'jamespot-user-api';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export declare const UIForm: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
4
|
+
isLocked: boolean;
|
|
5
|
+
}, never>;
|
|
6
|
+
export declare const UIWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
7
|
+
export declare const UIProviderError: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
8
|
+
export type JRCWidgetEmailsImapProps = {
|
|
9
|
+
widget: WidgetEmailsImapType;
|
|
10
|
+
inplace: boolean;
|
|
11
|
+
mode?: WidgetDisplayMode;
|
|
12
|
+
};
|
|
13
|
+
export declare const officeConfigurationInitalState: {
|
|
14
|
+
username: string;
|
|
15
|
+
password: string;
|
|
16
|
+
hostname: string;
|
|
17
|
+
imapMailbox: string;
|
|
18
|
+
cardDavAddressBook: string;
|
|
19
|
+
calDavCalendar: string;
|
|
20
|
+
provider: string;
|
|
21
|
+
};
|
|
22
|
+
export declare const OfficeConfigurationPrompt: ({ handleCallback }: {
|
|
23
|
+
handleCallback?: ((isValid: boolean) => void) | undefined;
|
|
24
|
+
}) => React.JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const UIHeaderWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
3
|
+
backroundColor: string;
|
|
4
|
+
color: string;
|
|
5
|
+
}, never>;
|
|
6
|
+
export declare const UIHeader: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
7
|
+
export declare const UICount: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
8
|
+
export declare const UIHeaderFlex: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
9
|
+
export declare const WidgetHeader: ({ uniqid, dropdown, subHeader, }: {
|
|
10
|
+
uniqid: string;
|
|
11
|
+
dropdown?: (() => React.ReactNode) | undefined;
|
|
12
|
+
subHeader?: (() => React.ReactNode) | undefined;
|
|
13
|
+
}) => React.JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const CSSWidgetTitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
+
export declare const UITitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
4
|
+
fontSize: string;
|
|
5
|
+
fontWeight: string;
|
|
6
|
+
textAlign: string;
|
|
7
|
+
}, never>;
|
|
8
|
+
export declare const WidgetIntranetTitle: ({ uniqid, textAlign, fontSize, fontWeight, }: {
|
|
9
|
+
uniqid: string;
|
|
10
|
+
textAlign: string;
|
|
11
|
+
fontSize: string;
|
|
12
|
+
fontWeight: string;
|
|
13
|
+
}) => React.JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const UIFlex: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
+
export declare const UIScrollWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
4
|
+
export declare const UIScroll: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
5
|
+
export declare const WidgetScroll: ({ header, scrollable, footer, }: {
|
|
6
|
+
header?: (() => React.ReactNode) | undefined;
|
|
7
|
+
scrollable?: (() => React.ReactNode) | undefined;
|
|
8
|
+
footer?: (() => React.ReactNode) | undefined;
|
|
9
|
+
}) => React.JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const UIWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
3
|
+
padding: string;
|
|
4
|
+
}, never>;
|
|
5
|
+
export declare const WidgetStylePadding: ({ uniqid, children }: {
|
|
6
|
+
uniqid: string;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
}) => React.JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const UIWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
3
|
+
backgroundColor: string;
|
|
4
|
+
borderStyle: string;
|
|
5
|
+
borderWidth: string;
|
|
6
|
+
borderColor: string;
|
|
7
|
+
borderRadius: string;
|
|
8
|
+
overflow: string;
|
|
9
|
+
}, never>;
|
|
10
|
+
export declare const WidgetStyleWrapper: React.ForwardRefExoticComponent<{
|
|
11
|
+
uniqid: string;
|
|
12
|
+
onClick: () => void;
|
|
13
|
+
children: React.ReactNode;
|
|
14
|
+
} & React.RefAttributes<unknown>>;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { DisplayFormFieldsConfig, DisplayFormRef } from './types';
|
|
3
2
|
import { Control, FieldValues } from 'react-hook-form';
|
|
3
|
+
import React, { ForwardedRef, ReactNode } from 'react';
|
|
4
4
|
export type DisplayFormProps<TFieldValues extends FieldValues> = {
|
|
5
5
|
type: string;
|
|
6
6
|
fields: DisplayFormFieldsConfig<TFieldValues>;
|
|
7
|
-
extraInputs?: (control: Control<TFieldValues>) =>
|
|
7
|
+
extraInputs?: (control: Control<TFieldValues>) => ReactNode;
|
|
8
8
|
defaultValues?: any;
|
|
9
9
|
onSubmit?: any;
|
|
10
|
-
buttons?:
|
|
10
|
+
buttons?: ReactNode;
|
|
11
11
|
readOnly?: boolean;
|
|
12
12
|
dataCy?: string;
|
|
13
13
|
stretch?: boolean;
|
|
14
|
-
children?:
|
|
14
|
+
children?: ReactNode;
|
|
15
15
|
forceMandatory?: boolean;
|
|
16
16
|
};
|
|
17
17
|
/****
|
|
@@ -21,7 +21,7 @@ export type DisplayFormProps<TFieldValues extends FieldValues> = {
|
|
|
21
21
|
*
|
|
22
22
|
* This component display an array of attributes only if this attribute is activated on the platform
|
|
23
23
|
*/
|
|
24
|
-
declare const _DisplayForm: <TFieldValues extends FieldValues>(props: DisplayFormProps<TFieldValues>, ref:
|
|
24
|
+
declare const _DisplayForm: <TFieldValues extends FieldValues>(props: DisplayFormProps<TFieldValues>, ref: ForwardedRef<DisplayFormRef>) => React.JSX.Element;
|
|
25
25
|
export declare const DisplayForm: <TFieldValues extends FieldValues>(props: DisplayFormProps<TFieldValues> & {
|
|
26
26
|
ref?: React.ForwardedRef<DisplayFormRef> | undefined;
|
|
27
27
|
}) => ReturnType<typeof _DisplayForm>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RenderAttributeProps } from '../types';
|
|
2
|
-
import
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import { WidgetOption } from '../displayer.utils';
|
|
4
4
|
export declare function DisplayDate({ object, attribute }: RenderAttributeProps): React.JSX.Element | null;
|
|
5
5
|
export declare function DisplayDefault({ object, attribute }: RenderAttributeProps): React.JSX.Element | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { DisplayInputComponentProps } from '../../types';
|
|
3
3
|
import type { FieldValues } from 'react-hook-form';
|
|
4
4
|
export declare const InputDate: <TFieldValues extends FieldValues>(props: DisplayInputComponentProps<TFieldValues>) => React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { DisplayInputComponentProps } from '../../types';
|
|
3
3
|
import type { FieldValues } from 'react-hook-form';
|
|
4
4
|
export declare const DefaultInput: <TFieldValues extends FieldValues>(props: DisplayInputComponentProps<TFieldValues>) => React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { DisplayInputComponentProps } from '../../types';
|
|
3
3
|
import type { FieldValues } from 'react-hook-form';
|
|
4
4
|
export declare const InputAudience: <TFieldValues extends FieldValues>(props: DisplayInputComponentProps<TFieldValues>) => React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { DisplayInputComponentProps } from '../../types';
|
|
3
3
|
import type { FieldValues } from 'react-hook-form';
|
|
4
4
|
export declare const InputEmail: <TFieldValues extends FieldValues>(props: DisplayInputComponentProps<TFieldValues>) => React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { DisplayInputComponentProps } from '../../types';
|
|
3
3
|
import type { FieldValues } from 'react-hook-form';
|
|
4
4
|
export declare const InputRichText: <TFieldValues extends FieldValues>(props: DisplayInputComponentProps<TFieldValues>) => React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { DisplayInputComponentProps } from '../../types';
|
|
3
3
|
import type { FieldValues } from 'react-hook-form';
|
|
4
4
|
export declare const InputTextarea: <TFieldValues extends FieldValues>(props: DisplayInputComponentProps<TFieldValues>) => React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { DisplayInputComponentProps } from '../../types';
|
|
3
3
|
import type { FieldValues } from 'react-hook-form';
|
|
4
4
|
export declare const OrientedLinkInput: (type?: string, isRequired?: boolean) => <TFieldValues extends FieldValues>({ widget, ...props }: DisplayInputComponentProps<TFieldValues>) => React.JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import type { FieldValues } from 'react-hook-form';
|
|
3
2
|
import type { Widget } from 'jamespot-user-api';
|
|
4
3
|
import type { NameControl } from 'jamespot-react-components';
|
|
5
4
|
import { UseFormReturn } from 'react-hook-form';
|
|
5
|
+
import { FunctionComponent, ReactNode } from 'react';
|
|
6
6
|
export type IncludeCustom = {
|
|
7
7
|
includes: 'tags';
|
|
8
8
|
};
|
|
@@ -49,9 +49,9 @@ export type DisplayInputComponentProps<TFieldValues extends FieldValues = FieldV
|
|
|
49
49
|
readOnly?: boolean;
|
|
50
50
|
};
|
|
51
51
|
export type DisplayElementComponent<TFieldValues extends FieldValues = FieldValues> = {
|
|
52
|
-
render:
|
|
53
|
-
input:
|
|
54
|
-
search:
|
|
52
|
+
render: FunctionComponent<RenderAttributeProps>;
|
|
53
|
+
input: FunctionComponent<DisplayInputComponentProps<TFieldValues>>;
|
|
54
|
+
search: FunctionComponent<DisplayInputComponentProps<TFieldValues>>;
|
|
55
55
|
};
|
|
56
56
|
export type DisplayerElementAttributes = {
|
|
57
57
|
name: string;
|
|
@@ -68,7 +68,7 @@ export type DisplayFormProps<TFieldValues extends FieldValues = FieldValues> = {
|
|
|
68
68
|
componentsOverride?: Record<string, Partial<DisplayElementComponent<TFieldValues>>>;
|
|
69
69
|
attributesName: string[];
|
|
70
70
|
onSubmit: any;
|
|
71
|
-
buttons:
|
|
71
|
+
buttons: ReactNode;
|
|
72
72
|
};
|
|
73
73
|
export type DisplayFormRef = UseFormReturn<any> & {
|
|
74
74
|
getFormattedValues: () => any;
|