@hansevision/tp-richtexteditor-control 1.0.0
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 +74 -0
- package/dist/errorBoundary/errorBoundary.d.ts +18 -0
- package/dist/errorBoundary/errorService.d.ts +6 -0
- package/dist/errorBoundary/i18n/IErrorBoundaryStrings.d.ts +6 -0
- package/dist/errorBoundary/i18n/de.d.ts +3 -0
- package/dist/errorBoundary/i18n/en.d.ts +3 -0
- package/dist/errorBoundary/i18n/errorBoundaryStrings.d.ts +3 -0
- package/dist/errorBoundary/interfaces/IRepairError.d.ts +8 -0
- package/dist/i18n.d.ts +6 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.esm.js +10690 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/index.js +10712 -0
- package/dist/index.js.map +1 -0
- package/dist/richTextEditor/RichTextEditor.d.ts +41 -0
- package/dist/richTextEditor/RichTextEditorContext.d.ts +21 -0
- package/dist/richTextEditor/components/controls/CustomTool.d.ts +9 -0
- package/dist/richTextEditor/components/controls/ImagePickerControl.d.ts +3 -0
- package/dist/richTextEditor/components/controls/VideoPickerControl/ContainsValueChangedObserver.d.ts +1 -0
- package/dist/richTextEditor/components/controls/VideoPickerControl/VideoPickerControl.d.ts +4 -0
- package/dist/richTextEditor/components/controls/handleUpload.d.ts +3 -0
- package/dist/richTextEditor/components/dialogs/progressDialog.d.ts +4 -0
- package/dist/richTextEditor/components/filePicker/common/Constants.d.ts +39 -0
- package/dist/richTextEditor/components/filePicker/common/SPEntities.d.ts +178 -0
- package/dist/richTextEditor/components/filePicker/common/interfaces.d.ts +26 -0
- package/dist/richTextEditor/components/filePicker/components/dragDropFiles/DragDropFiles.d.ts +53 -0
- package/dist/richTextEditor/components/filePicker/components/dragDropFiles/IDragDropFiles.d.ts +28 -0
- package/dist/richTextEditor/components/filePicker/components/dragDropFiles/index.d.ts +2 -0
- package/dist/richTextEditor/components/filePicker/components/fields/fieldAttachmentsRenderer/FieldAttachmentsRenderer.d.ts +25 -0
- package/dist/richTextEditor/components/filePicker/components/fields/fieldAttachmentsRenderer/index.d.ts +2 -0
- package/dist/richTextEditor/components/filePicker/components/fields/fieldBaseTextRenderer/FieldBaseTextRenderer.d.ts +25 -0
- package/dist/richTextEditor/components/filePicker/components/fields/fieldBaseTextRenderer/index.d.ts +2 -0
- package/dist/richTextEditor/components/filePicker/components/fields/fieldCommon/IFieldRendererProps.d.ts +15 -0
- package/dist/richTextEditor/components/filePicker/components/fields/fieldCommon/index.d.ts +1 -0
- package/dist/richTextEditor/components/filePicker/components/fields/fieldDateRenderer/FieldDateRenderer.d.ts +22 -0
- package/dist/richTextEditor/components/filePicker/components/fields/fieldDateRenderer/index.d.ts +1 -0
- package/dist/richTextEditor/components/filePicker/components/fields/fieldFileTypeRenderer/FieldFileTypeRenderer.d.ts +26 -0
- package/dist/richTextEditor/components/filePicker/components/fields/fieldFileTypeRenderer/index.d.ts +2 -0
- package/dist/richTextEditor/components/filePicker/components/fields/fieldLookupRenderer/FieldLookupRenderer.d.ts +59 -0
- package/dist/richTextEditor/components/filePicker/components/fields/fieldLookupRenderer/index.d.ts +2 -0
- package/dist/richTextEditor/components/filePicker/components/fields/fieldNameRenderer/FieldNameRenderer.d.ts +60 -0
- package/dist/richTextEditor/components/filePicker/components/fields/fieldNameRenderer/index.d.ts +2 -0
- package/dist/richTextEditor/components/filePicker/components/fields/fieldTaxonomyRenderer/FieldTaxonomyRenderer.d.ts +23 -0
- package/dist/richTextEditor/components/filePicker/components/fields/fieldTaxonomyRenderer/index.d.ts +2 -0
- package/dist/richTextEditor/components/filePicker/components/fields/fieldTextRenderer/FieldTextRenderer.d.ts +35 -0
- package/dist/richTextEditor/components/filePicker/components/fields/fieldTextRenderer/index.d.ts +2 -0
- package/dist/richTextEditor/components/filePicker/components/fields/fieldTitleRenderer/FieldTitleRenderer.d.ts +50 -0
- package/dist/richTextEditor/components/filePicker/components/fields/fieldTitleRenderer/index.d.ts +1 -0
- package/dist/richTextEditor/components/filePicker/components/fields/fieldUrlRenderer/FieldUrlRenderer.d.ts +31 -0
- package/dist/richTextEditor/components/filePicker/components/fields/fieldUrlRenderer/index.d.ts +2 -0
- package/dist/richTextEditor/components/filePicker/components/fields/fieldUserRenderer/FieldUserHoverCard.d.ts +26 -0
- package/dist/richTextEditor/components/filePicker/components/fields/fieldUserRenderer/FieldUserRenderer.d.ts +103 -0
- package/dist/richTextEditor/components/filePicker/components/fields/fieldUserRenderer/index.d.ts +3 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/FilePicker.d.ts +45 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/FilePicker.themedStyles.d.ts +28 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/FilePicker.types.d.ts +46 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/IFilePickerProps.d.ts +147 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/IFilePickerState.d.ts +7 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/LinkFilePickerTab/ILinkFilePickerTabProps.d.ts +8 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/LinkFilePickerTab/ILinkFilePickerTabState.d.ts +5 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/LinkFilePickerTab/LinkFilePickerTab.d.ts +30 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/LinkFilePickerTab/index.d.ts +3 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/MultipleUploadFilePickerTab/IMultipleUploadFilePickerTabProps.d.ts +5 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/MultipleUploadFilePickerTab/IMultipleUploadFilePickerTabState.d.ts +5 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/MultipleUploadFilePickerTab/MultipleUploadFilePickerTab.d.ts +24 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/MultipleUploadFilePickerTab/MultipleUploadFilePickerTab.themedStyles.d.ts +9 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/MultipleUploadFilePickerTab/index.d.ts +3 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/OneDriveFilesTab/IOneDriveFilesTabProps.d.ts +5 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/OneDriveFilesTab/IOneDriveFilesTabState.d.ts +10 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/OneDriveFilesTab/OneDriveFilesTab.d.ts +29 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/OneDriveFilesTab/OneDriveFilesTab.types.d.ts +5 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/OneDriveFilesTab/index.d.ts +3 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/RecentFilesTab/IRecentFilesTabProps.d.ts +5 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/RecentFilesTab/IRecentFilesTabState.d.ts +7 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/RecentFilesTab/RecentFilesTab.d.ts +59 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/RecentFilesTab/RecentFilesTab.themedStyles.d.ts +24 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/RecentFilesTab/index.d.ts +3 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/SiteFilePickerTab/ISiteFilePickerTabProps.d.ts +19 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/SiteFilePickerTab/ISiteFilePickerTabState.d.ts +9 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/SiteFilePickerTab/SiteFilePickerTab.d.ts +36 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/SiteFilePickerTab/index.d.ts +3 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/StockImagesTab/IStockImagesProps.d.ts +8 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/StockImagesTab/StockImageSizeType.d.ts +1 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/StockImagesTab/StockImages.d.ts +17 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/StockImagesTab/StockImagesModel.d.ts +31 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/StockImagesTab/index.d.ts +3 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/UploadFilePickerTab/IUploadFilePickerTabProps.d.ts +5 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/UploadFilePickerTab/IUploadFilePickerTabState.d.ts +5 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/UploadFilePickerTab/UploadFilePickerTab.d.ts +20 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/UploadFilePickerTab/UploadFilePickerTab.themedStyles.d.ts +9 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/UploadFilePickerTab/index.d.ts +3 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/WebSearchTab/IWebSearchTabProps.d.ts +7 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/WebSearchTab/IWebSearchTabState.d.ts +12 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/WebSearchTab/WebSearchTab.d.ts +91 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/WebSearchTab/WebSearchTab.themedStyles.d.ts +35 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/WebSearchTab/WebSearchTab.types.d.ts +21 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/WebSearchTab/index.d.ts +4 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/controls/DocumentLibraryBrowser/DocumentLibraryBrowser.d.ts +38 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/controls/DocumentLibraryBrowser/DocumentLibraryBrowser.themedStyles.d.ts +25 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/controls/DocumentLibraryBrowser/IDocumentLibraryBrowserProps.d.ts +7 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/controls/DocumentLibraryBrowser/IDocumentLibraryBrowserState.d.ts +5 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/controls/DocumentLibraryBrowser/index.d.ts +3 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/controls/DocumentTile/DocumentTile.d.ts +5 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/controls/DocumentTile/IDocumentTileProps.d.ts +12 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/controls/DocumentTile/index.d.ts +2 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/controls/FileBrowser/FileBrowser.d.ts +56 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/controls/FileBrowser/FileBrowser.types.d.ts +1 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/controls/FileBrowser/IFileBrowserProps.d.ts +11 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/controls/FileBrowser/IFileBrowserState.d.ts +17 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/controls/FileBrowser/index.d.ts +4 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/controls/FolderTile/FolderTile.d.ts +5 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/controls/FolderTile/FolderTile.themedStyles.d.ts +6 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/controls/FolderTile/IFolderTileProps.d.ts +10 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/controls/FolderTile/index.d.ts +2 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/controls/TilesList/ITilesListProps.d.ts +13 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/controls/TilesList/TilesList.d.ts +30 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/controls/TilesList/TilesList.themedStyles.d.ts +32 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/controls/TilesList/index.d.ts +2 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/controls/index.d.ts +2 -0
- package/dist/richTextEditor/components/filePicker/components/filePicker/index.d.ts +4 -0
- package/dist/richTextEditor/components/filePicker/components/fileTypeIcon/FileTypeIcon.d.ts +44 -0
- package/dist/richTextEditor/components/filePicker/components/fileTypeIcon/IFileTypeIcon.d.ts +88 -0
- package/dist/richTextEditor/components/filePicker/components/fileTypeIcon/index.d.ts +2 -0
- package/dist/richTextEditor/components/filePicker/components/iFrameDialog/IFrameDialog.d.ts +78 -0
- package/dist/richTextEditor/components/filePicker/components/iFrameDialog/IFrameDialogContent.d.ts +17 -0
- package/dist/richTextEditor/components/filePicker/components/iFrameDialog/index.d.ts +3 -0
- package/dist/richTextEditor/components/filePicker/components/placeholder/IPlaceholderComponent.d.ts +41 -0
- package/dist/richTextEditor/components/filePicker/components/placeholder/PlaceholderComponent.d.ts +44 -0
- package/dist/richTextEditor/components/filePicker/components/placeholder/PlaceholderComponent.themedStyles.d.ts +16 -0
- package/dist/richTextEditor/components/filePicker/components/placeholder/index.d.ts +2 -0
- package/dist/richTextEditor/components/filePicker/index.d.ts +1 -0
- package/dist/richTextEditor/components/filePicker/services/FileBrowserService.d.ts +71 -0
- package/dist/richTextEditor/components/filePicker/services/FileBrowserService.types.d.ts +33 -0
- package/dist/richTextEditor/components/filePicker/services/FilesSearchService.d.ts +45 -0
- package/dist/richTextEditor/components/filePicker/services/FilesSearchService.types.d.ts +62 -0
- package/dist/richTextEditor/components/filePicker/services/IOneDriveService.d.ts +230 -0
- package/dist/richTextEditor/components/filePicker/services/OneDriveService.d.ts +38 -0
- package/dist/richTextEditor/components/filePicker/services/OrgAssetsService.d.ts +10 -0
- package/dist/richTextEditor/components/filePicker/utilities/FieldRendererHelper.d.ts +17 -0
- package/dist/richTextEditor/components/filePicker/utilities/GeneralHelper.d.ts +78 -0
- package/dist/richTextEditor/components/filePicker/utilities/LocalesHelper.d.ts +5 -0
- package/dist/richTextEditor/components/filePicker/utilities/SPHelper.d.ts +67 -0
- package/dist/richTextEditor/components/filePicker/utilities/index.d.ts +4 -0
- package/dist/richTextEditor/components/filePicker/utilities/utils.d.ts +3 -0
- package/dist/richTextEditor/components/hooks/useRange.d.ts +6 -0
- package/dist/richTextEditor/components/richTextEditor/RichTextEditorInner.d.ts +1 -0
- package/dist/richTextEditor/components/richTextEditor/rteContextProvider.d.ts +19 -0
- package/dist/richTextEditor/components/syncfusion/SyncFusionProvider.d.ts +7 -0
- package/dist/richTextEditor/components/syncfusion/licenseKey.d.ts +4 -0
- package/dist/richTextEditor/components/syncfusion/syncfusionRichText.d.ts +22 -0
- package/dist/richTextEditor/components/syncfusion/syncfusionSetup.d.ts +1 -0
- package/dist/richTextEditor/i18n/IRteStrings.d.ts +142 -0
- package/dist/richTextEditor/i18n/de.d.ts +3 -0
- package/dist/richTextEditor/i18n/en.d.ts +3 -0
- package/dist/richTextEditor/i18n/rteStrings.d.ts +3 -0
- package/dist/richTextEditor/themeProvider.d.ts +6 -0
- package/package.json +71 -0
package/README.md
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# @hansevision/tp-richtexteditor-control
|
|
2
|
+
|
|
3
|
+
A standalone, reusable React component for rendering the Syncfusion Richtext Editor in SharePoint Framework (SPFx) solutions.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @hansevision/tp-richtexteditor-control
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Peer Dependencies
|
|
12
|
+
|
|
13
|
+
| Package | Version |
|
|
14
|
+
| ----------- | ---------- |
|
|
15
|
+
| `react` | `>=16.8.0` |
|
|
16
|
+
| `react-dom` | `>=16.8.0` |
|
|
17
|
+
|
|
18
|
+
## Usage
|
|
19
|
+
|
|
20
|
+
### In an SPFx web part
|
|
21
|
+
|
|
22
|
+
```tsx
|
|
23
|
+
import { DisplayMode } from '@microsoft/sp-core-library';
|
|
24
|
+
import { RichTextEditor, ErrorService } from '@hansevision/tp-richtexteditor-control';
|
|
25
|
+
|
|
26
|
+
const errorService = new ErrorService();
|
|
27
|
+
|
|
28
|
+
<RichTextEditor
|
|
29
|
+
spfxContext={this.context}
|
|
30
|
+
displayMode={this.displayMode}
|
|
31
|
+
value={this.properties.textContent}
|
|
32
|
+
onChange={(html) => {
|
|
33
|
+
this.properties.textContent = html;
|
|
34
|
+
}}
|
|
35
|
+
errorService={errorService}
|
|
36
|
+
/>;
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Development
|
|
40
|
+
|
|
41
|
+
For static testing:
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
# Install dependencies (in TP Richtext Editor Controls Project)
|
|
45
|
+
npm ci
|
|
46
|
+
|
|
47
|
+
# Build the package (in TP Richtext Editor Controls Project)
|
|
48
|
+
npm run build
|
|
49
|
+
|
|
50
|
+
# Create Package: hansevision-tp-richtexteditor-control-1.0.0.tgz (in TP Richtext Editor Controls Project)
|
|
51
|
+
npm pack
|
|
52
|
+
|
|
53
|
+
# in the consuming project
|
|
54
|
+
npm install ../your-custom-folder/hansevision-tp-richtexteditor-control-1.0.0.tgz
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
For live-reloading testing:
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
# In TP Richtext Editor Controls Project
|
|
61
|
+
npm link
|
|
62
|
+
|
|
63
|
+
# In the consuming project
|
|
64
|
+
npm link @hansevision/tp-richtexteditor-control
|
|
65
|
+
|
|
66
|
+
# In TP Richtext Editor Controls Project
|
|
67
|
+
npm run build:watch
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
The build outputs to `dist/`:
|
|
71
|
+
|
|
72
|
+
- `dist/index.js` — CommonJS bundle
|
|
73
|
+
- `dist/index.esm.js` — ES module bundle
|
|
74
|
+
- `dist/index.d.ts` — TypeScript declarations
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { IHandleErrorConfig } from './interfaces/IRepairError';
|
|
3
|
+
import { ErrorService } from './errorService';
|
|
4
|
+
interface IErrorBoundaryComponentProps {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
errorService: ErrorService;
|
|
7
|
+
}
|
|
8
|
+
interface IErrorBoundaryComponentState {
|
|
9
|
+
childHasError: boolean;
|
|
10
|
+
config?: IHandleErrorConfig;
|
|
11
|
+
}
|
|
12
|
+
export declare class ErrorBoundary extends React.Component<IErrorBoundaryComponentProps, IErrorBoundaryComponentState> {
|
|
13
|
+
static getDerivedStateFromError(): IErrorBoundaryComponentState;
|
|
14
|
+
constructor(props: IErrorBoundaryComponentProps);
|
|
15
|
+
componentDidCatch(error: Error): void;
|
|
16
|
+
render(): JSX.Element;
|
|
17
|
+
}
|
|
18
|
+
export {};
|
package/dist/i18n.d.ts
ADDED
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { ErrorBoundary } from './errorBoundary/errorBoundary';
|
|
2
|
+
export { ErrorService } from './errorBoundary/errorService';
|
|
3
|
+
export type { IHandleErrorConfig, IRepairError } from './errorBoundary/interfaces/IRepairError';
|
|
4
|
+
export { RichTextEditor } from './richTextEditor/RichTextEditor';
|
|
5
|
+
export type { IRichTextEditorProps } from './richTextEditor/RichTextEditor';
|