@valbuild/ui 0.49.0 → 0.51.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,6 @@
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';
16
4
 
17
5
  type ValOverlayProps = {
18
6
  defaultTheme?: "dark" | "light";
@@ -22,48 +10,10 @@ type ValOverlayProps = {
22
10
  };
23
11
  declare function ValOverlay({ defaultTheme, api, store, onSubmit, }: ValOverlayProps): react_jsx_runtime.JSX.Element;
24
12
 
25
- interface ValFullscreenProps {
26
- api: ValApi;
27
- }
28
- declare const ValFullscreen: FC<ValFullscreenProps>;
29
-
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
- };
13
+ declare const VAL_CSS_PATH = "/src/index.css";
14
+ declare const VAL_APP_PATH = "/app";
15
+ declare const VAL_APP_ID = "val-app";
66
16
 
67
- declare function Style(): JSX.Element;
17
+ declare const IS_DEV = false;
68
18
 
69
- export { IValStore, Inputs, RichTextEditor, Style, ValFullscreen, ValOverlay };
19
+ export { IS_DEV, VAL_APP_ID, VAL_APP_PATH, VAL_CSS_PATH, ValOverlay };