@developer_tribe/react-builder 1.2.8 → 1.2.10
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/AttributesEditor.d.ts +2 -11
- package/dist/attribute-analyser/style/native/useExtractImageStyle.d.ts +10 -0
- package/dist/attribute-analyser/style/native/useExtractTextStyle.d.ts +9 -0
- package/dist/attribute-analyser/style/native/useExtractViewStyle.d.ts +8 -0
- package/dist/attribute-analyser/style/web/useExtractImageStyle.d.ts +4 -0
- package/dist/attribute-analyser/style/web/useExtractTextStyle.d.ts +4 -0
- package/dist/attribute-analyser/style/web/useExtractViewStyle.d.ts +4 -0
- package/dist/attributes-editor/AttributesEditorFields.d.ts +18 -0
- package/dist/attributes-editor/AttributesEditorView.d.ts +4 -0
- package/dist/attributes-editor/attributesEditorModelTypes.d.ts +67 -0
- package/dist/attributes-editor/attributesEditorUtils.d.ts +19 -0
- package/dist/attributes-editor/useAttributesEditorModel.d.ts +2 -0
- package/dist/build-components/BIcon/BIconProps.generated.d.ts +6 -6
- package/dist/build-components/BackgroundImage/BackgroundImageProps.generated.d.ts +3 -3
- package/dist/build-components/Button/ButtonProps.generated.d.ts +1 -1
- package/dist/build-components/Carousel/CarouselProps.generated.d.ts +2 -2
- package/dist/build-components/CarouselButtons/CarouselButtonsProps.generated.d.ts +4 -4
- package/dist/build-components/CarouselDots/CarouselDotsProps.generated.d.ts +3 -3
- package/dist/build-components/CarouselItem/CarouselItemProps.generated.d.ts +1 -1
- package/dist/build-components/CarouselProvider/CarouselProviderProps.generated.d.ts +1 -1
- package/dist/build-components/Image/ImageProps.generated.d.ts +5 -3
- package/dist/build-components/Main/MainProps.generated.d.ts +2 -2
- package/dist/build-components/Onboard/OnboardProps.generated.d.ts +1 -1
- package/dist/build-components/OnboardButton/OnboardButtonProps.generated.d.ts +9 -8
- package/dist/build-components/OnboardButtons/OnboardButtonsProps.generated.d.ts +11 -11
- package/dist/build-components/OnboardDot/OnboardDotProps.generated.d.ts +15 -9
- package/dist/build-components/OnboardFooter/OnboardFooterProps.generated.d.ts +10 -10
- package/dist/build-components/OnboardImage/OnboardImageProps.generated.d.ts +8 -6
- package/dist/build-components/OnboardItem/OnboardItemProps.generated.d.ts +6 -3
- package/dist/build-components/OnboardProvider/OnboardProviderProps.generated.d.ts +5 -4
- package/dist/build-components/OnboardSubtitle/OnboardSubtitleProps.generated.d.ts +3 -3
- package/dist/build-components/OnboardTitle/OnboardTitleProps.generated.d.ts +3 -3
- package/dist/build-components/PaywallBackground/PaywallBackgroundProps.generated.d.ts +1 -1
- package/dist/build-components/PaywallCloseButton/PaywallCloseButtonProps.generated.d.ts +6 -6
- package/dist/build-components/PaywallOptions/PaywallOptionsProps.generated.d.ts +1 -1
- package/dist/build-components/PaywallProvider/PaywallProviderProps.generated.d.ts +1 -1
- package/dist/build-components/PaywallSubscribeButton/PaywallSubscribeButtonProps.generated.d.ts +1 -1
- package/dist/build-components/RadioButton/RadioButtonProps.generated.d.ts +4 -4
- package/dist/build-components/Text/TextProps.generated.d.ts +3 -3
- package/dist/build-components/View/ViewProps.generated.d.ts +1 -1
- package/dist/build-components/patterns.generated.d.ts +2690 -5804
- package/dist/index.cjs.js +5 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +5 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/index.native.cjs.js +6 -4
- package/dist/index.native.cjs.js.map +1 -1
- package/dist/index.native.d.ts +5 -6
- package/dist/index.native.esm.js +6 -4
- package/dist/index.native.esm.js.map +1 -1
- package/dist/migrations/migratePipe.d.ts +1 -1
- package/dist/migrations/migrations/1.1.2_extract_component_attributes_from_style.d.ts +2 -0
- package/dist/mockOS/components/PermissionModal.d.ts +1 -2
- package/dist/styles.css +1 -1
- package/dist/types/PreviewConfig.d.ts +1 -5
- package/dist/utils/getMeta.d.ts +5 -0
- package/dist/utils/patterns.d.ts +12 -0
- package/package.json +4 -2
- package/scripts/prebuild/prebuild.js +14 -0
- package/scripts/prebuild/utils/createGeneratedProps.js +19 -13
- package/scripts/prebuild/utils/index.js +1 -0
- package/scripts/prebuild/utils/updateMetaJson.js +66 -0
- package/scripts/prebuild/utils/validateAllComponentsOrThrow.js +37 -3
- package/scripts/prebuild/utils/validatePatternJson.js +27 -2
- package/scripts/public/scripts/build/index.js +20 -3
- package/scripts/public/scripts/build/info.json +6 -0
- package/scripts/public/scripts/build/utils/createComponentsIndex.js +9 -3
- package/scripts/public/scripts/build/utils/createRenderNodeGenerated.js +66 -8
- package/src/AttributesEditor.tsx +8 -944
- package/src/assets/meta.json +4 -0
- package/src/assets/samples/carousel-sample.json +1 -1
- package/src/assets/samples/getSamples.ts +2 -0
- package/src/assets/samples/paywall-1.json +11 -7
- package/src/assets/samples/simple-1.json +3 -3
- package/src/assets/samples/simple-2.json +3 -3
- package/src/assets/samples/unmigrated-builder-1.1.1.json +87 -0
- package/src/assets/samples/unmigrated-builder1.json +1 -1
- package/src/assets/samples/unvalidated-builder1.json +3 -3
- package/src/assets/samples/unvalidated-crash1.json +1 -1
- package/src/assets/samples/unvalidated-crashcomponent1.json +1 -1
- package/src/assets/samples/vpn-onboard-1.json +1 -1
- package/src/assets/samples/vpn-onboard-2.json +1 -1
- package/src/assets/samples/vpn-onboard-3.json +1 -1
- package/src/assets/samples/vpn-onboard-4.json +1 -1
- package/src/assets/samples/vpn-onboard-5.json +1 -1
- package/src/assets/samples/vpn-onboard-6.json +1 -1
- package/src/attribute-analyser/style/native/useExtractImageStyle.ts +46 -0
- package/src/attribute-analyser/style/native/useExtractTextStyle.ts +50 -0
- package/src/attribute-analyser/style/native/useExtractViewStyle.ts +32 -0
- package/src/attribute-analyser/style/web/useExtractImageStyle.ts +20 -0
- package/src/attribute-analyser/style/web/useExtractTextStyle.ts +27 -0
- package/src/attribute-analyser/style/web/useExtractViewStyle.ts +20 -0
- package/src/attributes-editor/AttributesEditorFields.tsx +248 -0
- package/src/attributes-editor/AttributesEditorView.tsx +360 -0
- package/src/attributes-editor/attributesEditorModelTypes.ts +86 -0
- package/src/attributes-editor/attributesEditorUtils.ts +102 -0
- package/src/attributes-editor/useAttributesEditorModel.ts +477 -0
- package/src/build-components/BIcon/BIcon.tsx +4 -4
- package/src/build-components/BIcon/BIconProps.generated.ts +6 -6
- package/src/build-components/BIcon/pattern.json +5 -6
- package/src/build-components/BackgroundImage/BackgroundImage.tsx +3 -2
- package/src/build-components/BackgroundImage/BackgroundImageProps.generated.ts +3 -3
- package/src/build-components/Button/Button.tsx +2 -2
- package/src/build-components/Button/ButtonProps.generated.ts +1 -1
- package/src/build-components/Button/pattern.json +17 -15
- package/src/build-components/Carousel/Carousel.tsx +1 -1
- package/src/build-components/Carousel/CarouselProps.generated.ts +2 -2
- package/src/build-components/CarouselButtons/CarouselButtons.tsx +4 -7
- package/src/build-components/CarouselButtons/CarouselButtonsProps.generated.ts +7 -7
- package/src/build-components/CarouselButtons/pattern.json +2 -1
- package/src/build-components/CarouselDots/CarouselDots.tsx +2 -2
- package/src/build-components/CarouselDots/CarouselDotsProps.generated.ts +9 -9
- package/src/build-components/CarouselItem/CarouselItem.tsx +1 -1
- package/src/build-components/CarouselItem/CarouselItemProps.generated.ts +1 -1
- package/src/build-components/CarouselProvider/CarouselProvider.tsx +1 -1
- package/src/build-components/CarouselProvider/CarouselProviderProps.generated.ts +1 -1
- package/src/build-components/Image/Image.tsx +1 -1
- package/src/build-components/Image/ImageProps.generated.ts +5 -3
- package/src/build-components/Image/pattern.json +10 -9
- package/src/build-components/Main/Main.tsx +2 -2
- package/src/build-components/Main/MainProps.generated.ts +2 -2
- package/src/build-components/Main/pattern.json +2 -1
- package/src/build-components/Onboard/OnboardProps.generated.ts +1 -1
- package/src/build-components/OnboardButton/OnboardButton.tsx +7 -6
- package/src/build-components/OnboardButton/OnboardButtonProps.generated.ts +14 -13
- package/src/build-components/OnboardButton/pattern.json +9 -7
- package/src/build-components/OnboardButtons/OnboardButtons.tsx +31 -31
- package/src/build-components/OnboardButtons/OnboardButtonsProps.generated.ts +14 -14
- package/src/build-components/OnboardButtons/pattern.json +9 -7
- package/src/build-components/OnboardDot/OnboardDot.tsx +7 -6
- package/src/build-components/OnboardDot/OnboardDotProps.generated.ts +26 -9
- package/src/build-components/OnboardFooter/OnboardFooter.tsx +17 -16
- package/src/build-components/OnboardFooter/OnboardFooterProps.generated.ts +10 -10
- package/src/build-components/OnboardFooter/pattern.json +16 -14
- package/src/build-components/OnboardImage/OnboardImage.tsx +8 -8
- package/src/build-components/OnboardImage/OnboardImageProps.generated.ts +8 -6
- package/src/build-components/OnboardImage/pattern.json +2 -1
- package/src/build-components/OnboardItem/OnboardItem.tsx +1 -1
- package/src/build-components/OnboardItem/OnboardItemProps.generated.ts +6 -3
- package/src/build-components/OnboardItem/pattern.json +2 -1
- package/src/build-components/OnboardProvider/OnboardProvider.tsx +1 -1
- package/src/build-components/OnboardProvider/OnboardProviderProps.generated.ts +5 -4
- package/src/build-components/OnboardProvider/pattern.json +2 -1
- package/src/build-components/OnboardSubtitle/OnboardSubtitleProps.generated.ts +3 -3
- package/src/build-components/OnboardTitle/OnboardTitleProps.generated.ts +3 -3
- package/src/build-components/PaywallBackground/PaywallBackground.tsx +1 -1
- package/src/build-components/PaywallBackground/PaywallBackgroundProps.generated.ts +1 -1
- package/src/build-components/PaywallCloseButton/PaywallCloseButton.tsx +5 -4
- package/src/build-components/PaywallCloseButton/PaywallCloseButtonProps.generated.ts +6 -6
- package/src/build-components/PaywallOptions/PaywallOptionButton.tsx +1 -1
- package/src/build-components/PaywallOptions/PaywallOptionsProps.generated.ts +1 -1
- package/src/build-components/PaywallProvider/PaywallProvider.tsx +1 -1
- package/src/build-components/PaywallProvider/PaywallProviderProps.generated.ts +1 -1
- package/src/build-components/PaywallSubscribeButton/PaywallSubscribeButton.tsx +1 -1
- package/src/build-components/PaywallSubscribeButton/PaywallSubscribeButtonProps.generated.ts +1 -1
- package/src/build-components/RadioButton/RadioButton.tsx +5 -5
- package/src/build-components/RadioButton/RadioButtonProps.generated.ts +4 -4
- package/src/build-components/RadioButton/pattern.json +9 -7
- package/src/build-components/Text/Text.tsx +6 -6
- package/src/build-components/Text/TextProps.generated.ts +3 -3
- package/src/build-components/Text/pattern.json +15 -11
- package/src/build-components/View/View.tsx +1 -1
- package/src/build-components/View/ViewProps.generated.ts +1 -1
- package/src/build-components/View/pattern.json +71 -66
- package/src/build-components/patterns.generated.ts +3059 -6008
- package/src/components/AttributesEditorPanel.tsx +2 -2
- package/src/index.native.ts +6 -9
- package/src/index.ts +1 -0
- package/src/migrations/migratePipe.ts +7 -3
- package/src/migrations/migrations/1.1.2_extract_component_attributes_from_style.ts +211 -0
- package/src/mockOS/components/MockOSRouter.tsx +3 -1
- package/src/mockOS/components/PermissionModal.tsx +20 -160
- package/src/mockOS/components/SubscriptionModal.tsx +41 -278
- package/src/pages/ProjectPage.tsx +12 -6
- package/src/styles/components/_attributes-editor.scss +122 -0
- package/src/styles/components/_mockos-router.scss +388 -0
- package/src/styles/components/_onboard.scss +23 -0
- package/src/styles/index.scss +1 -0
- package/src/types/PreviewConfig.ts +1 -5
- package/src/utils/analyseNodeByPatterns.ts +39 -4
- package/src/utils/extractTextStyle/extractTextStyle.ts +4 -1
- package/src/utils/getMeta.ts +15 -0
- package/src/utils/patterns.ts +47 -4
- package/dist/hooks/useExtractImageStyle.d.ts +0 -5
- package/dist/hooks/useExtractTextStyle.d.ts +0 -3
- package/dist/hooks/useExtractViewStyle.d.ts +0 -3
- package/dist/migrations/migrations/1.1.0_normalize_style_attributes.d.ts +0 -2
- package/src/hooks/useExtractImageStyle.ts +0 -30
- package/src/hooks/useExtractTextStyle.ts +0 -34
- package/src/hooks/useExtractViewStyle.ts +0 -30
- package/src/migrations/migrations/1.1.0_normalize_style_attributes.ts +0 -80
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import type { ProjectColors } from './types/Project';
|
|
4
|
-
type AttributesEditorProps = {
|
|
5
|
-
node: Node;
|
|
6
|
-
onChange: (next: Node) => void;
|
|
7
|
-
projectColors?: ProjectColors;
|
|
8
|
-
};
|
|
9
|
-
export declare function AttributesEditor({ node, onChange, projectColors, }: AttributesEditorProps): import("react/jsx-runtime").JSX.Element | null;
|
|
10
|
-
declare const _default: React.MemoExoticComponent<typeof AttributesEditor>;
|
|
11
|
-
export default _default;
|
|
1
|
+
import type { AttributesEditorProps } from './attributes-editor/attributesEditorModelTypes';
|
|
2
|
+
export declare function AttributesEditor(props: AttributesEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { NodeData } from '../../../types/Node';
|
|
2
|
+
import type { ImagePropsGenerated } from '../../../build-components/Image/ImageProps.generated';
|
|
3
|
+
export declare function useExtractImageStyle<T extends ImagePropsGenerated['attributes']>(node: NodeData<T>): {
|
|
4
|
+
style: {
|
|
5
|
+
[x: string]: unknown;
|
|
6
|
+
};
|
|
7
|
+
other: {
|
|
8
|
+
resizeMode: "cover" | "contain" | "stretch" | "center" | undefined;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { NodeData } from '../../../types/Node';
|
|
2
|
+
import type { TextPropsGenerated } from '../../../build-components/Text/TextProps.generated';
|
|
3
|
+
export declare function useExtractTextStyle<T extends TextPropsGenerated['attributes']>(node: NodeData<T>): {
|
|
4
|
+
style: Record<string, unknown>;
|
|
5
|
+
other: {
|
|
6
|
+
adjustsFontSizeToFit: boolean | undefined;
|
|
7
|
+
showEllipsis: boolean | undefined;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { NodeData } from '../../../types/Node';
|
|
2
|
+
import type { ViewPropsGenerated } from '../../../build-components/View/ViewProps.generated';
|
|
3
|
+
export declare function useExtractViewStyle<T extends ViewPropsGenerated['attributes']>(node: NodeData<T>): {
|
|
4
|
+
style: Record<string, unknown>;
|
|
5
|
+
other: {
|
|
6
|
+
scrollable: boolean | undefined;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CSSProperties } from 'react';
|
|
2
|
+
import type { NodeData } from '../../../types/Node';
|
|
3
|
+
import type { ImagePropsGenerated } from '../../../build-components/Image/ImageProps.generated';
|
|
4
|
+
export declare function useExtractImageStyle<T extends ImagePropsGenerated['attributes']>(node: NodeData<T>): CSSProperties;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CSSProperties } from 'react';
|
|
2
|
+
import type { NodeData } from '../../../types/Node';
|
|
3
|
+
import type { TextPropsGenerated } from '../../../build-components/Text/TextProps.generated';
|
|
4
|
+
export declare function useExtractTextStyle<T extends TextPropsGenerated['attributes']>(node: NodeData<T>): CSSProperties;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CSSProperties } from 'react';
|
|
2
|
+
import type { NodeData } from '../../../types/Node';
|
|
3
|
+
import type { ViewPropsGenerated } from '../../../build-components/View/ViewProps.generated';
|
|
4
|
+
export declare function useExtractViewStyle<T extends ViewPropsGenerated['attributes']>(node: NodeData<T>): CSSProperties;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Fonts } from '../types/Fonts';
|
|
2
|
+
type IconTypePickerFieldProps = {
|
|
3
|
+
name: string;
|
|
4
|
+
value: unknown;
|
|
5
|
+
onChange: (next: unknown) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare function IconTypePickerField({ name, value, onChange, }: IconTypePickerFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
type FontFamilyPickerFieldProps = {
|
|
9
|
+
name: string;
|
|
10
|
+
value: unknown;
|
|
11
|
+
onChange: (next: unknown) => void;
|
|
12
|
+
fonts: Fonts;
|
|
13
|
+
loadedFonts: string[] | undefined;
|
|
14
|
+
markFontLoaded: (fontFamily: string) => void;
|
|
15
|
+
addError: (message: string) => void;
|
|
16
|
+
};
|
|
17
|
+
export declare function FontFamilyPickerField({ name, value, onChange, fonts, loadedFonts, markFontLoaded, addError, }: FontFamilyPickerFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { AttributesEditorModel } from './attributesEditorModelTypes';
|
|
2
|
+
type AttributesEditorViewProps = AttributesEditorModel;
|
|
3
|
+
export declare function AttributesEditorView(props: AttributesEditorViewProps): import("react/jsx-runtime").JSX.Element | null;
|
|
4
|
+
export {};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { Node, NodeData, NodeDefaultAttribute } from '../types/Node';
|
|
2
|
+
import type { ProjectColors } from '../types/Project';
|
|
3
|
+
import type { ViewPropsGenerated } from '../build-components/View/ViewProps.generated';
|
|
4
|
+
import type { Fonts } from '../types/Fonts';
|
|
5
|
+
import type { LayoutContext, SchemaEntry } from './types';
|
|
6
|
+
export type TabId = 'style' | 'container' | 'other';
|
|
7
|
+
export type AttributesEditorProps = {
|
|
8
|
+
node: Node;
|
|
9
|
+
onChange: (next: Node) => void;
|
|
10
|
+
projectColors?: ProjectColors;
|
|
11
|
+
};
|
|
12
|
+
export type AttributesEditorTabConfig = {
|
|
13
|
+
id: TabId;
|
|
14
|
+
label: string;
|
|
15
|
+
entries: SchemaEntry[];
|
|
16
|
+
};
|
|
17
|
+
export type AttributesEditorSpecialSection = {
|
|
18
|
+
key: string;
|
|
19
|
+
entries: SchemaEntry[];
|
|
20
|
+
meta?: {
|
|
21
|
+
label?: string;
|
|
22
|
+
description?: string;
|
|
23
|
+
sort?: number;
|
|
24
|
+
category?: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export type TabContentInfo = Record<TabId, {
|
|
28
|
+
baseCount: number;
|
|
29
|
+
specialCount: number;
|
|
30
|
+
}>;
|
|
31
|
+
export type AttributesEditorModel = {
|
|
32
|
+
isInvalidNode: boolean;
|
|
33
|
+
baseData: NodeData<NodeDefaultAttribute>;
|
|
34
|
+
data: NodeData<NodeDefaultAttribute>;
|
|
35
|
+
appConfig: unknown;
|
|
36
|
+
projectFonts: Fonts;
|
|
37
|
+
loadedFonts: string[] | undefined;
|
|
38
|
+
markFontLoaded: (fontFamily: string) => void;
|
|
39
|
+
addError: (message: string) => void;
|
|
40
|
+
schema: Record<string, unknown>;
|
|
41
|
+
attributeMeta?: Record<string, any>;
|
|
42
|
+
componentTitle: string;
|
|
43
|
+
componentDescription?: string;
|
|
44
|
+
patternForType?: any;
|
|
45
|
+
componentMeta?: any;
|
|
46
|
+
attributes: NodeDefaultAttribute;
|
|
47
|
+
styleBag?: Record<string, unknown>;
|
|
48
|
+
projectColorsForPicker?: ProjectColors;
|
|
49
|
+
viewAttributes?: Partial<ViewPropsGenerated['attributes']>;
|
|
50
|
+
layoutContext: LayoutContext;
|
|
51
|
+
getAttributeValue: (name: string) => unknown;
|
|
52
|
+
handleAttributeChange: (name: string, val: unknown) => void;
|
|
53
|
+
handleChildrenChange: (val: string) => void;
|
|
54
|
+
tabs: AttributesEditorTabConfig[];
|
|
55
|
+
tabContentInfo: TabContentInfo;
|
|
56
|
+
firstAvailableTab: TabId;
|
|
57
|
+
activeTab: TabId;
|
|
58
|
+
setActiveTab: (next: TabId) => void;
|
|
59
|
+
activeEntries: SchemaEntry[];
|
|
60
|
+
specialSectionsByTab: Record<TabId, AttributesEditorSpecialSection[]>;
|
|
61
|
+
activeSpecialSections: AttributesEditorSpecialSection[];
|
|
62
|
+
mockableFeatureKeys: string[];
|
|
63
|
+
activeMockableFeature: string | null;
|
|
64
|
+
setActiveMockableFeature: (next: string | null) => void;
|
|
65
|
+
hasStringChildren: boolean;
|
|
66
|
+
childrenValue: string;
|
|
67
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { NodeDefaultAttribute } from '../types/Node';
|
|
2
|
+
import type { SchemaEntry } from './types';
|
|
3
|
+
export type StyleBagSource = 'styles' | 'style' | 'none';
|
|
4
|
+
export declare function getStyleBagSourceAndValue(attributes: NodeDefaultAttribute): {
|
|
5
|
+
source: StyleBagSource;
|
|
6
|
+
styleBag?: Record<string, unknown>;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Flattens schemaVersion=2 nested style schemas (under schema.style or schema.styles)
|
|
10
|
+
* into plain entries so the editor can list them as individual fields.
|
|
11
|
+
*
|
|
12
|
+
* Note: we intentionally exclude the raw `style` / `styles` keys themselves, because
|
|
13
|
+
* Field.tsx does not render object specs (---not-implemented----).
|
|
14
|
+
*/
|
|
15
|
+
export declare function buildAttributesEditorEntries(schema: Record<string, unknown>, attributeMeta?: Record<string, {
|
|
16
|
+
category?: string;
|
|
17
|
+
}>): SchemaEntry[];
|
|
18
|
+
export declare function isValidStyleBagValue(attributes: NodeDefaultAttribute): boolean;
|
|
19
|
+
export declare function findLegacyFlatStyleKeys(attributes: NodeDefaultAttribute, isStyleKeyForWrite: (name: string) => boolean): string[];
|
|
@@ -10,9 +10,6 @@ export interface BIconStyleGenerated {
|
|
|
10
10
|
fontFamily?: string;
|
|
11
11
|
fontWeight?: string;
|
|
12
12
|
textAlign?: TextAlignOptionType;
|
|
13
|
-
adjustsFontSizeToFit?: boolean;
|
|
14
|
-
showEllipsis?: boolean;
|
|
15
|
-
scrollable?: boolean;
|
|
16
13
|
flexDirection?: FlexDirectionOptionType;
|
|
17
14
|
alignItems?: AlignItemsOptionType;
|
|
18
15
|
justifyContent?: JustifyContentOptionType;
|
|
@@ -46,14 +43,17 @@ export interface BIconStyleGenerated {
|
|
|
46
43
|
left?: string;
|
|
47
44
|
right?: string;
|
|
48
45
|
zIndex?: number;
|
|
49
|
-
iconType?: string;
|
|
50
|
-
size?: number;
|
|
51
|
-
strokeWidth?: number;
|
|
52
46
|
}
|
|
53
47
|
export interface BIconPropsGenerated {
|
|
54
48
|
child: string;
|
|
55
49
|
attributes: {
|
|
56
50
|
style?: BIconStyleGenerated;
|
|
51
|
+
adjustsFontSizeToFit?: boolean;
|
|
52
|
+
showEllipsis?: boolean;
|
|
53
|
+
scrollable?: boolean;
|
|
54
|
+
iconType?: string;
|
|
55
|
+
size?: number;
|
|
56
|
+
strokeWidth?: number;
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
export interface BIconComponentProps {
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import type { NodeData } from '../../types/Node';
|
|
2
|
+
export type ResizeModeOptionType = 'cover' | 'contain' | 'stretch' | 'center';
|
|
2
3
|
export type FlexDirectionOptionType = 'row' | 'column';
|
|
3
4
|
export type AlignItemsOptionType = 'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline';
|
|
4
5
|
export type JustifyContentOptionType = 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
|
|
5
6
|
export type PositionOptionType = 'relative' | 'absolute';
|
|
6
|
-
export type ResizeModeOptionType = 'cover' | 'contain' | 'stretch' | 'center';
|
|
7
7
|
export interface BackgroundImageStyleGenerated {
|
|
8
|
-
scrollable?: boolean;
|
|
9
8
|
flexDirection?: FlexDirectionOptionType;
|
|
10
9
|
alignItems?: AlignItemsOptionType;
|
|
11
10
|
justifyContent?: JustifyContentOptionType;
|
|
@@ -39,13 +38,14 @@ export interface BackgroundImageStyleGenerated {
|
|
|
39
38
|
left?: string;
|
|
40
39
|
right?: string;
|
|
41
40
|
zIndex?: number;
|
|
42
|
-
resizeMode?: ResizeModeOptionType;
|
|
43
41
|
}
|
|
44
42
|
export interface BackgroundImagePropsGenerated {
|
|
45
43
|
child: string;
|
|
46
44
|
attributes: {
|
|
47
45
|
style?: BackgroundImageStyleGenerated;
|
|
46
|
+
scrollable?: boolean;
|
|
48
47
|
src?: string;
|
|
48
|
+
resizeMode?: ResizeModeOptionType;
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
51
|
export interface BackgroundImageComponentProps {
|
|
@@ -5,7 +5,6 @@ export type JustifyContentOptionType = 'flex-start' | 'center' | 'flex-end' | 's
|
|
|
5
5
|
export type PositionOptionType = 'relative' | 'absolute';
|
|
6
6
|
export type FontWeightOptionType = 'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
|
|
7
7
|
export interface ButtonStyleGenerated {
|
|
8
|
-
scrollable?: boolean;
|
|
9
8
|
flexDirection?: FlexDirectionOptionType;
|
|
10
9
|
alignItems?: AlignItemsOptionType;
|
|
11
10
|
justifyContent?: JustifyContentOptionType;
|
|
@@ -47,6 +46,7 @@ export interface ButtonPropsGenerated {
|
|
|
47
46
|
child: string;
|
|
48
47
|
attributes: {
|
|
49
48
|
style?: ButtonStyleGenerated;
|
|
49
|
+
scrollable?: boolean;
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
52
|
export interface ButtonComponentProps {
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import type { NodeData } from '../../types/Node';
|
|
2
|
+
export type AlignOptionType = 'start' | 'center' | 'end';
|
|
2
3
|
export type FlexDirectionOptionType = 'row' | 'column';
|
|
3
4
|
export type AlignItemsOptionType = 'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline';
|
|
4
5
|
export type JustifyContentOptionType = 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
|
|
5
6
|
export type PositionOptionType = 'relative' | 'absolute';
|
|
6
|
-
export type AlignOptionType = 'start' | 'center' | 'end';
|
|
7
7
|
export interface CarouselStyleGenerated {
|
|
8
|
-
scrollable?: boolean;
|
|
9
8
|
flexDirection?: FlexDirectionOptionType;
|
|
10
9
|
alignItems?: AlignItemsOptionType;
|
|
11
10
|
justifyContent?: JustifyContentOptionType;
|
|
@@ -44,6 +43,7 @@ export interface CarouselPropsGenerated {
|
|
|
44
43
|
child: string;
|
|
45
44
|
attributes: {
|
|
46
45
|
style?: CarouselStyleGenerated;
|
|
46
|
+
scrollable?: boolean;
|
|
47
47
|
loop?: boolean;
|
|
48
48
|
dragFree?: boolean;
|
|
49
49
|
align?: AlignOptionType;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import type { NodeData } from '../../types/Node';
|
|
2
|
+
export type ButtonTypeOptionType = 'previous_button' | 'next_button' | 'skip_button';
|
|
2
3
|
export type FlexDirectionOptionType = 'row' | 'column';
|
|
3
4
|
export type AlignItemsOptionType = 'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline';
|
|
4
5
|
export type JustifyContentOptionType = 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
|
|
5
6
|
export type PositionOptionType = 'relative' | 'absolute';
|
|
6
|
-
export type ButtonTypeOptionType = 'previous_button' | 'next_button' | 'skip_button';
|
|
7
7
|
export interface CarouselButtonsStyleGenerated {
|
|
8
|
-
scrollable?: boolean;
|
|
9
8
|
flexDirection?: FlexDirectionOptionType;
|
|
10
9
|
alignItems?: AlignItemsOptionType;
|
|
11
10
|
justifyContent?: JustifyContentOptionType;
|
|
@@ -39,13 +38,14 @@ export interface CarouselButtonsStyleGenerated {
|
|
|
39
38
|
left?: string;
|
|
40
39
|
right?: string;
|
|
41
40
|
zIndex?: number;
|
|
42
|
-
buttonType?: ButtonTypeOptionType;
|
|
43
|
-
skipNumber?: number;
|
|
44
41
|
}
|
|
45
42
|
export interface CarouselButtonsPropsGenerated {
|
|
46
43
|
child: string;
|
|
47
44
|
attributes: {
|
|
48
45
|
style?: CarouselButtonsStyleGenerated;
|
|
46
|
+
scrollable?: boolean;
|
|
47
|
+
buttonType?: ButtonTypeOptionType;
|
|
48
|
+
skipNumber?: number;
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
51
|
export interface CarouselButtonsComponentProps {
|
|
@@ -1,11 +1,10 @@
|
|
|
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 type FlexDirectionOptionType = 'row' | 'column';
|
|
3
4
|
export type AlignItemsOptionType = 'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline';
|
|
4
5
|
export type JustifyContentOptionType = 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
|
|
5
6
|
export type PositionOptionType = 'relative' | 'absolute';
|
|
6
|
-
export type DotTypeOptionType = 'expanding_dot' | 'normal_dot' | 'scaling_dot' | 'sliding_border' | 'sliding_dot' | 'liquid_like';
|
|
7
7
|
export interface CarouselDotsStyleGenerated {
|
|
8
|
-
scrollable?: boolean;
|
|
9
8
|
flexDirection?: FlexDirectionOptionType;
|
|
10
9
|
alignItems?: AlignItemsOptionType;
|
|
11
10
|
justifyContent?: JustifyContentOptionType;
|
|
@@ -39,12 +38,13 @@ export interface CarouselDotsStyleGenerated {
|
|
|
39
38
|
left?: string;
|
|
40
39
|
right?: string;
|
|
41
40
|
zIndex?: number;
|
|
42
|
-
dotType?: DotTypeOptionType;
|
|
43
41
|
}
|
|
44
42
|
export interface CarouselDotsPropsGenerated {
|
|
45
43
|
child: string;
|
|
46
44
|
attributes: {
|
|
47
45
|
style?: CarouselDotsStyleGenerated;
|
|
46
|
+
scrollable?: boolean;
|
|
47
|
+
dotType?: DotTypeOptionType;
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
50
|
export interface CarouselDotsComponentProps {
|
|
@@ -4,7 +4,6 @@ export type AlignItemsOptionType = 'flex-start' | 'center' | 'flex-end' | 'stret
|
|
|
4
4
|
export type JustifyContentOptionType = 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
|
|
5
5
|
export type PositionOptionType = 'relative' | 'absolute';
|
|
6
6
|
export interface CarouselItemStyleGenerated {
|
|
7
|
-
scrollable?: boolean;
|
|
8
7
|
flexDirection?: FlexDirectionOptionType;
|
|
9
8
|
alignItems?: AlignItemsOptionType;
|
|
10
9
|
justifyContent?: JustifyContentOptionType;
|
|
@@ -43,6 +42,7 @@ export interface CarouselItemPropsGenerated {
|
|
|
43
42
|
child: string;
|
|
44
43
|
attributes: {
|
|
45
44
|
style?: CarouselItemStyleGenerated;
|
|
45
|
+
scrollable?: boolean;
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
48
|
export interface CarouselItemComponentProps {
|
|
@@ -4,7 +4,6 @@ export type AlignItemsOptionType = 'flex-start' | 'center' | 'flex-end' | 'stret
|
|
|
4
4
|
export type JustifyContentOptionType = 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
|
|
5
5
|
export type PositionOptionType = 'relative' | 'absolute';
|
|
6
6
|
export interface CarouselProviderStyleGenerated {
|
|
7
|
-
scrollable?: boolean;
|
|
8
7
|
flexDirection?: FlexDirectionOptionType;
|
|
9
8
|
alignItems?: AlignItemsOptionType;
|
|
10
9
|
justifyContent?: JustifyContentOptionType;
|
|
@@ -43,6 +42,7 @@ export interface CarouselProviderPropsGenerated {
|
|
|
43
42
|
child: string;
|
|
44
43
|
attributes: {
|
|
45
44
|
style?: CarouselProviderStyleGenerated;
|
|
45
|
+
scrollable?: boolean;
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
48
|
export interface CarouselProviderComponentProps {
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import type { NodeData } from '../../types/Node';
|
|
2
|
+
export type ResizeModeOptionType = 'cover' | 'contain' | 'stretch' | 'center';
|
|
2
3
|
export type FlexDirectionOptionType = 'row' | 'column';
|
|
3
4
|
export type AlignItemsOptionType = 'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline';
|
|
4
5
|
export type JustifyContentOptionType = 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
|
|
5
6
|
export type PositionOptionType = 'relative' | 'absolute';
|
|
6
|
-
export type ResizeModeOptionType = 'cover' | 'contain' | 'stretch' | 'center';
|
|
7
7
|
export interface ImageStyleGenerated {
|
|
8
|
-
scrollable?: boolean;
|
|
9
8
|
flexDirection?: FlexDirectionOptionType;
|
|
10
9
|
alignItems?: AlignItemsOptionType;
|
|
11
10
|
justifyContent?: JustifyContentOptionType;
|
|
@@ -39,13 +38,16 @@ export interface ImageStyleGenerated {
|
|
|
39
38
|
left?: string;
|
|
40
39
|
right?: string;
|
|
41
40
|
zIndex?: number;
|
|
42
|
-
resizeMode?: ResizeModeOptionType;
|
|
43
41
|
}
|
|
44
42
|
export interface ImagePropsGenerated {
|
|
45
43
|
child: string;
|
|
46
44
|
attributes: {
|
|
47
45
|
style?: ImageStyleGenerated;
|
|
46
|
+
scrollable?: boolean;
|
|
48
47
|
src?: string;
|
|
48
|
+
width?: string;
|
|
49
|
+
height?: string;
|
|
50
|
+
resizeMode?: ResizeModeOptionType;
|
|
49
51
|
};
|
|
50
52
|
}
|
|
51
53
|
export interface ImageComponentProps {
|
|
@@ -4,7 +4,6 @@ export type AlignItemsOptionType = 'flex-start' | 'center' | 'flex-end' | 'stret
|
|
|
4
4
|
export type JustifyContentOptionType = 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
|
|
5
5
|
export type PositionOptionType = 'relative' | 'absolute';
|
|
6
6
|
export interface MainStyleGenerated {
|
|
7
|
-
scrollable?: boolean;
|
|
8
7
|
flexDirection?: FlexDirectionOptionType;
|
|
9
8
|
alignItems?: AlignItemsOptionType;
|
|
10
9
|
justifyContent?: JustifyContentOptionType;
|
|
@@ -38,12 +37,13 @@ export interface MainStyleGenerated {
|
|
|
38
37
|
left?: string;
|
|
39
38
|
right?: string;
|
|
40
39
|
zIndex?: number;
|
|
41
|
-
useSafeAreaView?: boolean;
|
|
42
40
|
}
|
|
43
41
|
export interface MainPropsGenerated {
|
|
44
42
|
child: string;
|
|
45
43
|
attributes: {
|
|
46
44
|
style?: MainStyleGenerated;
|
|
45
|
+
scrollable?: boolean;
|
|
46
|
+
useSafeAreaView?: boolean;
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
49
|
export interface MainComponentProps {
|
|
@@ -4,7 +4,6 @@ export type AlignItemsOptionType = 'flex-start' | 'center' | 'flex-end' | 'stret
|
|
|
4
4
|
export type JustifyContentOptionType = 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
|
|
5
5
|
export type PositionOptionType = 'relative' | 'absolute';
|
|
6
6
|
export interface OnboardStyleGenerated {
|
|
7
|
-
scrollable?: boolean;
|
|
8
7
|
flexDirection?: FlexDirectionOptionType;
|
|
9
8
|
alignItems?: AlignItemsOptionType;
|
|
10
9
|
justifyContent?: JustifyContentOptionType;
|
|
@@ -43,6 +42,7 @@ export interface OnboardPropsGenerated {
|
|
|
43
42
|
child: string;
|
|
44
43
|
attributes: {
|
|
45
44
|
style?: OnboardStyleGenerated;
|
|
45
|
+
scrollable?: boolean;
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
48
|
export interface OnboardComponentProps {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { NodeData } from '../../types/Node';
|
|
2
2
|
export type TypeOptionType = 'Permission' | 'Navigate';
|
|
3
3
|
export type PermissionOptionType = 'att' | 'notification' | 'rating' | 'GDPR';
|
|
4
|
+
export type AnimationOptionType = 'simple-animation' | 'line-animation' | 'blur' | 'blur-animation' | 'blur-line-animation';
|
|
4
5
|
export type FlexDirectionOptionType = 'row' | 'column';
|
|
5
6
|
export type AlignItemsOptionType = 'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline';
|
|
6
7
|
export type JustifyContentOptionType = 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
|
|
7
8
|
export type PositionOptionType = 'relative' | 'absolute';
|
|
8
|
-
export type AnimationOptionType = 'simple-animation' | 'line-animation' | 'blur' | 'blur-animation' | 'blur-line-animation';
|
|
9
9
|
export interface EventObjectGenerated {
|
|
10
10
|
type?: TypeOptionType;
|
|
11
11
|
permission?: PermissionOptionType | null;
|
|
@@ -13,7 +13,6 @@ export interface EventObjectGenerated {
|
|
|
13
13
|
targetIndex?: number;
|
|
14
14
|
}
|
|
15
15
|
export interface OnboardButtonStyleGenerated {
|
|
16
|
-
scrollable?: boolean;
|
|
17
16
|
flexDirection?: FlexDirectionOptionType;
|
|
18
17
|
alignItems?: AlignItemsOptionType;
|
|
19
18
|
justifyContent?: JustifyContentOptionType;
|
|
@@ -47,17 +46,19 @@ export interface OnboardButtonStyleGenerated {
|
|
|
47
46
|
left?: string;
|
|
48
47
|
right?: string;
|
|
49
48
|
zIndex?: number;
|
|
50
|
-
labelKey?: string;
|
|
51
|
-
button_text_color?: string;
|
|
52
|
-
animation?: AnimationOptionType;
|
|
53
|
-
animation_color?: string;
|
|
54
|
-
button_background_color?: string;
|
|
55
|
-
events?: EventObjectGenerated[];
|
|
56
49
|
}
|
|
57
50
|
export interface OnboardButtonPropsGenerated {
|
|
58
51
|
child: string;
|
|
59
52
|
attributes: {
|
|
60
53
|
style?: OnboardButtonStyleGenerated;
|
|
54
|
+
scrollable?: boolean;
|
|
55
|
+
labelKey?: string;
|
|
56
|
+
button_text_color?: string;
|
|
57
|
+
animation?: AnimationOptionType;
|
|
58
|
+
animation_color?: string;
|
|
59
|
+
button_background_color?: string;
|
|
60
|
+
flex?: number;
|
|
61
|
+
events?: EventObjectGenerated[];
|
|
61
62
|
};
|
|
62
63
|
}
|
|
63
64
|
export interface OnboardButtonComponentProps {
|
|
@@ -1,13 +1,12 @@
|
|
|
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 type FlexDirectionOptionType = 'row' | 'column';
|
|
3
6
|
export type AlignItemsOptionType = 'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline';
|
|
4
7
|
export type JustifyContentOptionType = 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
|
|
5
8
|
export type PositionOptionType = 'relative' | 'absolute';
|
|
6
|
-
export type ButtonTypeOptionType = 'previous_button' | 'next_button' | 'skip_button';
|
|
7
|
-
export type ButtonsDirectionOptionType = 'row' | 'column';
|
|
8
|
-
export type ConditionOptionType = 'carousel-index';
|
|
9
9
|
export interface OnboardButtonsStyleGenerated {
|
|
10
|
-
scrollable?: boolean;
|
|
11
10
|
flexDirection?: FlexDirectionOptionType;
|
|
12
11
|
alignItems?: AlignItemsOptionType;
|
|
13
12
|
justifyContent?: JustifyContentOptionType;
|
|
@@ -41,18 +40,19 @@ export interface OnboardButtonsStyleGenerated {
|
|
|
41
40
|
left?: string;
|
|
42
41
|
right?: string;
|
|
43
42
|
zIndex?: number;
|
|
44
|
-
buttonType?: ButtonTypeOptionType;
|
|
45
|
-
skipNumber?: number;
|
|
46
|
-
buttons_direction?: ButtonsDirectionOptionType;
|
|
47
|
-
forIndex?: number;
|
|
48
|
-
seperatorColor?: string;
|
|
49
|
-
condition?: ConditionOptionType;
|
|
50
|
-
conditionVariable?: number;
|
|
51
43
|
}
|
|
52
44
|
export interface OnboardButtonsPropsGenerated {
|
|
53
45
|
child: string;
|
|
54
46
|
attributes: {
|
|
55
47
|
style?: OnboardButtonsStyleGenerated;
|
|
48
|
+
scrollable?: boolean;
|
|
49
|
+
buttonType?: ButtonTypeOptionType;
|
|
50
|
+
skipNumber?: number;
|
|
51
|
+
buttons_direction?: ButtonsDirectionOptionType;
|
|
52
|
+
forIndex?: number;
|
|
53
|
+
seperatorColor?: string;
|
|
54
|
+
condition?: ConditionOptionType;
|
|
55
|
+
conditionVariable?: number;
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
58
|
export interface OnboardButtonsComponentProps {
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import type { NodeData } from '../../types/Node';
|
|
2
|
-
export type PositionOptionType = 'relative' | 'absolute';
|
|
3
2
|
export type DotTypeOptionType = 'expanding_dot' | 'normal_dot' | 'scaling_dot' | 'sliding_border' | 'sliding_dot' | 'liquid_like';
|
|
3
|
+
export type FlexDirectionOptionType = 'row' | 'column';
|
|
4
|
+
export type AlignItemsOptionType = 'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline';
|
|
5
|
+
export type JustifyContentOptionType = 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
|
|
6
|
+
export type PositionOptionType = 'relative' | 'absolute';
|
|
4
7
|
export interface OnboardDotStyleGenerated {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
justifyContent?: never;
|
|
8
|
+
flexDirection?: FlexDirectionOptionType;
|
|
9
|
+
alignItems?: AlignItemsOptionType;
|
|
10
|
+
justifyContent?: JustifyContentOptionType;
|
|
9
11
|
gap?: string;
|
|
10
12
|
padding?: string;
|
|
11
13
|
paddingHorizontal?: string;
|
|
@@ -36,15 +38,19 @@ export interface OnboardDotStyleGenerated {
|
|
|
36
38
|
left?: string;
|
|
37
39
|
right?: string;
|
|
38
40
|
zIndex?: number;
|
|
39
|
-
dotType?: DotTypeOptionType;
|
|
40
|
-
inactive_dot_opacity?: number;
|
|
41
|
-
expanding_dot_width?: string;
|
|
42
|
-
active_dot_color?: string;
|
|
43
41
|
}
|
|
44
42
|
export interface OnboardDotPropsGenerated {
|
|
45
43
|
child: string;
|
|
46
44
|
attributes: {
|
|
47
45
|
style?: OnboardDotStyleGenerated;
|
|
46
|
+
scrollable?: boolean;
|
|
47
|
+
dotType?: DotTypeOptionType;
|
|
48
|
+
inactive_dot_opacity?: number;
|
|
49
|
+
expanding_dot_width?: string;
|
|
50
|
+
active_dot_color?: string;
|
|
51
|
+
flexDirection?: never;
|
|
52
|
+
alignItems?: never;
|
|
53
|
+
justifyContent?: never;
|
|
48
54
|
};
|
|
49
55
|
}
|
|
50
56
|
export interface OnboardDotComponentProps {
|
|
@@ -10,9 +10,6 @@ export interface OnboardFooterStyleGenerated {
|
|
|
10
10
|
fontFamily?: string;
|
|
11
11
|
fontWeight?: string;
|
|
12
12
|
textAlign?: TextAlignOptionType;
|
|
13
|
-
adjustsFontSizeToFit?: boolean;
|
|
14
|
-
showEllipsis?: boolean;
|
|
15
|
-
scrollable?: boolean;
|
|
16
13
|
flexDirection?: FlexDirectionOptionType;
|
|
17
14
|
alignItems?: AlignItemsOptionType;
|
|
18
15
|
justifyContent?: JustifyContentOptionType;
|
|
@@ -46,18 +43,21 @@ export interface OnboardFooterStyleGenerated {
|
|
|
46
43
|
left?: string;
|
|
47
44
|
right?: string;
|
|
48
45
|
zIndex?: number;
|
|
49
|
-
textLocalizationKey?: string;
|
|
50
|
-
linkedWordFirstLocalizationKey?: string;
|
|
51
|
-
linkedWordFirstColor?: string;
|
|
52
|
-
linkedWordFirstPage?: string;
|
|
53
|
-
linkedWordSecondLocalizationKey?: string;
|
|
54
|
-
linkedWordSecondColor?: string;
|
|
55
|
-
linkedWordSecondPage?: string;
|
|
56
46
|
}
|
|
57
47
|
export interface OnboardFooterPropsGenerated {
|
|
58
48
|
child: string;
|
|
59
49
|
attributes: {
|
|
60
50
|
style?: OnboardFooterStyleGenerated;
|
|
51
|
+
adjustsFontSizeToFit?: boolean;
|
|
52
|
+
showEllipsis?: boolean;
|
|
53
|
+
scrollable?: boolean;
|
|
54
|
+
textLocalizationKey?: string;
|
|
55
|
+
linkedWordFirstLocalizationKey?: string;
|
|
56
|
+
linkedWordFirstColor?: string;
|
|
57
|
+
linkedWordFirstPage?: string;
|
|
58
|
+
linkedWordSecondLocalizationKey?: string;
|
|
59
|
+
linkedWordSecondColor?: string;
|
|
60
|
+
linkedWordSecondPage?: string;
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
63
|
export interface OnboardFooterComponentProps {
|