jamespot-react-components 1.3.84 → 1.3.85
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/README.md +2 -116
- package/dist/jamespot-react-components.cjs +1085 -1106
- package/dist/jamespot-react-components.js +12979 -13078
- package/dist/src/components/404/JRC404.stories.d.ts +4 -0
- package/dist/src/components/Drives/Dropbox/DropboxDocuments.d.ts +1 -4
- package/dist/src/components/Drives/JRCDriveDropbox.d.ts +2 -5
- package/dist/src/components/Drives/JRCDriveMSGraph.d.ts +2 -5
- package/dist/src/components/Drives/MicrosoftGraph/MSGraphDocuments.d.ts +1 -4
- package/dist/src/components/Drives/MicrosoftGraph/MSGraphGroups.d.ts +2 -5
- package/dist/src/components/Drives/MicrosoftGraph/MSGraphTenants.d.ts +2 -5
- package/dist/src/components/Drives/components/DriveAccountHeader.d.ts +2 -5
- package/dist/src/components/Drives/hooks.d.ts +1 -5
- package/dist/src/components/Editors/components/EditorButtonToggle.stories.d.ts +7 -0
- package/dist/src/components/Editors/components/EditorImageUpload.d.ts +2 -5
- package/dist/src/components/Editors/components/EditorInputCheckbox.stories.d.ts +8 -0
- package/dist/src/components/Editors/components/EditorInputImage.d.ts +1 -4
- package/dist/src/components/Editors/components/EditorInputNumber.stories.d.ts +8 -0
- package/dist/src/components/Editors/components/EditorInputToggle.stories.d.ts +7 -0
- package/dist/src/components/Editors/components/EditorRichText.d.ts +1 -5
- package/dist/src/components/Editors/components/EditorRichTextDialog.d.ts +1 -5
- package/dist/src/components/Form/Input/JRCInputFile/JRCInputFile.d.ts +3 -3
- package/dist/src/components/Form/Input/JRCInputFileAdvanced/JRCInputFileAdvancedRaw.d.ts +1 -7
- package/dist/src/components/Form/Input/JRCInputText/JRCInputPassword.stories.d.ts +10 -0
- package/dist/src/components/Form/Input/JRCInputTextRaw/JRCInputTextRaw.stories.d.ts +45 -0
- package/dist/src/components/Form/Input/JRCInputTinyMCE/JRCInputTinyMCE.d.ts +2 -5
- package/dist/src/components/Form/Input/JRCInputTinyMCERaw/JRCInputTinyMCERaw.d.ts +1 -4
- package/dist/src/components/Form/Input/JRCSelect/JRCInputAudience.d.ts +0 -4
- package/dist/src/components/JRCAlbum/JRCAlbum.d.ts +1 -1
- package/dist/src/components/JRCAlbum/types.d.ts +1 -4
- package/dist/src/components/JRCAttachments/JRCAttachments.d.ts +2 -5
- package/dist/src/components/JRCCalendar/JRCCalendar.d.ts +1 -1
- package/dist/src/components/JRCCalendar/JRCCalendarModal.d.ts +2 -8
- package/dist/src/components/JRCCalendar/types.d.ts +1 -9
- package/dist/src/components/JRCCommentsBloc/JRCComment.d.ts +2 -12
- package/dist/src/components/JRCCommentsBloc/JRCCommentsBloc.d.ts +2 -12
- package/dist/src/components/JRCCommentsBloc/components/EditComment.d.ts +2 -8
- package/dist/src/components/JRCCommentsBloc/components/NewComment.d.ts +2 -8
- package/dist/src/components/JRCConfirmationModal/JRCConfirmationModal.stories.d.ts +6 -0
- package/dist/src/components/JRCFileViewer/JRCFileViewerOpenWithOptions.stories.d.ts +7 -0
- package/dist/src/components/JRCHtml/JRCHtml.d.ts +7 -13
- package/dist/src/components/JRCList/JRCListMockData.stories.d.ts +7 -1
- package/dist/src/components/JRCProvider/JRCContext.d.ts +5 -0
- package/dist/src/components/JRCProvider/JRCProvider.d.ts +9 -0
- package/dist/src/components/JRCSkeleton/JRCSkeletonList.stories.d.ts +7 -0
- package/dist/src/components/JRCSocialActions/JRCSocialActions.d.ts +2 -5
- package/dist/src/components/JRCUserPopup/JRCUserPopup.d.ts +2 -5
- package/dist/src/components/JRCUserPopup/JRCUserPopup.stories.d.ts +5 -4
- package/dist/src/components/Templates/JRCTwoColumns.template.stories.d.ts +7 -0
- package/dist/src/components/Widgets/JRCWidgetAccessibility/JRCWidgetAccessibility.stories.d.ts +7 -0
- package/dist/src/components/Widgets/JRCWidgetAccessibility/JRCWidgetAccessibilityEditor.stories.d.ts +7 -0
- package/dist/src/components/Widgets/JRCWidgetArticleSlider/JRCWidgetArticleSliderEditor.d.ts +2 -5
- package/dist/src/components/Widgets/JRCWidgetArticleSlider/JRCWidgetArticleSliderEditorSlide.d.ts +2 -5
- package/dist/src/components/Widgets/JRCWidgetArticleSlider/JRCWidgetArticleSliderEditorSlideRemove.stories.d.ts +7 -0
- package/dist/src/components/Widgets/JRCWidgetArticleText/JRCWidgetArticleText.d.ts +2 -5
- package/dist/src/components/Widgets/JRCWidgetArticleTitle/JRCWidgetArticleTitle.stories.d.ts +8 -0
- package/dist/src/components/Widgets/JRCWidgetCalendarCalDav/JRCWidgetCalendarCalDav.stories.d.ts +7 -0
- package/dist/src/components/Widgets/JRCWidgetCalendarCalDav/JRCWidgetCalendarCalDavEditor.stories.d.ts +6 -0
- package/dist/src/components/Widgets/JRCWidgetCheckList/JRCWidgetCheckListEditor.d.ts +2 -5
- package/dist/src/components/Widgets/JRCWidgetCheckList/JRCWidgetCheckListImage.stories.d.ts +7 -0
- package/dist/src/components/Widgets/JRCWidgetCheckList/JRCWidgetCheckListItem.d.ts +1 -4
- package/dist/src/components/Widgets/JRCWidgetColor/JRCWidgetColor.stories.d.ts +8 -0
- package/dist/src/components/Widgets/JRCWidgetColor/JRCWidgetColorEditor.stories.d.ts +7 -0
- package/dist/src/components/Widgets/JRCWidgetContactCardDav/JRCWidgetContactCardDav.stories.d.ts +7 -0
- package/dist/src/components/Widgets/JRCWidgetContactCardDav/JRCWidgetContactCardDavEditor.stories.d.ts +6 -0
- package/dist/src/components/Widgets/JRCWidgetCover/JRCWidgetCoverEditor.d.ts +1 -1
- package/dist/src/components/Widgets/JRCWidgetEmailsImap/JRCWidgetEmailsImap.stories.d.ts +8 -0
- package/dist/src/components/Widgets/JRCWidgetEmailsImap/JRCWidgetEmailsImapEditor.stories.d.ts +6 -0
- package/dist/src/components/Widgets/JRCWidgetEmailsImap/JRCWidgetEmailsImapLevel2.stories.d.ts +8 -0
- package/dist/src/components/Widgets/JRCWidgetEmptyInplace.stories.d.ts +6 -0
- package/dist/src/components/Widgets/JRCWidgetExtension/JRCWidgetExtensionEditor.stories.d.ts +7 -0
- package/dist/src/components/Widgets/JRCWidgetIcon.stories.d.ts +8 -0
- package/dist/src/components/Widgets/JRCWidgetImage/JRCWidgetArticleImageEditor.d.ts +2 -5
- package/dist/src/components/Widgets/JRCWidgetLuccaAbsence/JRCWidgetLuccaAbsence.stories.d.ts +7 -0
- package/dist/src/components/Widgets/JRCWidgetLuccaAbsence/JRCWidgetLuccaAbsenceEditor.stories.d.ts +6 -0
- package/dist/src/components/Widgets/JRCWidgetPresence/JRCWidgetPresenceEditor.stories.d.ts +8 -0
- package/dist/src/components/Widgets/JRCWidgetQuickSurvey/JRCWidgetQuickSurveyEditor.d.ts +2 -5
- package/dist/src/components/Widgets/JRCWidgetQuickSurvey/JRCWidgetQuickSurveyEditorAddEntry.stories.d.ts +6 -0
- package/dist/src/components/Widgets/JRCWidgetQuickSurvey/JRCWidgetQuickSurveyEditorEntries.d.ts +2 -5
- package/dist/src/components/Widgets/JRCWidgetQuickSurvey/JRCWidgetQuickSurveyImage.stories.d.ts +7 -0
- package/dist/src/components/Widgets/JRCWidgetQuickSurvey/JRCWidgetQuickSurveyItemWrapper.d.ts +1 -4
- package/dist/src/components/Widgets/JRCWidgetSlider/JRCWidgetSliderEditor.d.ts +2 -5
- package/dist/src/components/Widgets/JRCWidgetSlider/JRCWidgetSliderEditorSlide.d.ts +2 -5
- package/dist/src/components/Widgets/JRCWidgetSlider/components/CoverSliderSlide.stories.d.ts +6 -0
- package/dist/src/components/Widgets/JRCWidgetText/JRCWidgetText.stories.d.ts +8 -0
- package/dist/src/components/Widgets/JRCWidgetText/JRCWidgetTextEditor.d.ts +3 -6
- package/dist/src/hooks/UseImageLoader.stories.d.ts +7 -0
- package/dist/src/hooks/index.d.ts +2 -1
- package/dist/src/hooks/useApi.d.ts +2 -0
- package/dist/src/hooks/useRefSize.stories.d.ts +4 -0
- package/dist/src/index.d.ts +2 -2
- package/dist/src/types.d.ts +1 -1
- package/dist/src/utils/utils.html.d.ts +4 -0
- package/package.json +24 -49
- package/dist/src/components/JRCThemeProvider/JRCThemeProvider.d.ts +0 -10
- package/jamespot-react-components@1.3.14 +0 -0
- package/vite +0 -0
- /package/dist/src/components/404/{index.d.ts → JRC404.d.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DropboxDocumentEntity
|
|
1
|
+
import { DropboxDocumentEntity } from 'jamespot-user-api';
|
|
2
2
|
type DropboxDocumentsProps = {
|
|
3
3
|
path: string;
|
|
4
4
|
initialFolderColor?: string;
|
|
@@ -10,9 +10,6 @@ type DropboxDocumentsProps = {
|
|
|
10
10
|
onSelectDocument?: (entity: DropboxDocumentEntity) => void;
|
|
11
11
|
onSelectMultiDocument?: (entity: DropboxDocumentEntity) => void;
|
|
12
12
|
onError?: (code: string) => void;
|
|
13
|
-
handlers: {
|
|
14
|
-
drive: Pick<JDriveApi, 'dropboxDocuments'>;
|
|
15
|
-
};
|
|
16
13
|
id: string;
|
|
17
14
|
service: string;
|
|
18
15
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DriveAccount, DriveItemType, DropboxDocumentEntity
|
|
1
|
+
import { DriveAccount, DriveItemType, DropboxDocumentEntity } from 'jamespot-user-api';
|
|
2
2
|
type JRCDriveDropboxProps = {
|
|
3
3
|
initialFolder?: DriveItemType;
|
|
4
4
|
initialFolderColor?: string;
|
|
@@ -9,13 +9,10 @@ type JRCDriveDropboxProps = {
|
|
|
9
9
|
onSelectMultiDocument?: (items: DropboxDocumentEntity[]) => void;
|
|
10
10
|
onSelectDocument?: (item: DropboxDocumentEntity, lastFolder: DropboxDocumentEntity | undefined) => void;
|
|
11
11
|
onError?: (code?: string) => void;
|
|
12
|
-
handlers: {
|
|
13
|
-
drive: Pick<JDriveApi, 'dropboxDocuments' | 'groups' | 'tenants' | 'listAccount' | 'isAccountLogged' | 'checkAccountToken' | 'getAccount' | 'logout' | 'setDefaultAccount'>;
|
|
14
|
-
};
|
|
15
12
|
handleLogin?: boolean;
|
|
16
13
|
onLogin?: (account: DriveAccount) => void;
|
|
17
14
|
onLogout?: () => void;
|
|
18
15
|
currentAccount?: DriveAccount;
|
|
19
16
|
};
|
|
20
|
-
export declare const JRCDriveDropbox: ({ initialFolder, initialFolderColor, useDocumentFilters, useFilter, useNavigation, onSelect, onSelectDocument, onSelectMultiDocument, onError,
|
|
17
|
+
export declare const JRCDriveDropbox: ({ initialFolder, initialFolderColor, useDocumentFilters, useFilter, useNavigation, onSelect, onSelectDocument, onSelectMultiDocument, onError, handleLogin, onLogin, currentAccount, }: JRCDriveDropboxProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
18
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DriveAccount, DriveItemType,
|
|
1
|
+
import { DriveAccount, DriveItemType, MSDocumentParams, MSUnifiedEntity } from 'jamespot-user-api';
|
|
2
2
|
type JRCDriveMSGraphProps = {
|
|
3
3
|
initialParams?: MSDocumentParams;
|
|
4
4
|
initialFolder?: DriveItemType;
|
|
@@ -10,13 +10,10 @@ type JRCDriveMSGraphProps = {
|
|
|
10
10
|
onSelectMultiDocument?: (items: MSUnifiedEntity[], driveParams: MSDocumentParams) => void;
|
|
11
11
|
onSelectDocument?: (item: MSUnifiedEntity, lastFolder: MSUnifiedEntity | undefined, driveParams: MSDocumentParams) => void;
|
|
12
12
|
onError?: (code?: string) => void;
|
|
13
|
-
handlers: {
|
|
14
|
-
drive: Pick<JDriveApi, 'msDocuments' | 'groups' | 'tenants' | 'listAccount' | 'isAccountLogged' | 'checkAccountToken' | 'getAccount' | 'logout' | 'setDefaultAccount'>;
|
|
15
|
-
};
|
|
16
13
|
handleLogin?: boolean;
|
|
17
14
|
onLogin?: (account: DriveAccount) => void;
|
|
18
15
|
onLogout?: () => void;
|
|
19
16
|
currentAccount?: DriveAccount;
|
|
20
17
|
};
|
|
21
|
-
export declare const JRCDriveMSGraph: ({ initialParams, initialFolder, initialFolderColor, useDocumentFilters, useFilter, useNavigation, onSelect, onSelectDocument, onSelectMultiDocument, onError,
|
|
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;
|
|
22
19
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MSDocumentParams, MSUnifiedEntity } from 'jamespot-user-api';
|
|
2
2
|
type MSGraphDocumentsProps = {
|
|
3
3
|
driveDocumentParams: MSDocumentParams;
|
|
4
4
|
initialFolderColor?: string;
|
|
@@ -10,9 +10,6 @@ type MSGraphDocumentsProps = {
|
|
|
10
10
|
onSelectDocument?: (entity: MSUnifiedEntity) => void;
|
|
11
11
|
onSelectMultiDocument?: (entity: MSUnifiedEntity) => void;
|
|
12
12
|
onError?: (code: string) => void;
|
|
13
|
-
handlers: {
|
|
14
|
-
drive: Pick<JDriveApi, 'msDocuments'>;
|
|
15
|
-
};
|
|
16
13
|
id: string;
|
|
17
14
|
};
|
|
18
15
|
export declare const MSGraphDocuments: (props: MSGraphDocumentsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MSGroupEntity } from 'jamespot-user-api';
|
|
2
2
|
export declare const LoaderWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
3
|
type MSGraphGroupsProps = {
|
|
4
4
|
useFilter: boolean;
|
|
@@ -7,10 +7,7 @@ type MSGraphGroupsProps = {
|
|
|
7
7
|
onSelect?: (entity: MSGroupEntity) => void;
|
|
8
8
|
onClick: (entity: MSGroupEntity) => void;
|
|
9
9
|
onError?: (code: string) => void;
|
|
10
|
-
handlers: {
|
|
11
|
-
drive: Pick<JDriveApi, 'groups'>;
|
|
12
|
-
};
|
|
13
10
|
id: string;
|
|
14
11
|
};
|
|
15
|
-
export declare const MSGraphGroups: ({ useFilter, useNavigation, onSelect, onClick,
|
|
12
|
+
export declare const MSGraphGroups: ({ useFilter, useNavigation, onSelect, onClick, onError, id, }: MSGraphGroupsProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
13
|
export {};
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const MSGraphTenants: ({ initialFolderColor, onClick, onError,
|
|
1
|
+
import { MSTenantEntity } from 'jamespot-user-api';
|
|
2
|
+
export declare const MSGraphTenants: ({ initialFolderColor, onClick, onError, id, }: {
|
|
3
3
|
initialFolderColor?: string;
|
|
4
4
|
onClick: (entity: MSTenantEntity) => void;
|
|
5
5
|
onError?: (code: string) => void;
|
|
6
|
-
handlers: {
|
|
7
|
-
drive: Pick<JDriveApi, "tenants">;
|
|
8
|
-
};
|
|
9
6
|
id: string;
|
|
10
7
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DriveAccount
|
|
1
|
+
import { DriveAccount } from 'jamespot-user-api';
|
|
2
2
|
import { DriveService } from '../drive.types';
|
|
3
3
|
type DriveAccountHeaderProps = {
|
|
4
4
|
accounts?: DriveAccount[];
|
|
@@ -7,13 +7,10 @@ type DriveAccountHeaderProps = {
|
|
|
7
7
|
onLogout: () => void;
|
|
8
8
|
onLogin: (account: DriveAccount) => void;
|
|
9
9
|
onSetDefaultAccount: (account: DriveAccount) => void;
|
|
10
|
-
handlers: {
|
|
11
|
-
drive: Pick<JDriveApi, 'getAccount' | 'logout' | 'setDefaultAccount'>;
|
|
12
|
-
};
|
|
13
10
|
onLoginError: (errorMsg?: string) => void;
|
|
14
11
|
service: DriveService;
|
|
15
12
|
description?: string;
|
|
16
13
|
onError?: (code: string) => void;
|
|
17
14
|
};
|
|
18
|
-
export declare const DriveAccountHeader: ({ accounts, activeAccount, onLogout, onLogin, onSetDefaultAccount,
|
|
15
|
+
export declare const DriveAccountHeader: ({ accounts, activeAccount, onLogout, onLogin, onSetDefaultAccount, isLogged, onLoginError, service, description, onError, }: DriveAccountHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
16
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { JDriveApi } from 'jamespot-user-api';
|
|
2
1
|
type ErrorType = {
|
|
3
2
|
error: number;
|
|
4
3
|
errorMsg: string;
|
|
@@ -10,10 +9,7 @@ type ErrorType = {
|
|
|
10
9
|
/**
|
|
11
10
|
* This is only used inside App365. if you need to use it outside of this component, consider making it a slice
|
|
12
11
|
*/
|
|
13
|
-
export declare function useTenants({
|
|
14
|
-
handlers: {
|
|
15
|
-
drive: Pick<JDriveApi, 'tenants'>;
|
|
16
|
-
};
|
|
12
|
+
export declare function useTenants({ id }: {
|
|
17
13
|
id: string;
|
|
18
14
|
}): {
|
|
19
15
|
loading: boolean;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { EditorButtonToggle } from './EditorButtonToggle';
|
|
3
|
+
declare const meta: Meta<typeof EditorButtonToggle>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof EditorButtonToggle>;
|
|
6
|
+
export declare const Primary: Story;
|
|
7
|
+
export declare const SmallSize: Story;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jFileLittle } from 'jamespot-user-api';
|
|
2
2
|
import { ReactElement } from 'react';
|
|
3
3
|
type EditorImageUploadProps = {
|
|
4
4
|
token: string;
|
|
@@ -8,9 +8,6 @@ type EditorImageUploadProps = {
|
|
|
8
8
|
onUploadSuccess: (file: jFileLittle | undefined) => void;
|
|
9
9
|
onLoading?: (isLoading: boolean) => void;
|
|
10
10
|
deferServerCalls?: boolean;
|
|
11
|
-
handlers: {
|
|
12
|
-
file: Pick<JFileApi, 'upload' | 'update' | 'deleteImage' | 'deleteFile'>;
|
|
13
|
-
};
|
|
14
11
|
};
|
|
15
|
-
export declare const EditorImageUpload: ({ token, children, initialFile, onUploadSuccess, onLoading, allowCustomRatio, deferServerCalls,
|
|
12
|
+
export declare const EditorImageUpload: ({ token, children, initialFile, onUploadSuccess, onLoading, allowCustomRatio, deferServerCalls, }: EditorImageUploadProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
13
|
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { EditorInputCheckbox } from './EditorInputCheckbox';
|
|
3
|
+
declare const meta: Meta<typeof EditorInputCheckbox>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof EditorInputCheckbox>;
|
|
6
|
+
export declare const Primary: Story;
|
|
7
|
+
export declare const Empty: Story;
|
|
8
|
+
export declare const Disabled: Story;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jFileLittle } from 'jamespot-user-api';
|
|
2
2
|
export interface EditorInputImageHandle {
|
|
3
3
|
/** Persists any pending image changes (upload, crop, delete). Resolves with the final file or undefined. */
|
|
4
4
|
save: () => Promise<jFileLittle | undefined>;
|
|
@@ -10,9 +10,6 @@ type EditorInputImageProps = {
|
|
|
10
10
|
deferServerCalls?: boolean;
|
|
11
11
|
onLoading?: (isLoading: boolean) => void;
|
|
12
12
|
allowCustomRatio?: boolean;
|
|
13
|
-
handlers: {
|
|
14
|
-
file: Pick<JFileApi, 'upload' | 'update' | 'deleteImage' | 'deleteFile'>;
|
|
15
|
-
};
|
|
16
13
|
};
|
|
17
14
|
export declare const EditorInputImage: import('react').ForwardRefExoticComponent<EditorInputImageProps & import('react').RefAttributes<EditorInputImageHandle>>;
|
|
18
15
|
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { EditorInputNumber } from './EditorInputNumber';
|
|
3
|
+
declare const meta: Meta<typeof EditorInputNumber>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof EditorInputNumber>;
|
|
6
|
+
export declare const Primary: Story;
|
|
7
|
+
export declare const Empty: Story;
|
|
8
|
+
export declare const Disabled: Story;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { EditorInputToggle } from './EditorInputToggle';
|
|
3
|
+
declare const meta: Meta<typeof EditorInputToggle>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof EditorInputToggle>;
|
|
6
|
+
export declare const Primary: Story;
|
|
7
|
+
export declare const InitiallyOn: Story;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { JFileApi } from 'jamespot-user-api';
|
|
2
1
|
import { JRCInputTinyMCERawProps } from '../../Form/Input/JRCInputTinyMCERaw/JRCInputTinyMCERaw';
|
|
3
2
|
export type EditorRichTextProps = {
|
|
4
3
|
label?: string;
|
|
@@ -7,8 +6,5 @@ export type EditorRichTextProps = {
|
|
|
7
6
|
height?: number;
|
|
8
7
|
token?: string;
|
|
9
8
|
tinyMCECommonOptions: Pick<JRCInputTinyMCERawProps, 'commonOptions' | 'mentionsQueries'>;
|
|
10
|
-
handlers: {
|
|
11
|
-
file: Pick<JFileApi, 'upload'>;
|
|
12
|
-
};
|
|
13
9
|
};
|
|
14
|
-
export declare const EditorRichText: ({ initialValue, onChange, height, token, tinyMCECommonOptions,
|
|
10
|
+
export declare const EditorRichText: ({ initialValue, onChange, height, token, tinyMCECommonOptions, }: EditorRichTextProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { JFileApi } from 'jamespot-user-api';
|
|
2
1
|
import { JRCInputTinyMCERawProps } from '../../Form/Input/JRCInputTinyMCERaw/JRCInputTinyMCERaw';
|
|
3
2
|
import { TinyMCEExtension } from '../../Form/Input/JRCInputTinyMCERaw/types';
|
|
4
3
|
export type EditorRichTextDialogProps = {
|
|
@@ -7,8 +6,5 @@ export type EditorRichTextDialogProps = {
|
|
|
7
6
|
token?: string;
|
|
8
7
|
additionalExtensions?: Array<TinyMCEExtension>;
|
|
9
8
|
tinyMCECommonOptions?: Pick<JRCInputTinyMCERawProps, 'commonOptions' | 'mentionsQueries'> & Partial<Pick<JRCInputTinyMCERawProps, 'tinymceScriptSrc'>>;
|
|
10
|
-
handlers: {
|
|
11
|
-
file: Pick<JFileApi, 'upload'>;
|
|
12
|
-
};
|
|
13
9
|
};
|
|
14
|
-
export declare const EditorRichTextDialog: ({ text, onChange, token, additionalExtensions, tinyMCECommonOptions,
|
|
10
|
+
export declare const EditorRichTextDialog: ({ text, onChange, token, additionalExtensions, tinyMCECommonOptions, }: EditorRichTextDialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
|
|
2
|
-
import { DataCy } from '../../../../types/dataAttributes';
|
|
3
|
-
import { FieldValues } from 'react-hook-form';
|
|
4
1
|
import { ApiWrapper, jFileLittle } from 'jamespot-user-api';
|
|
5
2
|
import { ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
import { FieldValues } from 'react-hook-form';
|
|
4
|
+
import { DataCy } from '../../../../types/dataAttributes';
|
|
5
|
+
import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
|
|
6
6
|
type BaseInputFileProps = DataCy & Omit<ComponentPropsWithoutRef<'input'>, 'value' | 'onChange'> & {
|
|
7
7
|
token?: string;
|
|
8
8
|
attrName?: string;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Drive,
|
|
1
|
+
import { Drive, jFileLittle, Network } from 'jamespot-user-api';
|
|
2
2
|
import { ComponentPropsWithoutRef } from 'react';
|
|
3
|
-
import { FoldersHandlers } from '../../../JRCFolders/types';
|
|
4
3
|
export type DriveOrFilebank = Drive | 'fileBank';
|
|
5
4
|
export interface JRCInputFileAdavancedProps extends ComponentPropsWithoutRef<'input'> {
|
|
6
5
|
required?: boolean;
|
|
@@ -21,11 +20,6 @@ export interface JRCInputFileAdavancedProps extends ComponentPropsWithoutRef<'in
|
|
|
21
20
|
activeDrives?: DriveOrFilebank[];
|
|
22
21
|
dispatchOnError?: (code?: string) => void;
|
|
23
22
|
maxFileSize?: number;
|
|
24
|
-
handlers?: FoldersHandlers & {
|
|
25
|
-
drive: Pick<JDriveApi, 'msDocuments' | 'dropboxDocuments' | 'groups' | 'tenants' | 'listAccount' | 'isAccountLogged' | 'checkAccountToken' | 'getAccount' | 'logout' | 'setDefaultAccount' | 'getDocument'>;
|
|
26
|
-
file: Pick<JFileApi, 'copy'>;
|
|
27
|
-
object: Pick<JObjectApi, 'getAccessHash'>;
|
|
28
|
-
};
|
|
29
23
|
directFilePopupOpening?: {
|
|
30
24
|
open: boolean;
|
|
31
25
|
onClose: () => void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react-vite';
|
|
2
|
+
import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
|
|
3
|
+
declare const _default: Meta;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const InputPassword: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react-vite').ReactRenderer, JRCInputFieldProps<{
|
|
6
|
+
password: string;
|
|
7
|
+
}>>;
|
|
8
|
+
export declare const InputPasswordNewPassword: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react-vite').ReactRenderer, JRCInputFieldProps<{
|
|
9
|
+
password: string;
|
|
10
|
+
}>>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react-vite';
|
|
2
|
+
declare const _default: Meta;
|
|
3
|
+
export default _default;
|
|
4
|
+
export declare const InputTextRaw: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react-vite').ReactRenderer, Omit<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
|
|
5
|
+
margin?: string | undefined;
|
|
6
|
+
width?: string | undefined;
|
|
7
|
+
readOnly?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
isRequired?: boolean;
|
|
10
|
+
label?: string;
|
|
11
|
+
htmlFor?: string;
|
|
12
|
+
labelIsLegend?: boolean;
|
|
13
|
+
description?: string;
|
|
14
|
+
helper?: Omit<import('../../../..').JRCTooltipProps, "children">;
|
|
15
|
+
errors?: import('react-hook-form').FieldError;
|
|
16
|
+
customRef?: import('react').Ref<HTMLInputElement>;
|
|
17
|
+
}>;
|
|
18
|
+
export declare const InputTextRawDisabled: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react-vite').ReactRenderer, Omit<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
|
|
19
|
+
margin?: string | undefined;
|
|
20
|
+
width?: string | undefined;
|
|
21
|
+
readOnly?: boolean;
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
isRequired?: boolean;
|
|
24
|
+
label?: string;
|
|
25
|
+
htmlFor?: string;
|
|
26
|
+
labelIsLegend?: boolean;
|
|
27
|
+
description?: string;
|
|
28
|
+
helper?: Omit<import('../../../..').JRCTooltipProps, "children">;
|
|
29
|
+
errors?: import('react-hook-form').FieldError;
|
|
30
|
+
customRef?: import('react').Ref<HTMLInputElement>;
|
|
31
|
+
}>;
|
|
32
|
+
export declare const InputTextRawWithError: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react-vite').ReactRenderer, Omit<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
|
|
33
|
+
margin?: string | undefined;
|
|
34
|
+
width?: string | undefined;
|
|
35
|
+
readOnly?: boolean;
|
|
36
|
+
disabled?: boolean;
|
|
37
|
+
isRequired?: boolean;
|
|
38
|
+
label?: string;
|
|
39
|
+
htmlFor?: string;
|
|
40
|
+
labelIsLegend?: boolean;
|
|
41
|
+
description?: string;
|
|
42
|
+
helper?: Omit<import('../../../..').JRCTooltipProps, "children">;
|
|
43
|
+
errors?: import('react-hook-form').FieldError;
|
|
44
|
+
customRef?: import('react').Ref<HTMLInputElement>;
|
|
45
|
+
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TinyMCECommonOptions } from 'jamespot-user-api';
|
|
2
2
|
import { FieldValues } from 'react-hook-form';
|
|
3
3
|
import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
|
|
4
4
|
import { MentionQuery, TinyMCEExtension } from '../JRCInputTinyMCERaw/types';
|
|
@@ -11,8 +11,5 @@ export type JRCInputTinyMCEProps<T extends FieldValues> = JRCInputFieldProps<T>
|
|
|
11
11
|
contents: MentionQuery;
|
|
12
12
|
};
|
|
13
13
|
additionalExtensions?: Array<TinyMCEExtension>;
|
|
14
|
-
handlers: {
|
|
15
|
-
file: Pick<JFileApi, 'upload'>;
|
|
16
|
-
};
|
|
17
14
|
};
|
|
18
|
-
export declare const JRCInputTinyMCE: <T extends FieldValues = FieldValues>({ dataCy, token, mentionsQueries, commonOptions, additionalExtensions,
|
|
15
|
+
export declare const JRCInputTinyMCE: <T extends FieldValues = FieldValues>({ dataCy, token, mentionsQueries, commonOptions, additionalExtensions, ...props }: JRCInputTinyMCEProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Editor } from '@tinymce/tinymce-react';
|
|
2
|
-
import {
|
|
2
|
+
import { TinyMCECommonOptions } from 'jamespot-user-api';
|
|
3
3
|
import { Ref } from 'react';
|
|
4
4
|
import { DataCy } from '../../../../types/dataAttributes';
|
|
5
5
|
import { MentionQuery, TinyMCEExtension } from './types';
|
|
@@ -28,8 +28,5 @@ export type JRCInputTinyMCERawProps = DataCy & {
|
|
|
28
28
|
height?: number;
|
|
29
29
|
autofocus?: boolean;
|
|
30
30
|
readOnly?: boolean;
|
|
31
|
-
handlers: {
|
|
32
|
-
file: Pick<JFileApi, 'upload'>;
|
|
33
|
-
};
|
|
34
31
|
};
|
|
35
32
|
export declare const JRCInputTinyMCERaw: import('react').ForwardRefExoticComponent<Omit<JRCInputTinyMCERawProps, "ref"> & import('react').RefAttributes<Editor>>;
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import { JAudienceApi } from 'jamespot-user-api';
|
|
2
1
|
import { FieldValues } from 'react-hook-form';
|
|
3
2
|
import { JRCAutocompleteProps } from './JRCInputSelect.types';
|
|
4
3
|
export type JRCInputAudienceProps<T extends FieldValues = FieldValues> = JRCAutocompleteProps<T> & {
|
|
5
4
|
multiple?: boolean;
|
|
6
5
|
searchable?: boolean;
|
|
7
|
-
handlers: {
|
|
8
|
-
audience: Pick<JAudienceApi, 'autocomplete'>;
|
|
9
|
-
};
|
|
10
6
|
};
|
|
11
7
|
export declare function JRCInputAudience<T extends FieldValues = FieldValues>(props: JRCInputAudienceProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { JRCAlbumProps } from './types';
|
|
2
|
-
export declare const JRCAlbum: ({ files, maxWidth, withAttachments, urlResolve,
|
|
2
|
+
export declare const JRCAlbum: ({ files, maxWidth, withAttachments, urlResolve, }: JRCAlbumProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import { jFileLittle
|
|
1
|
+
import { jFileLittle } from 'jamespot-user-api';
|
|
2
2
|
export type JRCAlbumProps = {
|
|
3
3
|
files: jFileLittle[];
|
|
4
4
|
maxWidth?: number;
|
|
5
5
|
maxHeight?: number;
|
|
6
6
|
withAttachments?: boolean;
|
|
7
7
|
urlResolve: (file: jFileLittle) => string;
|
|
8
|
-
handlers: {
|
|
9
|
-
object: Pick<JObjectApi, 'getAccessHash'>;
|
|
10
|
-
};
|
|
11
8
|
};
|
|
12
9
|
export type JRCAlbumItemFile = {
|
|
13
10
|
uri: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jFileLittle
|
|
1
|
+
import { jFileLittle } from 'jamespot-user-api';
|
|
2
2
|
import { AttachmentDisplayValues } from '../Widgets/JRCWidgetAttachment/JRCWidgetAttachment';
|
|
3
3
|
export type JRCAttachmentsProps = {
|
|
4
4
|
files: jFileLittle[];
|
|
@@ -6,8 +6,5 @@ export type JRCAttachmentsProps = {
|
|
|
6
6
|
onDelete?: (id: number) => Promise<void>;
|
|
7
7
|
mode?: 'view' | 'edit';
|
|
8
8
|
display?: AttachmentDisplayValues;
|
|
9
|
-
handlers: {
|
|
10
|
-
object: Pick<JObjectApi, 'getAccessHash'>;
|
|
11
|
-
};
|
|
12
9
|
};
|
|
13
|
-
export declare const JRCAttachments: ({ files, onError, onDelete, mode,
|
|
10
|
+
export declare const JRCAttachments: ({ files, onError, onDelete, mode, display, }: JRCAttachmentsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { JRCCalendarProps } from './types';
|
|
2
2
|
export type CalendarEventPlaceHolder = 'no-event-today' | 'no-next-event';
|
|
3
|
-
export declare const JRCCalendar: ({ events, loading, views,
|
|
3
|
+
export declare const JRCCalendar: ({ events, loading, views, defaultView, fluid, mode, fullScreen, deportedToolbar, withPadding, eventModalExtraComponent, onChangeView, onChangeDates, onError, onSuccess, onDeleteEvent, onClickUpdateEvent, onClickTransformEvent, onUpdateStatus, isUpdateStatusLoading, onSelect, disableSelect, }: JRCCalendarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
import { CalendarEventView, CalendarEventWithExtensions,
|
|
1
|
+
import { CalendarEventView, CalendarEventWithExtensions, Rights, UserResponseStatus } from 'jamespot-user-api';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { JRCCalendarMode } from './types';
|
|
4
4
|
type JRCCalendarModalProps = {
|
|
5
5
|
event?: CalendarEventWithExtensions<CalendarEventView, ['socialEventRecord' | 'recurringEventRecord']>;
|
|
6
6
|
closeHandler: () => void;
|
|
7
|
-
handlers: {
|
|
8
|
-
article: Pick<JArticleApi, 'delete'>;
|
|
9
|
-
calendar: Pick<JCalendarApi, 'reviveSubmit'>;
|
|
10
|
-
global: Pick<JGlobalApi, 'updateAction' | 'removeAction'>;
|
|
11
|
-
object: Pick<JObjectApi, 'getAccessHash'>;
|
|
12
|
-
};
|
|
13
7
|
onError: (errorMsg?: string) => void;
|
|
14
8
|
onSuccess: (message: string) => void;
|
|
15
9
|
extraComponent?: (eventData: {
|
|
@@ -28,5 +22,5 @@ type JRCCalendarModalProps = {
|
|
|
28
22
|
isUpdateStatusLoading: (id: number) => boolean;
|
|
29
23
|
mode?: JRCCalendarMode;
|
|
30
24
|
};
|
|
31
|
-
export declare const JRCCalendarModal: ({ closeHandler, event,
|
|
25
|
+
export declare const JRCCalendarModal: ({ closeHandler, event, onError, onSuccess, extraComponent, onDeleteEvent, onClickUpdateEvent, onClickTransformEvent, onUpdateStatus, isUpdateStatusLoading, mode, }: JRCCalendarModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
32
26
|
export {};
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { CalendarApi } from '@fullcalendar/core';
|
|
2
|
-
import { CalendarEventView, CalendarEventWithExtensions,
|
|
2
|
+
import { CalendarEventView, CalendarEventWithExtensions, Rights, UserResponseStatus } from 'jamespot-user-api';
|
|
3
3
|
import { ReactNode } from 'react';
|
|
4
4
|
export type CalendarView = 'dayGridMonth' | 'timeGridWeek' | 'timeGridDay' | 'list';
|
|
5
5
|
export type CalendarEvent = CalendarEventWithExtensions<CalendarEventView, [
|
|
6
6
|
'socialEventRecord' | 'recurringEventRecord'
|
|
7
7
|
]>;
|
|
8
|
-
type CalendarHandlers = {
|
|
9
|
-
global: Pick<JGlobalApi, 'updateAction' | 'removeAction'>;
|
|
10
|
-
calendar: Pick<JCalendarApi, 'reviveSubmit'>;
|
|
11
|
-
article: Pick<JArticleApi, 'delete'>;
|
|
12
|
-
object: Pick<JObjectApi, 'getAccessHash'>;
|
|
13
|
-
};
|
|
14
8
|
export type JRCCalendarMode = 'full' | 'compact';
|
|
15
9
|
export type JRCCalendarProps = {
|
|
16
10
|
events?: CalendarEvent[];
|
|
17
11
|
loading?: boolean;
|
|
18
12
|
views?: CalendarView[];
|
|
19
13
|
withPadding?: boolean;
|
|
20
|
-
handlers: CalendarHandlers;
|
|
21
14
|
defaultView: CalendarView;
|
|
22
15
|
fluid?: boolean;
|
|
23
16
|
mode?: JRCCalendarMode;
|
|
@@ -58,4 +51,3 @@ export type JRCCalendarProps = {
|
|
|
58
51
|
} | null) => void;
|
|
59
52
|
disableSelect?: boolean;
|
|
60
53
|
};
|
|
61
|
-
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { CommentWithExtensions,
|
|
1
|
+
import { CommentWithExtensions, Model, UpdateCommentParams, WidgetDisplayMode, WidgetWrapperProps, jCommentList } from 'jamespot-user-api';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { DriveOrFilebank } from '../Form/Input/JRCInputFileAdvanced/JRCInputFileAdvancedRaw';
|
|
4
4
|
import { JRCInputTinyMCERawProps } from '../Form/Input/JRCInputTinyMCERaw/JRCInputTinyMCERaw';
|
|
5
|
-
import { FoldersHandlers } from '../JRCFolders/types';
|
|
6
5
|
type JRCCommentProps = {
|
|
7
6
|
isFocused: boolean;
|
|
8
7
|
comment: CommentWithExtensions<jCommentList, ['actions', 'quarantine']> & {
|
|
@@ -21,15 +20,6 @@ type JRCCommentProps = {
|
|
|
21
20
|
onGetHashError: (message?: string) => void;
|
|
22
21
|
existingWidgetsWrapperComponent: (comment: jCommentList, widgets: WidgetWrapperProps[], mode: WidgetDisplayMode, inplace: boolean) => ReactNode;
|
|
23
22
|
activeDrives: DriveOrFilebank[];
|
|
24
|
-
handlers: FoldersHandlers & {
|
|
25
|
-
drive: Pick<JDriveApi, 'msDocuments' | 'dropboxDocuments' | 'groups' | 'tenants' | 'listAccount' | 'isAccountLogged' | 'checkAccountToken' | 'getAccount' | 'logout' | 'setDefaultAccount' | 'getDocument'>;
|
|
26
|
-
file: Pick<JFileApi, 'copy' | 'upload'>;
|
|
27
|
-
fileIntegrity: Pick<JFileIntegrity, 'getCommentQuarantines'>;
|
|
28
|
-
global: Pick<JGlobalApi, 'addAction' | 'removeAction' | 'getUsers'>;
|
|
29
|
-
object: Pick<JObjectApi, 'getAccessHash'>;
|
|
30
|
-
questionAnswer: Pick<JQuestionAnswerApi, 'selectResponse' | 'unselectResponse'>;
|
|
31
|
-
user: Pick<JUserApi, 'get' | 'getFields'>;
|
|
32
|
-
};
|
|
33
23
|
socialQuestion?: {
|
|
34
24
|
isResolved: boolean;
|
|
35
25
|
responseId?: number;
|
|
@@ -40,5 +30,5 @@ type JRCCommentProps = {
|
|
|
40
30
|
articleId: number;
|
|
41
31
|
onReport: (commentUri: string) => void;
|
|
42
32
|
};
|
|
43
|
-
export declare const JRCComment: ({ isFocused, comment, token, tinyMCEConfig, onCommentUpdate, onCommentDelete, onError, highlightFields, userModel, userAccountStatus, isWidgetActive, onGetHashError, deleteFile, existingWidgetsWrapperComponent, activeDrives,
|
|
33
|
+
export declare const JRCComment: ({ isFocused, comment, token, tinyMCEConfig, onCommentUpdate, onCommentDelete, onError, highlightFields, userModel, userAccountStatus, isWidgetActive, onGetHashError, deleteFile, existingWidgetsWrapperComponent, activeDrives, socialQuestion, articleId, onReport, }: JRCCommentProps) => import("react/jsx-runtime").JSX.Element;
|
|
44
34
|
export {};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { AddCommentParams, CommentWithExtensions,
|
|
1
|
+
import { AddCommentParams, CommentWithExtensions, Model, UpdateCommentParams, WidgetDisplayMode, WidgetWrapperProps, jCommentList, jUserList } from 'jamespot-user-api';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { DriveOrFilebank } from '../Form/Input/JRCInputFileAdvanced/JRCInputFileAdvancedRaw';
|
|
4
4
|
import { JRCInputTinyMCERawProps } from '../Form/Input/JRCInputTinyMCERaw/JRCInputTinyMCERaw';
|
|
5
5
|
import { TinyMCEExtension } from '../Form/Input/JRCInputTinyMCERaw/types';
|
|
6
|
-
import { FoldersHandlers } from '../JRCFolders/types';
|
|
7
6
|
export type JRCCommentsBlocProps = {
|
|
8
7
|
comments?: Array<CommentWithExtensions<jCommentList, ['actions', 'quarantine']> & {
|
|
9
8
|
pending?: boolean;
|
|
@@ -29,15 +28,6 @@ export type JRCCommentsBlocProps = {
|
|
|
29
28
|
activeDrives: DriveOrFilebank[];
|
|
30
29
|
variant?: 'modal' | 'inline';
|
|
31
30
|
canComment: boolean;
|
|
32
|
-
handlers: FoldersHandlers & {
|
|
33
|
-
drive: Pick<JDriveApi, 'msDocuments' | 'dropboxDocuments' | 'groups' | 'tenants' | 'listAccount' | 'isAccountLogged' | 'checkAccountToken' | 'getAccount' | 'logout' | 'setDefaultAccount' | 'getDocument'>;
|
|
34
|
-
file: Pick<JFileApi, 'copy' | 'deleteFile' | 'upload'>;
|
|
35
|
-
fileIntegrity: Pick<JFileIntegrity, 'getCommentQuarantines'>;
|
|
36
|
-
global: Pick<JGlobalApi, 'addAction' | 'removeAction' | 'getUsers'>;
|
|
37
|
-
object: Pick<JObjectApi, 'getAccessHash'>;
|
|
38
|
-
questionAnswer: Pick<JQuestionAnswerApi, 'selectResponse' | 'unselectResponse'>;
|
|
39
|
-
user: Pick<JUserApi, 'get' | 'getFields'>;
|
|
40
|
-
};
|
|
41
31
|
socialQuestion?: {
|
|
42
32
|
isResolved: boolean;
|
|
43
33
|
responseId?: number;
|
|
@@ -49,4 +39,4 @@ export type JRCCommentsBlocProps = {
|
|
|
49
39
|
additionalExtensions: Array<TinyMCEExtension>;
|
|
50
40
|
onReport: (commentUri: string) => void;
|
|
51
41
|
};
|
|
52
|
-
export declare const JRCCommentsBloc: ({ comments, initialCommentsNumber, currentUser, tinyMCEConfig, onComment, canCreateWidget, isWidgetActive, widgetListComponent, newWidgetsWrapperComponent, existingWidgetsWrapperComponent, loading, token, onCommentDelete, onCommentUpdate, onError, highlightFields, userModel, userAccountStatus, onGetHashError, activeDrives, variant, canComment,
|
|
42
|
+
export declare const JRCCommentsBloc: ({ comments, initialCommentsNumber, currentUser, tinyMCEConfig, onComment, canCreateWidget, isWidgetActive, widgetListComponent, newWidgetsWrapperComponent, existingWidgetsWrapperComponent, loading, token, onCommentDelete, onCommentUpdate, onError, highlightFields, userModel, userAccountStatus, onGetHashError, activeDrives, variant, canComment, socialQuestion, articleId, additionalExtensions, onReport, }: JRCCommentsBlocProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { jCommentList
|
|
1
|
+
import { jCommentList } from 'jamespot-user-api';
|
|
2
2
|
import { DriveOrFilebank } from '../../Form/Input/JRCInputFileAdvanced/JRCInputFileAdvancedRaw';
|
|
3
3
|
import { JRCInputTinyMCERawProps } from '../../Form/Input/JRCInputTinyMCERaw/JRCInputTinyMCERaw';
|
|
4
|
-
import { FoldersHandlers } from '../../JRCFolders/types';
|
|
5
4
|
type EditCommentProps = {
|
|
6
5
|
comment: jCommentList;
|
|
7
6
|
activeDrives: DriveOrFilebank[];
|
|
@@ -9,16 +8,11 @@ type EditCommentProps = {
|
|
|
9
8
|
commentContent: string | null;
|
|
10
9
|
setCommentContent: (content: string) => void;
|
|
11
10
|
token: string;
|
|
12
|
-
handlers: FoldersHandlers & {
|
|
13
|
-
file: Pick<JFileApi, 'copy' | 'upload'>;
|
|
14
|
-
drive: Pick<JDriveApi, 'msDocuments' | 'dropboxDocuments' | 'groups' | 'tenants' | 'listAccount' | 'isAccountLogged' | 'checkAccountToken' | 'getAccount' | 'logout' | 'setDefaultAccount' | 'getDocument'>;
|
|
15
|
-
object: Pick<JObjectApi, 'getAccessHash'>;
|
|
16
|
-
};
|
|
17
11
|
deleteFile?: (id: number) => Promise<void>;
|
|
18
12
|
onError?: (code?: string) => void;
|
|
19
13
|
closeEditMode: () => void;
|
|
20
14
|
updateComment: () => void;
|
|
21
15
|
loading: boolean;
|
|
22
16
|
};
|
|
23
|
-
export declare const EditComment: ({ comment, tinyMCEConfig, activeDrives, setCommentContent, commentContent, token,
|
|
17
|
+
export declare const EditComment: ({ comment, tinyMCEConfig, activeDrives, setCommentContent, commentContent, token, deleteFile, onError, closeEditMode, updateComment, loading, }: EditCommentProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
18
|
export {};
|