@app-studio/web 0.9.57 → 0.9.60
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/components/Background/Background/Background.props.d.ts +15 -8
- package/dist/components/Background/Background/Background.style.d.ts +0 -2
- package/dist/components/Background/Background/Background.view.d.ts +2 -1
- package/dist/components/Background/Background.d.ts +1 -0
- package/dist/components/ChatInput/ChatInput/ChatInput.props.d.ts +18 -1
- package/dist/components/ColorPicker/ColorPicker/ColorPicker.props.d.ts +1 -1
- package/dist/components/DragAndDrop/DragAndDrop/DragAndDrop.props.d.ts +1 -1
- package/dist/components/EmojiPicker/EmojiPicker/EmojiPicker.props.d.ts +1 -1
- package/dist/components/Formik/Formik.Uploader.d.ts +1 -1
- package/dist/components/ProgressBar/ProgressBar/ProgressBar.props.d.ts +36 -2
- package/dist/components/ProgressBar/ProgressBar.d.ts +1 -0
- package/dist/components/Slider/Slider/Slider.props.d.ts +1 -1
- package/dist/components/Title/Title/SlideEffect.d.ts +1 -0
- package/dist/components/Title/Title/Title.props.d.ts +0 -5
- package/dist/pages/title.page.d.ts +0 -3
- package/dist/web.cjs.development.js +238 -223
- package/dist/web.cjs.development.js.map +1 -1
- package/dist/web.cjs.production.min.js +1 -1
- package/dist/web.cjs.production.min.js.map +1 -1
- package/dist/web.esm.js +238 -223
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +242 -226
- package/dist/web.umd.development.js.map +1 -1
- package/dist/web.umd.production.min.js +1 -1
- package/dist/web.umd.production.min.js.map +1 -1
- package/docs/app-studio/Animation.md +241 -0
- package/docs/app-studio/Components.md +192 -0
- package/docs/app-studio/Design.md +121 -0
- package/docs/app-studio/Events.md +296 -0
- package/docs/app-studio/Hooks.md +469 -0
- package/docs/app-studio/Providers.md +186 -0
- package/docs/app-studio/README.md +781 -0
- package/docs/app-studio/Responsive.md +135 -0
- package/docs/app-studio/Theming.md +488 -0
- package/docs/components/Background.mdx +2 -2
- package/docs/components/ChatInput.mdx +133 -0
- package/package.json +3 -2
|
@@ -94,15 +94,15 @@ export interface BackgroundImageProps extends Omit<BackgroundProps, 'position'>
|
|
|
94
94
|
* @default 1
|
|
95
95
|
*/
|
|
96
96
|
imageOpacity?: number;
|
|
97
|
-
/**
|
|
98
|
-
* Overlay color to blend with image
|
|
99
|
-
*/
|
|
100
|
-
overlay?: string;
|
|
101
97
|
/**
|
|
102
98
|
* Blend mode for overlay
|
|
103
99
|
* @default 'normal'
|
|
104
100
|
*/
|
|
105
101
|
blendMode?: BlendMode;
|
|
102
|
+
/**
|
|
103
|
+
* Overlay content
|
|
104
|
+
*/
|
|
105
|
+
overlay?: ReactNode;
|
|
106
106
|
/**
|
|
107
107
|
* Custom views for styling
|
|
108
108
|
*/
|
|
@@ -110,7 +110,6 @@ export interface BackgroundImageProps extends Omit<BackgroundProps, 'position'>
|
|
|
110
110
|
container?: ViewProps;
|
|
111
111
|
content?: ViewProps;
|
|
112
112
|
image?: ViewProps;
|
|
113
|
-
overlay?: ViewProps;
|
|
114
113
|
};
|
|
115
114
|
}
|
|
116
115
|
/**
|
|
@@ -144,7 +143,7 @@ export interface BackgroundVideoProps extends Omit<BackgroundProps, 'position'>
|
|
|
144
143
|
/**
|
|
145
144
|
* Overlay color to blend with video
|
|
146
145
|
*/
|
|
147
|
-
overlay?:
|
|
146
|
+
overlay?: ReactNode;
|
|
148
147
|
/**
|
|
149
148
|
* Blend mode for overlay
|
|
150
149
|
* @default 'normal'
|
|
@@ -157,7 +156,6 @@ export interface BackgroundVideoProps extends Omit<BackgroundProps, 'position'>
|
|
|
157
156
|
container?: ViewProps;
|
|
158
157
|
content?: ViewProps;
|
|
159
158
|
video?: ViewProps;
|
|
160
|
-
overlay?: ViewProps;
|
|
161
159
|
};
|
|
162
160
|
}
|
|
163
161
|
/**
|
|
@@ -166,6 +164,16 @@ export interface BackgroundVideoProps extends Omit<BackgroundProps, 'position'>
|
|
|
166
164
|
*/
|
|
167
165
|
export interface BackgroundGradientProps extends GradientProps {
|
|
168
166
|
}
|
|
167
|
+
/**
|
|
168
|
+
* Background Overlay component props
|
|
169
|
+
*/
|
|
170
|
+
export interface BackgroundOverlayProps extends ViewProps {
|
|
171
|
+
/**
|
|
172
|
+
* Position of the content relative to the overlay
|
|
173
|
+
* @default 'center'
|
|
174
|
+
*/
|
|
175
|
+
contentPosition?: 'left' | 'right' | 'center' | 'bottom' | 'top';
|
|
176
|
+
}
|
|
169
177
|
/**
|
|
170
178
|
* Background styles for customization
|
|
171
179
|
*/
|
|
@@ -176,6 +184,5 @@ export interface BackgroundStyles {
|
|
|
176
184
|
meteors?: ViewProps;
|
|
177
185
|
image?: ViewProps;
|
|
178
186
|
video?: ViewProps;
|
|
179
|
-
overlay?: ViewProps;
|
|
180
187
|
gradient?: ViewProps;
|
|
181
188
|
}
|
|
@@ -19,7 +19,6 @@ export declare const AuroraStyles: {
|
|
|
19
19
|
export declare const BackgroundImageStyles: {
|
|
20
20
|
container: ViewProps;
|
|
21
21
|
image: ViewProps;
|
|
22
|
-
overlay: ViewProps;
|
|
23
22
|
content: ViewProps;
|
|
24
23
|
};
|
|
25
24
|
/**
|
|
@@ -28,7 +27,6 @@ export declare const BackgroundImageStyles: {
|
|
|
28
27
|
export declare const BackgroundVideoStyles: {
|
|
29
28
|
container: ViewProps;
|
|
30
29
|
video: ViewProps;
|
|
31
|
-
overlay: ViewProps;
|
|
32
30
|
content: ViewProps;
|
|
33
31
|
};
|
|
34
32
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { BackgroundProps, AuroraBackgroundProps, MeteorsProps, WallProps, ParticlesProps, GridProps, RipplesProps, BackgroundImageProps, BackgroundVideoProps, BackgroundGradientProps } from './Background.props';
|
|
2
|
+
import { BackgroundProps, AuroraBackgroundProps, MeteorsProps, WallProps, ParticlesProps, GridProps, RipplesProps, BackgroundImageProps, BackgroundVideoProps, BackgroundGradientProps, BackgroundOverlayProps } from './Background.props';
|
|
3
3
|
/**
|
|
4
4
|
* Main Background View Component with compound pattern
|
|
5
5
|
*/
|
|
@@ -13,6 +13,7 @@ interface BackgroundViewComponent extends React.FC<BackgroundProps> {
|
|
|
13
13
|
Image: React.FC<BackgroundImageProps>;
|
|
14
14
|
Video: React.FC<BackgroundVideoProps>;
|
|
15
15
|
Gradient: React.FC<BackgroundGradientProps>;
|
|
16
|
+
Overlay: React.FC<BackgroundOverlayProps>;
|
|
16
17
|
}
|
|
17
18
|
export declare const BackgroundView: BackgroundViewComponent;
|
|
18
19
|
export {};
|
|
@@ -18,4 +18,5 @@ export declare const Background: React.ForwardRefExoticComponent<Pick<Background
|
|
|
18
18
|
Image: React.FC<import("./Background/Background.props").BackgroundImageProps>;
|
|
19
19
|
Video: React.FC<import("./Background/Background.props").BackgroundVideoProps>;
|
|
20
20
|
Gradient: React.FC<import("./Background/Background.props").BackgroundGradientProps>;
|
|
21
|
+
Overlay: React.FC<import("./Background/Background.props").BackgroundOverlayProps>;
|
|
21
22
|
};
|
|
@@ -5,7 +5,7 @@ import { Suggestion } from '../EditableInput';
|
|
|
5
5
|
/**
|
|
6
6
|
* Props for the ChatInput component
|
|
7
7
|
*/
|
|
8
|
-
export interface ChatInputProps extends ViewProps {
|
|
8
|
+
export interface ChatInputProps extends Omit<ViewProps, 'onChange'> {
|
|
9
9
|
/**
|
|
10
10
|
* Get the pending files
|
|
11
11
|
*/
|
|
@@ -61,6 +61,23 @@ export interface ChatInputProps extends ViewProps {
|
|
|
61
61
|
* ID of the sandbox
|
|
62
62
|
*/
|
|
63
63
|
sandboxId?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Callback when file upload progress changes
|
|
66
|
+
*/
|
|
67
|
+
onUploadProgress?: (progress: number) => void;
|
|
68
|
+
/**
|
|
69
|
+
* Callback when file upload succeeds
|
|
70
|
+
*/
|
|
71
|
+
onUploadSuccess?: (data: any) => void;
|
|
72
|
+
/**
|
|
73
|
+
* Callback when file upload fails
|
|
74
|
+
*/
|
|
75
|
+
onUploadError?: (error: any) => void;
|
|
76
|
+
/**
|
|
77
|
+
* Function to execute file upload. Parent should provide this.
|
|
78
|
+
* Should return an object with a loading property.
|
|
79
|
+
*/
|
|
80
|
+
onFileUpload?: (file: File) => void;
|
|
64
81
|
/**
|
|
65
82
|
* Whether to hide the attachment button
|
|
66
83
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ViewProps } from 'app-studio';
|
|
3
3
|
import { Variant, Shape, Size, ColorPickerStyles, ColorFormat, PredefinedColor } from './ColorPicker.type';
|
|
4
|
-
export interface ColorPickerProps extends ViewProps {
|
|
4
|
+
export interface ColorPickerProps extends Omit<ViewProps, 'onChange'> {
|
|
5
5
|
id?: string;
|
|
6
6
|
name?: string;
|
|
7
7
|
label?: string;
|
|
@@ -7,7 +7,7 @@ export interface DragAndDropProps {
|
|
|
7
7
|
containerProps?: ViewProps;
|
|
8
8
|
itemProps?: ViewProps;
|
|
9
9
|
}
|
|
10
|
-
export interface DragAndDropViewProps extends DragAndDropProps, ViewProps {
|
|
10
|
+
export interface DragAndDropViewProps extends DragAndDropProps, Omit<ViewProps, 'onChange'> {
|
|
11
11
|
draggedIndex: number | null;
|
|
12
12
|
itemRefs: React.MutableRefObject<(HTMLDivElement | null)[]>;
|
|
13
13
|
renderItem?: (item: any, index: number) => React.ReactNode;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ViewProps } from 'app-studio';
|
|
3
3
|
import { Variant, Shape, Size, EmojiPickerStyles, EmojiCategory, Emoji } from './EmojiPicker.type';
|
|
4
|
-
export interface EmojiPickerProps extends ViewProps {
|
|
4
|
+
export interface EmojiPickerProps extends Omit<ViewProps, 'onChange'> {
|
|
5
5
|
id?: string;
|
|
6
6
|
name?: string;
|
|
7
7
|
label?: string;
|
|
@@ -9,7 +9,7 @@ export interface FormikUploaderProps extends Omit<UploadProps, 'onFileSelect' |
|
|
|
9
9
|
/**
|
|
10
10
|
* Custom upload handler. Defaults to the platform UploadService
|
|
11
11
|
*/
|
|
12
|
-
uploadFile
|
|
12
|
+
uploadFile: UploadFileHandler;
|
|
13
13
|
/**
|
|
14
14
|
* Callback fired when a single file upload succeeds
|
|
15
15
|
*/
|
|
@@ -1,9 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ViewProps } from 'app-studio';
|
|
2
3
|
export interface ProgressBarStyles {
|
|
3
4
|
container?: ViewProps;
|
|
4
5
|
bar?: ViewProps;
|
|
6
|
+
track?: React.SVGAttributes<SVGCircleElement>;
|
|
7
|
+
indicator?: React.SVGAttributes<SVGCircleElement>;
|
|
8
|
+
text?: ViewProps;
|
|
5
9
|
}
|
|
6
10
|
export interface ProgressBarProps extends ViewProps {
|
|
11
|
+
/**
|
|
12
|
+
* The shape of the progress bar
|
|
13
|
+
* @default 'linear'
|
|
14
|
+
*/
|
|
15
|
+
shape?: 'linear' | 'circle';
|
|
7
16
|
/**
|
|
8
17
|
* Current progress value
|
|
9
18
|
*/
|
|
@@ -21,13 +30,38 @@ export interface ProgressBarProps extends ViewProps {
|
|
|
21
30
|
*/
|
|
22
31
|
backgroundColor?: string;
|
|
23
32
|
/**
|
|
24
|
-
* Height of the progress bar
|
|
33
|
+
* Height of the progress bar (linear) or size (circle)
|
|
25
34
|
*/
|
|
26
35
|
height?: number | string;
|
|
27
36
|
/**
|
|
28
|
-
*
|
|
37
|
+
* Diameter of the circle (alias for height/width when shape is circle)
|
|
38
|
+
*/
|
|
39
|
+
size?: number;
|
|
40
|
+
/**
|
|
41
|
+
* Border radius for rounded corners (linear only)
|
|
29
42
|
*/
|
|
30
43
|
radius?: number | string;
|
|
44
|
+
/**
|
|
45
|
+
* Width of the stroke (circle only)
|
|
46
|
+
*/
|
|
47
|
+
strokeWidth?: number;
|
|
48
|
+
/**
|
|
49
|
+
* Whether to show the percentage label in the center (circle only)
|
|
50
|
+
*/
|
|
51
|
+
showLabel?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Color of the label text (circle only)
|
|
54
|
+
*/
|
|
55
|
+
labelColor?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Whether to animate the progress change smoothly
|
|
58
|
+
* @default true
|
|
59
|
+
*/
|
|
60
|
+
animated?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Duration of the animation
|
|
63
|
+
*/
|
|
64
|
+
animationDuration?: string;
|
|
31
65
|
/**
|
|
32
66
|
* Custom styles for container or bar
|
|
33
67
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { InputProps, ViewProps } from 'app-studio';
|
|
3
3
|
import { Orientation, Shape, Size, SliderStyles, Variant } from './Slider.type';
|
|
4
|
-
export interface SliderProps extends Omit<InputProps, 'size' | 'onChange'> {
|
|
4
|
+
export interface SliderProps extends Omit<InputProps, 'size' | 'onChange' | 'onDrag'> {
|
|
5
5
|
/**
|
|
6
6
|
* The minimum value of the slider
|
|
7
7
|
*/
|
|
@@ -102,11 +102,6 @@ export interface TitleProps extends ViewProps {
|
|
|
102
102
|
* @default false
|
|
103
103
|
*/
|
|
104
104
|
responsive?: boolean;
|
|
105
|
-
/**
|
|
106
|
-
* Whether to center the title
|
|
107
|
-
* @default false
|
|
108
|
-
*/
|
|
109
|
-
centered?: boolean;
|
|
110
105
|
/**
|
|
111
106
|
* Custom styles for different parts of the component
|
|
112
107
|
*/
|