utopia-ui 3.0.107 → 3.0.108
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/ItemsApi.d-D5bfsxpo.d.ts +13 -0
- package/dist/Profile.cjs.js +39427 -0
- package/dist/Profile.cjs.js.map +1 -0
- package/dist/Profile.d.ts +21 -2
- package/dist/Profile.esm.js +39401 -14
- package/dist/Profile.esm.js.map +1 -1
- package/dist/TagView-BDAxR2Eb.js +45021 -0
- package/dist/TagView-BDAxR2Eb.js.map +1 -0
- package/dist/TagView-BWPdSE7Z.js +44930 -0
- package/dist/TagView-BWPdSE7Z.js.map +1 -0
- package/dist/TagView-N0Ody3tW.js +2556 -0
- package/dist/TagView-N0Ody3tW.js.map +1 -0
- package/dist/TagView-S5y3vDwZ.js +2468 -0
- package/dist/TagView-S5y3vDwZ.js.map +1 -0
- package/dist/index.cjs.js +2105 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts +1 -2
- package/dist/index.esm.js +2 -8
- package/dist/index.esm.js.map +1 -1
- package/dist/types/src/Components/Input/RichTextEditor/Extensions/CustomHeading.d.ts +1 -0
- package/dist/types/src/Components/Input/RichTextEditor/Extensions/CustomImage.d.ts +1 -0
- package/dist/types/src/Components/Input/RichTextEditor/Extensions/Hashtag.d.ts +2 -0
- package/dist/types/src/Components/Input/RichTextEditor/Extensions/HashtagMention.d.ts +1 -0
- package/dist/types/src/Components/Input/RichTextEditor/Extensions/MentionList.d.ts +13 -0
- package/dist/types/src/Components/Input/RichTextEditor/Extensions/suggestion.d.ts +2 -0
- package/dist/types/src/Components/Input/RichTextEditor/RichTextEditor.d.ts +17 -0
- package/dist/types/src/Components/Input/RichTextEditor/TextEditorMenu.d.ts +4 -0
- package/dist/types/src/Utils/getTextFromMarkdown.d.ts +1 -0
- package/dist/types/src/index.d.ts +0 -1
- package/package.json +1 -1
@@ -0,0 +1 @@
|
|
1
|
+
export declare const CustomHeading: import("@tiptap/core").Node<import("@tiptap/extension-heading").HeadingOptions, any>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const CustomImage: import("@tiptap/core").Node<import("@tiptap/extension-image").ImageOptions, any>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const HashtagMention: import("@tiptap/react").Node<import("@tiptap/extension-mention").MentionOptions<any, import("@tiptap/extension-mention").MentionNodeAttrs>, any>;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export interface MentionListHandle {
|
2
|
+
onKeyDown: (args: {
|
3
|
+
event: KeyboardEvent;
|
4
|
+
}) => boolean;
|
5
|
+
}
|
6
|
+
interface MentionListProps {
|
7
|
+
items: string[];
|
8
|
+
command: (payload: {
|
9
|
+
id: string;
|
10
|
+
}) => void;
|
11
|
+
}
|
12
|
+
export declare const MentionList: import("react").ForwardRefExoticComponent<MentionListProps & import("react").RefAttributes<MentionListHandle>>;
|
13
|
+
export {};
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import type { Editor } from '@tiptap/react';
|
2
|
+
interface RichTextEditorProps {
|
3
|
+
labelTitle?: string;
|
4
|
+
labelStyle?: string;
|
5
|
+
containerStyle?: string;
|
6
|
+
defaultValue: string;
|
7
|
+
placeholder?: string;
|
8
|
+
showMenu?: boolean;
|
9
|
+
readOnly?: boolean;
|
10
|
+
updateFormValue?: (value: string) => void;
|
11
|
+
}
|
12
|
+
/**
|
13
|
+
* @category Input
|
14
|
+
*/
|
15
|
+
export declare function RichTextEditor({ labelTitle, labelStyle, containerStyle, defaultValue, placeholder, showMenu, readOnly, updateFormValue, }: RichTextEditorProps): import("react/jsx-runtime").JSX.Element;
|
16
|
+
export declare function getStyledMarkdown(editor: Editor): string;
|
17
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function markdownToPlainText(markdown: string): string;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "utopia-ui",
|
3
|
-
"version": "3.0.
|
3
|
+
"version": "3.0.108",
|
4
4
|
"description": "Reuseable React Components to build mapping apps for real life communities and networks",
|
5
5
|
"repository": "https://github.com/utopia-os/utopia-ui",
|
6
6
|
"homepage": "https://utopia-os.org/",
|