@developer_tribe/react-builder 0.1.31 → 1.1.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.
- package/dist/DeviceMockFrame.d.ts +1 -17
- package/dist/RenderPage.d.ts +1 -9
- package/dist/build-components/Button/ButtonProps.generated.d.ts +2 -1
- package/dist/build-components/CarouselButtons/CarouselButtonsProps.generated.d.ts +2 -1
- package/dist/build-components/CarouselDots/CarouselDotsProps.generated.d.ts +2 -1
- package/dist/build-components/Image/ImageProps.generated.d.ts +2 -1
- package/dist/build-components/OnboardButton/OnboardButtonProps.generated.d.ts +8 -4
- package/dist/build-components/OnboardButtons/OnboardButtonsProps.generated.d.ts +6 -3
- package/dist/build-components/OnboardDot/OnboardDotProps.generated.d.ts +2 -1
- package/dist/build-components/OnboardFooter/OnboardFooterProps.generated.d.ts +10 -5
- package/dist/build-components/OnboardImage/OnboardImageProps.generated.d.ts +4 -1
- package/dist/build-components/OnboardItem/OnboardItemProps.generated.d.ts +4 -2
- package/dist/build-components/OnboardSubtitle/OnboardSubtitleProps.generated.d.ts +10 -5
- package/dist/build-components/OnboardTitle/OnboardTitleProps.generated.d.ts +10 -5
- package/dist/build-components/Text/TextProps.generated.d.ts +10 -5
- package/dist/build-components/View/ViewProps.generated.d.ts +6 -3
- package/dist/build-components/index.d.ts +1 -0
- package/dist/build-components/patterns.generated.d.ts +7 -2
- package/dist/components/AttributesEditorPanel.d.ts +9 -0
- package/dist/components/Breadcrumb.d.ts +13 -0
- package/dist/components/Builder.d.ts +9 -0
- package/dist/components/EditorHeader.d.ts +15 -0
- package/dist/index.cjs.js +7 -4
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts +5 -4
- package/dist/index.esm.js +7 -4
- package/dist/index.esm.js.map +1 -0
- package/dist/pages/ProjectPage.d.ts +9 -0
- package/dist/pages/tabs/BuilderTab.d.ts +9 -0
- package/dist/pages/tabs/DebugTab.d.ts +7 -0
- package/dist/pages/tabs/PreviewTab.d.ts +3 -0
- package/dist/store.d.ts +8 -18
- package/dist/styles.css +1 -1
- package/dist/types/PreviewConfig.d.ts +6 -3
- package/dist/types/Project.d.ts +2 -2
- package/dist/utils/copyNode.d.ts +2 -0
- package/package.json +17 -9
- package/scripts/prebuild/utils/createBuildComponentsIndex.js +15 -1
- package/scripts/prebuild/utils/createGeneratedProps.js +64 -5
- package/src/DeviceMockFrame.tsx +20 -31
- package/src/RenderPage.tsx +3 -38
- package/src/assets/images/android.svg +43 -0
- package/src/assets/images/apple.svg +16 -0
- package/src/assets/images/background.jpg +0 -0
- package/src/assets/samples/carousel-sample.json +2 -3
- package/src/assets/samples/getSamples.ts +51 -8
- package/src/assets/samples/simple-1.json +1 -2
- package/src/assets/samples/simple-2.json +1 -2
- package/src/assets/samples/vpn-onboard-1.json +1 -2
- package/src/assets/samples/vpn-onboard-2.json +1 -2
- package/src/assets/samples/vpn-onboard-3.json +1 -2
- package/src/assets/samples/vpn-onboard-4.json +1 -2
- package/src/assets/samples/vpn-onboard-5.json +1024 -0
- package/src/assets/samples/vpn-onboard-6.json +708 -0
- package/src/build-components/Button/ButtonProps.generated.ts +14 -12
- package/src/build-components/CarouselButtons/CarouselButtonsProps.generated.ts +6 -1
- package/src/build-components/CarouselDots/CarouselDotsProps.generated.ts +9 -7
- package/src/build-components/Image/ImageProps.generated.ts +3 -1
- package/src/build-components/OnboardButton/OnboardButton.tsx +5 -4
- package/src/build-components/OnboardButton/OnboardButtonProps.generated.ts +14 -9
- package/src/build-components/OnboardButton/pattern.json +3 -2
- package/src/build-components/OnboardButtons/OnboardButtons.tsx +5 -7
- package/src/build-components/OnboardButtons/OnboardButtonsProps.generated.ts +10 -3
- package/src/build-components/OnboardDot/OnboardDotProps.generated.ts +9 -7
- package/src/build-components/OnboardFooter/OnboardFooter.tsx +3 -3
- package/src/build-components/OnboardFooter/OnboardFooterProps.generated.ts +33 -22
- package/src/build-components/OnboardImage/OnboardImage.tsx +24 -1
- package/src/build-components/OnboardImage/OnboardImageProps.generated.ts +5 -1
- package/src/build-components/OnboardImage/pattern.json +3 -5
- package/src/build-components/OnboardItem/OnboardItemProps.generated.ts +5 -2
- package/src/build-components/OnboardSubtitle/OnboardSubtitleProps.generated.ts +33 -22
- package/src/build-components/OnboardTitle/OnboardTitleProps.generated.ts +33 -22
- package/src/build-components/Text/Text.tsx +3 -3
- package/src/build-components/Text/TextProps.generated.ts +33 -22
- package/src/build-components/View/ViewProps.generated.ts +18 -9
- package/src/build-components/index.ts +22 -0
- package/src/build-components/patterns.generated.ts +7 -2
- package/src/components/AttributesEditorPanel.tsx +110 -0
- package/src/components/Breadcrumb.tsx +46 -0
- package/src/components/Builder.tsx +270 -0
- package/src/components/EditorHeader.tsx +184 -0
- package/src/index.ts +5 -4
- package/src/pages/ProjectPage.tsx +112 -0
- package/src/pages/tabs/BuilderTab.tsx +31 -0
- package/src/pages/tabs/DebugTab.tsx +21 -0
- package/src/pages/tabs/PreviewTab.tsx +192 -0
- package/src/size-matters/index.ts +5 -1
- package/src/store.ts +26 -38
- package/src/styles/_mixins.scss +21 -0
- package/src/styles/_variables.scss +27 -0
- package/src/styles/builder.scss +60 -0
- package/src/styles/components.scss +88 -0
- package/src/styles/editor.scss +174 -0
- package/src/styles/global.scss +200 -0
- package/src/styles/index.scss +7 -0
- package/src/styles/pages.scss +2 -0
- package/src/types/PreviewConfig.ts +14 -5
- package/src/types/Project.ts +2 -2
- package/src/utils/copyNode.ts +7 -0
- package/src/utils/extractTextStyle.ts +4 -2
- package/src/utils/getDevices.ts +1 -0
- package/src/utils/novaToJson.ts +5 -0
|
@@ -1,22 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Device } from './types/Device';
|
|
3
2
|
type DeviceMockFrameProps = {
|
|
4
|
-
width: number;
|
|
5
|
-
height: number;
|
|
6
|
-
isRtl: boolean;
|
|
7
|
-
screenStyle: {
|
|
8
|
-
light: {
|
|
9
|
-
backgroundColor: string;
|
|
10
|
-
color: string;
|
|
11
|
-
};
|
|
12
|
-
dark: {
|
|
13
|
-
backgroundColor: string;
|
|
14
|
-
color: string;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
theme: 'dark' | 'light';
|
|
18
3
|
children: React.ReactNode;
|
|
19
|
-
device: Device;
|
|
20
4
|
};
|
|
21
|
-
export declare function DeviceMockFrame({
|
|
5
|
+
export declare function DeviceMockFrame({ children }: DeviceMockFrameProps): import("react/jsx-runtime").JSX.Element;
|
|
22
6
|
export default DeviceMockFrame;
|
package/dist/RenderPage.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { Localication } from './types/PreviewConfig';
|
|
2
1
|
import { Node } from './types/Node';
|
|
3
|
-
import { Device } from './types/Device';
|
|
4
2
|
export type ScreenStyle = {
|
|
5
3
|
light: {
|
|
6
4
|
backgroundColor: string;
|
|
@@ -15,12 +13,6 @@ export type ScreenStyle = {
|
|
|
15
13
|
};
|
|
16
14
|
type RenderPageProps = {
|
|
17
15
|
data: Node;
|
|
18
|
-
isRtl: boolean;
|
|
19
|
-
screenStyle: ScreenStyle;
|
|
20
|
-
theme: 'dark' | 'light';
|
|
21
|
-
localication: Localication;
|
|
22
|
-
defaultLanguage?: string;
|
|
23
|
-
device: Device;
|
|
24
16
|
};
|
|
25
|
-
export declare function RenderPage({ data
|
|
17
|
+
export declare function RenderPage({ data }: RenderPageProps): import("react/jsx-runtime").JSX.Element;
|
|
26
18
|
export {};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { NodeData } from '../../types/Node';
|
|
2
|
+
export type FontWeightOptionType = 'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
|
|
2
3
|
export interface ButtonPropsGenerated {
|
|
3
4
|
child: string;
|
|
4
5
|
attributes: {
|
|
5
6
|
color?: string;
|
|
6
7
|
fontSize?: number;
|
|
7
|
-
fontWeight?:
|
|
8
|
+
fontWeight?: FontWeightOptionType;
|
|
8
9
|
};
|
|
9
10
|
}
|
|
10
11
|
export interface ButtonComponentProps {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { NodeData } from '../../types/Node';
|
|
2
|
+
export type ButtonTypeOptionType = 'previous_button' | 'next_button' | 'skip_button';
|
|
2
3
|
export interface CarouselButtonsPropsGenerated {
|
|
3
4
|
child: string;
|
|
4
5
|
attributes: {
|
|
5
|
-
buttonType?:
|
|
6
|
+
buttonType?: ButtonTypeOptionType;
|
|
6
7
|
skipNumber?: number;
|
|
7
8
|
};
|
|
8
9
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { NodeData } from '../../types/Node';
|
|
2
|
+
export type DotTypeOptionType = 'expanding_dot' | 'normal_dot' | 'scaling_dot' | 'sliding_border' | 'sliding_dot' | 'liquid_like';
|
|
2
3
|
export interface CarouselDotsPropsGenerated {
|
|
3
4
|
child: string;
|
|
4
5
|
attributes: {
|
|
5
|
-
dotType?:
|
|
6
|
+
dotType?: DotTypeOptionType;
|
|
6
7
|
};
|
|
7
8
|
}
|
|
8
9
|
export interface CarouselDotsComponentProps {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { NodeData } from '../../types/Node';
|
|
2
|
+
export type ResizeModeOptionType = 'cover' | 'contain' | 'stretch' | 'center';
|
|
2
3
|
export interface ImagePropsGenerated {
|
|
3
4
|
child: string;
|
|
4
5
|
attributes: {
|
|
5
6
|
src?: string;
|
|
6
7
|
width?: number;
|
|
7
8
|
height?: number;
|
|
8
|
-
resizeMode?:
|
|
9
|
+
resizeMode?: ResizeModeOptionType;
|
|
9
10
|
borderRadius?: number;
|
|
10
11
|
};
|
|
11
12
|
}
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import type { NodeData } from '../../types/Node';
|
|
2
|
+
export type TypeOptionType = 'Permission' | 'Navigate';
|
|
3
|
+
export type PermissionOptionType = 'att' | 'notification' | 'rating' | 'GDPR';
|
|
4
|
+
export type AnimationOptionType = 'simple-animation' | 'line-animation' | 'blur' | 'blur-animation' | 'blur-line-animation';
|
|
2
5
|
export interface EventObjectGenerated {
|
|
3
|
-
type?:
|
|
4
|
-
permission?:
|
|
5
|
-
navigate_to?:
|
|
6
|
+
type?: TypeOptionType;
|
|
7
|
+
permission?: PermissionOptionType | null;
|
|
8
|
+
navigate_to?: string;
|
|
9
|
+
targetIndex?: number;
|
|
6
10
|
}
|
|
7
11
|
export interface OnboardButtonPropsGenerated {
|
|
8
12
|
child: string;
|
|
9
13
|
attributes: {
|
|
10
14
|
labelKey?: string;
|
|
11
15
|
button_text_color?: string;
|
|
12
|
-
animation?:
|
|
16
|
+
animation?: AnimationOptionType;
|
|
13
17
|
animation_color?: string;
|
|
14
18
|
button_background_color?: string;
|
|
15
19
|
flex?: number;
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import type { NodeData } from '../../types/Node';
|
|
2
|
+
export type ButtonTypeOptionType = 'previous_button' | 'next_button' | 'skip_button';
|
|
3
|
+
export type ButtonsDirectionOptionType = 'row' | 'column';
|
|
4
|
+
export type ConditionOptionType = 'carousel-index';
|
|
2
5
|
export interface OnboardButtonsPropsGenerated {
|
|
3
6
|
child: string;
|
|
4
7
|
attributes: {
|
|
5
|
-
buttonType?:
|
|
8
|
+
buttonType?: ButtonTypeOptionType;
|
|
6
9
|
skipNumber?: number;
|
|
7
|
-
buttons_direction?:
|
|
10
|
+
buttons_direction?: ButtonsDirectionOptionType;
|
|
8
11
|
forIndex?: number;
|
|
9
12
|
seperatorColor?: string;
|
|
10
|
-
condition?:
|
|
13
|
+
condition?: ConditionOptionType;
|
|
11
14
|
conditionVariable?: number;
|
|
12
15
|
};
|
|
13
16
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { NodeData } from '../../types/Node';
|
|
2
|
+
export type DotTypeOptionType = 'expanding_dot' | 'normal_dot' | 'scaling_dot' | 'sliding_border' | 'sliding_dot' | 'liquid_like';
|
|
2
3
|
export interface OnboardDotPropsGenerated {
|
|
3
4
|
child: string;
|
|
4
5
|
attributes: {
|
|
5
|
-
dotType?:
|
|
6
|
+
dotType?: DotTypeOptionType;
|
|
6
7
|
inactive_dot_opacity?: number;
|
|
7
8
|
expanding_dot_width?: number;
|
|
8
9
|
dot_style?: string;
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
import type { NodeData } from '../../types/Node';
|
|
2
|
+
export type FontWeightOptionType = 'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
|
|
3
|
+
export type TextAlignOptionType = 'left' | 'center' | 'right' | 'justify';
|
|
4
|
+
export type FlexDirectionOptionType = 'row' | 'column';
|
|
5
|
+
export type AlignItemsOptionType = 'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline';
|
|
6
|
+
export type JustifyContentOptionType = 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
|
|
2
7
|
export interface OnboardFooterPropsGenerated {
|
|
3
8
|
child: string;
|
|
4
9
|
attributes: {
|
|
5
10
|
color?: string;
|
|
6
11
|
fontSize?: number;
|
|
7
|
-
fontWeight?:
|
|
8
|
-
textAlign?:
|
|
12
|
+
fontWeight?: FontWeightOptionType;
|
|
13
|
+
textAlign?: TextAlignOptionType;
|
|
9
14
|
scrollable?: boolean;
|
|
10
|
-
flexDirection?:
|
|
11
|
-
alignItems?:
|
|
12
|
-
justifyContent?:
|
|
15
|
+
flexDirection?: FlexDirectionOptionType;
|
|
16
|
+
alignItems?: AlignItemsOptionType;
|
|
17
|
+
justifyContent?: JustifyContentOptionType;
|
|
13
18
|
gap?: string;
|
|
14
19
|
padding?: number;
|
|
15
20
|
paddingHorizontal?: string;
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import type { NodeData } from '../../types/Node';
|
|
2
|
+
export type ResizeModeOptionType = 'cover' | 'contain' | 'stretch' | 'center';
|
|
2
3
|
export interface OnboardImagePropsGenerated {
|
|
3
4
|
child: string;
|
|
4
5
|
attributes: {
|
|
5
6
|
src?: string;
|
|
6
7
|
width?: number;
|
|
7
8
|
height?: number;
|
|
8
|
-
resizeMode?:
|
|
9
|
+
resizeMode?: ResizeModeOptionType;
|
|
9
10
|
borderRadius?: number;
|
|
11
|
+
video_url?: string;
|
|
12
|
+
lottie?: string;
|
|
10
13
|
};
|
|
11
14
|
}
|
|
12
15
|
export interface OnboardImageComponentProps {
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type { NodeData } from '../../types/Node';
|
|
2
|
+
export type DisplayOptionType = 'flex' | 'block';
|
|
3
|
+
export type FlexDirectionOptionType = 'row' | 'column';
|
|
2
4
|
export interface OnboardItemPropsGenerated {
|
|
3
5
|
child: string;
|
|
4
6
|
attributes: {
|
|
5
|
-
display?:
|
|
7
|
+
display?: DisplayOptionType;
|
|
6
8
|
gap?: string;
|
|
7
|
-
flexDirection?:
|
|
9
|
+
flexDirection?: FlexDirectionOptionType;
|
|
8
10
|
paddingHorizontal?: string;
|
|
9
11
|
};
|
|
10
12
|
}
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
import type { NodeData } from '../../types/Node';
|
|
2
|
+
export type FontWeightOptionType = 'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
|
|
3
|
+
export type TextAlignOptionType = 'left' | 'center' | 'right' | 'justify';
|
|
4
|
+
export type FlexDirectionOptionType = 'row' | 'column';
|
|
5
|
+
export type AlignItemsOptionType = 'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline';
|
|
6
|
+
export type JustifyContentOptionType = 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
|
|
2
7
|
export interface OnboardSubtitlePropsGenerated {
|
|
3
8
|
child: string;
|
|
4
9
|
attributes: {
|
|
5
10
|
color?: string;
|
|
6
11
|
fontSize?: number;
|
|
7
|
-
fontWeight?:
|
|
8
|
-
textAlign?:
|
|
12
|
+
fontWeight?: FontWeightOptionType;
|
|
13
|
+
textAlign?: TextAlignOptionType;
|
|
9
14
|
scrollable?: boolean;
|
|
10
|
-
flexDirection?:
|
|
11
|
-
alignItems?:
|
|
12
|
-
justifyContent?:
|
|
15
|
+
flexDirection?: FlexDirectionOptionType;
|
|
16
|
+
alignItems?: AlignItemsOptionType;
|
|
17
|
+
justifyContent?: JustifyContentOptionType;
|
|
13
18
|
gap?: string;
|
|
14
19
|
padding?: number;
|
|
15
20
|
paddingHorizontal?: string;
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
import type { NodeData } from '../../types/Node';
|
|
2
|
+
export type FontWeightOptionType = 'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
|
|
3
|
+
export type TextAlignOptionType = 'left' | 'center' | 'right' | 'justify';
|
|
4
|
+
export type FlexDirectionOptionType = 'row' | 'column';
|
|
5
|
+
export type AlignItemsOptionType = 'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline';
|
|
6
|
+
export type JustifyContentOptionType = 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
|
|
2
7
|
export interface OnboardTitlePropsGenerated {
|
|
3
8
|
child: string;
|
|
4
9
|
attributes: {
|
|
5
10
|
color?: string;
|
|
6
11
|
fontSize?: number;
|
|
7
|
-
fontWeight?:
|
|
8
|
-
textAlign?:
|
|
12
|
+
fontWeight?: FontWeightOptionType;
|
|
13
|
+
textAlign?: TextAlignOptionType;
|
|
9
14
|
scrollable?: boolean;
|
|
10
|
-
flexDirection?:
|
|
11
|
-
alignItems?:
|
|
12
|
-
justifyContent?:
|
|
15
|
+
flexDirection?: FlexDirectionOptionType;
|
|
16
|
+
alignItems?: AlignItemsOptionType;
|
|
17
|
+
justifyContent?: JustifyContentOptionType;
|
|
13
18
|
gap?: string;
|
|
14
19
|
padding?: number;
|
|
15
20
|
paddingHorizontal?: string;
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import type { NodeData } from '../../types/Node';
|
|
2
|
+
export type FlexDirectionOptionType = 'row' | 'column';
|
|
3
|
+
export type AlignItemsOptionType = 'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline';
|
|
4
|
+
export type JustifyContentOptionType = 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
|
|
5
|
+
export type FontWeightOptionType = 'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
|
|
6
|
+
export type TextAlignOptionType = 'left' | 'center' | 'right' | 'justify';
|
|
2
7
|
export interface TextPropsGenerated {
|
|
3
8
|
child: string;
|
|
4
9
|
attributes: {
|
|
5
10
|
scrollable?: boolean;
|
|
6
|
-
flexDirection?:
|
|
7
|
-
alignItems?:
|
|
8
|
-
justifyContent?:
|
|
11
|
+
flexDirection?: FlexDirectionOptionType;
|
|
12
|
+
alignItems?: AlignItemsOptionType;
|
|
13
|
+
justifyContent?: JustifyContentOptionType;
|
|
9
14
|
gap?: string;
|
|
10
15
|
padding?: number;
|
|
11
16
|
paddingHorizontal?: string;
|
|
@@ -27,8 +32,8 @@ export interface TextPropsGenerated {
|
|
|
27
32
|
height?: number;
|
|
28
33
|
color?: string;
|
|
29
34
|
fontSize?: number;
|
|
30
|
-
fontWeight?:
|
|
31
|
-
textAlign?:
|
|
35
|
+
fontWeight?: FontWeightOptionType;
|
|
36
|
+
textAlign?: TextAlignOptionType;
|
|
32
37
|
};
|
|
33
38
|
}
|
|
34
39
|
export interface TextComponentProps {
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import type { NodeData } from '../../types/Node';
|
|
2
|
+
export type FlexDirectionOptionType = 'row' | 'column';
|
|
3
|
+
export type AlignItemsOptionType = 'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline';
|
|
4
|
+
export type JustifyContentOptionType = 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
|
|
2
5
|
export interface ViewPropsGenerated {
|
|
3
6
|
child: string;
|
|
4
7
|
attributes: {
|
|
5
8
|
scrollable?: boolean;
|
|
6
|
-
flexDirection?:
|
|
7
|
-
alignItems?:
|
|
8
|
-
justifyContent?:
|
|
9
|
+
flexDirection?: FlexDirectionOptionType;
|
|
10
|
+
alignItems?: AlignItemsOptionType;
|
|
11
|
+
justifyContent?: JustifyContentOptionType;
|
|
9
12
|
gap?: string;
|
|
10
13
|
padding?: number;
|
|
11
14
|
paddingHorizontal?: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { default as RenderNode } from './RenderNode.generated';
|
|
2
2
|
export { patterns } from './patterns.generated';
|
|
3
|
+
export declare const allcomponentNames: readonly ["button", "carousel", "carouselButtons", "carouselDots", "carouselItem", "carouselProvider", "image", "Onboard", "OnboardButton", "OnboardButtons", "OnboardDot", "OnboardFooter", "OnboardImage", "OnboardItem", "OnboardProvider", "OnboardSubtitle", "OnboardTitle", "text", "view"];
|
|
3
4
|
export type { ButtonPropsGenerated, ButtonComponentProps, } from './Button/ButtonProps.generated';
|
|
4
5
|
export type { CarouselPropsGenerated, CarouselComponentProps, } from './Carousel/CarouselProps.generated';
|
|
5
6
|
export type { CarouselButtonsPropsGenerated, CarouselButtonsComponentProps, } from './CarouselButtons/CarouselButtonsProps.generated';
|
|
@@ -96,8 +96,9 @@ export declare const patterns: readonly [{
|
|
|
96
96
|
readonly types: {
|
|
97
97
|
readonly EventObject: {
|
|
98
98
|
readonly type: readonly ["Permission", "Navigate"];
|
|
99
|
-
readonly permission: readonly ["att", "notification", "rating", "null"];
|
|
100
|
-
readonly navigate_to:
|
|
99
|
+
readonly permission: readonly ["att", "notification", "rating", "GDPR", "null"];
|
|
100
|
+
readonly navigate_to: "string";
|
|
101
|
+
readonly targetIndex: "number";
|
|
101
102
|
};
|
|
102
103
|
};
|
|
103
104
|
}, {
|
|
@@ -190,8 +191,12 @@ export declare const patterns: readonly [{
|
|
|
190
191
|
readonly height: "number";
|
|
191
192
|
readonly resizeMode: readonly ["cover", "contain", "stretch", "center"];
|
|
192
193
|
readonly borderRadius: "number";
|
|
194
|
+
readonly video_url: "string";
|
|
195
|
+
readonly lottie: "string";
|
|
193
196
|
};
|
|
194
197
|
};
|
|
198
|
+
readonly types: {};
|
|
199
|
+
readonly defaults: {};
|
|
195
200
|
}, {
|
|
196
201
|
readonly schemaVersion: 1;
|
|
197
202
|
readonly allowUnknownAttributes: false;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Node } from '..';
|
|
2
|
+
interface AttributesEditorPanelProps {
|
|
3
|
+
current: Node;
|
|
4
|
+
attributes: any;
|
|
5
|
+
onChange: (data: Node) => void;
|
|
6
|
+
setCurrent: (current: Node) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function AttributesEditorPanel({ current, attributes, onChange, setCurrent, }: AttributesEditorPanelProps): import("react/jsx-runtime").JSX.Element | null;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type BreadcrumbItem = {
|
|
3
|
+
label: string;
|
|
4
|
+
to?: string;
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
};
|
|
7
|
+
type BreadcrumbProps = {
|
|
8
|
+
items: BreadcrumbItem[];
|
|
9
|
+
separator?: ReactNode;
|
|
10
|
+
ariaLabel?: string;
|
|
11
|
+
};
|
|
12
|
+
export declare function Breadcrumb({ items, separator, ariaLabel, }: BreadcrumbProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Node } from '..';
|
|
2
|
+
type BuilderEditorProps = {
|
|
3
|
+
data: Node;
|
|
4
|
+
setData: (data: Node) => void;
|
|
5
|
+
current: Node;
|
|
6
|
+
setCurrent: (current: Node) => void;
|
|
7
|
+
};
|
|
8
|
+
export declare function Builder({ data, setData, current, setCurrent, }: BuilderEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Device, Node } from '..';
|
|
2
|
+
interface EditorHeaderProps {
|
|
3
|
+
onSaveProject?: () => void;
|
|
4
|
+
current?: Node;
|
|
5
|
+
editorData?: Node;
|
|
6
|
+
setEditorData?: (data: Node) => void;
|
|
7
|
+
}
|
|
8
|
+
interface DeviceButtonProps {
|
|
9
|
+
device: Device;
|
|
10
|
+
selectedDevice: Device | null;
|
|
11
|
+
setSelectedDevice: (device: Device) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare function DeviceButton({ device, selectedDevice, setSelectedDevice, }: DeviceButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare function EditorHeader({ onSaveProject, current, editorData, setEditorData, }: EditorHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|