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.
Files changed (30) hide show
  1. package/dist/ItemsApi.d-D5bfsxpo.d.ts +13 -0
  2. package/dist/Profile.cjs.js +39427 -0
  3. package/dist/Profile.cjs.js.map +1 -0
  4. package/dist/Profile.d.ts +21 -2
  5. package/dist/Profile.esm.js +39401 -14
  6. package/dist/Profile.esm.js.map +1 -1
  7. package/dist/TagView-BDAxR2Eb.js +45021 -0
  8. package/dist/TagView-BDAxR2Eb.js.map +1 -0
  9. package/dist/TagView-BWPdSE7Z.js +44930 -0
  10. package/dist/TagView-BWPdSE7Z.js.map +1 -0
  11. package/dist/TagView-N0Ody3tW.js +2556 -0
  12. package/dist/TagView-N0Ody3tW.js.map +1 -0
  13. package/dist/TagView-S5y3vDwZ.js +2468 -0
  14. package/dist/TagView-S5y3vDwZ.js.map +1 -0
  15. package/dist/index.cjs.js +2105 -0
  16. package/dist/index.cjs.js.map +1 -0
  17. package/dist/index.d.ts +1 -2
  18. package/dist/index.esm.js +2 -8
  19. package/dist/index.esm.js.map +1 -1
  20. package/dist/types/src/Components/Input/RichTextEditor/Extensions/CustomHeading.d.ts +1 -0
  21. package/dist/types/src/Components/Input/RichTextEditor/Extensions/CustomImage.d.ts +1 -0
  22. package/dist/types/src/Components/Input/RichTextEditor/Extensions/Hashtag.d.ts +2 -0
  23. package/dist/types/src/Components/Input/RichTextEditor/Extensions/HashtagMention.d.ts +1 -0
  24. package/dist/types/src/Components/Input/RichTextEditor/Extensions/MentionList.d.ts +13 -0
  25. package/dist/types/src/Components/Input/RichTextEditor/Extensions/suggestion.d.ts +2 -0
  26. package/dist/types/src/Components/Input/RichTextEditor/RichTextEditor.d.ts +17 -0
  27. package/dist/types/src/Components/Input/RichTextEditor/TextEditorMenu.d.ts +4 -0
  28. package/dist/types/src/Utils/getTextFromMarkdown.d.ts +1 -0
  29. package/dist/types/src/index.d.ts +0 -1
  30. 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,2 @@
1
+ import type { NodeViewProps } from '@tiptap/core';
2
+ export declare const Hashtag: ({ node }: NodeViewProps) => import("react/jsx-runtime").JSX.Element;
@@ -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,2 @@
1
+ import type { SuggestionOptions } from '@tiptap/suggestion';
2
+ export declare const suggestion: Partial<SuggestionOptions>;
@@ -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,4 @@
1
+ import type { Editor } from '@tiptap/react';
2
+ export declare const TextEditorMenu: ({ editor }: {
3
+ editor: Editor;
4
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function markdownToPlainText(markdown: string): string;
@@ -6,7 +6,6 @@ export * from './Components/Gaming';
6
6
  export * from './Components/Templates';
7
7
  export * from './Components/Input';
8
8
  export * from './Components/Item';
9
- export * from './Components/Profile';
10
9
  declare global {
11
10
  interface Window {
12
11
  my_modal_3: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "utopia-ui",
3
- "version": "3.0.107",
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/",