@entur-partner/rich-text-editor 6.2.4 → 6.2.6-6.2.6-alpha.1.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/dist/ExpandableMultiLanguageRichTextEditor.d.ts +21 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +8 -0
- package/dist/rich-text-editor.cjs.development.js +919 -0
- package/dist/rich-text-editor.cjs.development.js.map +1 -0
- package/dist/rich-text-editor.cjs.production.min.js +2 -0
- package/dist/rich-text-editor.cjs.production.min.js.map +1 -0
- package/dist/rich-text-editor.esm.js +907 -0
- package/dist/rich-text-editor.esm.js.map +1 -0
- package/dist/styles.css +156 -0
- package/package.json +3 -3
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type VariantType } from "@entur/form";
|
|
2
|
+
import { type LanguageKey, type LanguageOption, type MultiLanguageValues } from "@entur-partner/common";
|
|
3
|
+
import React from "react";
|
|
4
|
+
type MultiLanguageInputProps = {
|
|
5
|
+
values: MultiLanguageValues;
|
|
6
|
+
onChange: (values: MultiLanguageValues) => void;
|
|
7
|
+
variant?: (lang: LanguageKey) => VariantType;
|
|
8
|
+
feedback?: (lang: LanguageKey) => string;
|
|
9
|
+
tags?: {
|
|
10
|
+
tag: string;
|
|
11
|
+
delimiter: string;
|
|
12
|
+
label: string;
|
|
13
|
+
}[];
|
|
14
|
+
};
|
|
15
|
+
type ExpandableMultiLanguageRichTextEditorProps = MultiLanguageInputProps & {
|
|
16
|
+
name: string;
|
|
17
|
+
title: string;
|
|
18
|
+
languages: LanguageOption[];
|
|
19
|
+
};
|
|
20
|
+
export declare const ExpandableMultiLanguageRichTextEditor: ({ name, title, languages, ...rest }: ExpandableMultiLanguageRichTextEditorProps) => React.JSX.Element;
|
|
21
|
+
export {};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { ExpandableMultiLanguageRichTextEditor } from "./ExpandableMultiLanguageRichTextEditor";
|
|
2
|
+
export { default as RichTextEditor } from "./RichTextEditor";
|
|
3
|
+
export { EditorConfigTypes, MinifiedConfigTypes, } from "./RichTextEditor/constants";
|
|
4
|
+
export { editorStateToHtml, htmlToEditorState, } from "./RichTextEditor/htmlConvertion";
|
|
5
|
+
export { editorStateToMarkdown, markdownToEditorState, markdownToHtml, } from "./RichTextEditor/markdownConvertion";
|