@valbuild/ui 0.49.0 → 0.50.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.
@@ -1,18 +1,7 @@
1
- import { LexicalEditor } from 'lexical';
2
- import { FC } from 'react';
3
- import { RichTextSource, AnyRichTextOptions, ModuleId, ValApi } from '@valbuild/core';
4
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
-
6
- interface RichTextEditorProps {
7
- richtext: RichTextSource<AnyRichTextOptions>;
8
- onEditor?: (editor: LexicalEditor) => void;
9
- }
10
- declare const RichTextEditor: FC<RichTextEditorProps>;
11
-
12
- interface IValStore {
13
- updateAll(): Promise<void>;
14
- update(moduleIds: ModuleId[]): Promise<void>;
15
- }
2
+ import { ValApi } from '@valbuild/core';
3
+ import { IValStore } from '@valbuild/shared/internal';
4
+ import { FC } from 'react';
16
5
 
17
6
  type ValOverlayProps = {
18
7
  defaultTheme?: "dark" | "light";
@@ -27,43 +16,6 @@ interface ValFullscreenProps {
27
16
  }
28
17
  declare const ValFullscreen: FC<ValFullscreenProps>;
29
18
 
30
- type ImageData = {
31
- src: string;
32
- addMetadata: boolean;
33
- metadata?: {
34
- width: number;
35
- height: number;
36
- sha256: string;
37
- };
38
- } | {
39
- url: string;
40
- metadata?: {
41
- width: number;
42
- height: number;
43
- sha256: string;
44
- };
45
- } | null;
46
-
47
- type TextData = string;
48
-
49
- type Inputs = {
50
- [path: string]: {
51
- status: "requested";
52
- } | {
53
- status: "completed";
54
- type: "text";
55
- data: TextData;
56
- } | {
57
- status: "completed";
58
- type: "image";
59
- data: ImageData;
60
- } | {
61
- status: "completed";
62
- type: "richtext";
63
- data: RichTextSource<AnyRichTextOptions>;
64
- };
65
- };
66
-
67
19
  declare function Style(): JSX.Element;
68
20
 
69
- export { IValStore, Inputs, RichTextEditor, Style, ValFullscreen, ValOverlay };
21
+ export { Style, ValFullscreen, ValOverlay };