@developer_tribe/react-builder 1.2.7 → 1.2.9
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 +41 -38
- package/dist/build-components/BackgroundImage/BackgroundImageProps.generated.d.ts +37 -34
- package/dist/build-components/Button/ButtonProps.generated.d.ts +39 -36
- package/dist/build-components/Carousel/CarouselProps.generated.d.ts +37 -34
- package/dist/build-components/CarouselButtons/CarouselButtonsProps.generated.d.ts +37 -34
- package/dist/build-components/CarouselDots/CarouselDotsProps.generated.d.ts +37 -34
- package/dist/build-components/CarouselItem/CarouselItemProps.generated.d.ts +36 -33
- package/dist/build-components/CarouselProvider/CarouselProviderProps.generated.d.ts +36 -33
- package/dist/build-components/Image/ImageProps.generated.d.ts +38 -33
- package/dist/build-components/Main/MainProps.generated.d.ts +36 -33
- package/dist/build-components/Onboard/OnboardProps.generated.d.ts +36 -33
- package/dist/build-components/OnboardButton/OnboardButtonProps.generated.d.ts +38 -34
- package/dist/build-components/OnboardButtons/OnboardButtonsProps.generated.d.ts +39 -36
- package/dist/build-components/OnboardDot/OnboardDotProps.generated.d.ts +43 -34
- package/dist/build-components/OnboardFooter/OnboardFooterProps.generated.d.ts +41 -38
- package/dist/build-components/OnboardImage/OnboardImageProps.generated.d.ts +36 -31
- package/dist/build-components/OnboardItem/OnboardItemProps.generated.d.ts +39 -33
- package/dist/build-components/OnboardProvider/OnboardProviderProps.generated.d.ts +38 -34
- package/dist/build-components/OnboardSubtitle/OnboardSubtitleProps.generated.d.ts +41 -38
- package/dist/build-components/OnboardTitle/OnboardTitleProps.generated.d.ts +41 -38
- package/dist/build-components/PaywallBackground/PaywallBackgroundProps.generated.d.ts +36 -33
- package/dist/build-components/PaywallCloseButton/PaywallCloseButtonProps.generated.d.ts +41 -38
- package/dist/build-components/PaywallOptions/PaywallOptionsProps.generated.d.ts +36 -33
- package/dist/build-components/PaywallProvider/PaywallProviderProps.generated.d.ts +36 -33
- package/dist/build-components/PaywallSubscribeButton/PaywallSubscribeButtonProps.generated.d.ts +39 -36
- package/dist/build-components/RadioButton/RadioButtonProps.generated.d.ts +36 -33
- package/dist/build-components/Text/TextProps.generated.d.ts +41 -38
- package/dist/build-components/View/ViewProps.generated.d.ts +36 -33
- package/dist/build-components/patterns.generated.d.ts +2673 -5787
- package/dist/components/BuilderProvider.d.ts +6 -0
- package/dist/index.cjs.js +5 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +5 -26
- 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 +6 -3
- 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/extractImageStyle.d.ts +3 -0
- package/dist/utils/extractTextStyle/extractTextStyleNative.d.ts +17 -0
- package/dist/utils/extractTextStyle.d.ts +2 -0
- package/dist/utils/extractViewStyle/extractViewStyleNative.d.ts +12 -0
- package/dist/utils/extractViewStyle.d.ts +2 -0
- package/dist/utils/getMeta.d.ts +5 -0
- package/dist/utils/patterns.d.ts +14 -1
- package/package.json +2 -1
- package/scripts/prebuild/prebuild.js +14 -0
- package/scripts/prebuild/utils/createGeneratedProps.js +51 -3
- 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/{hooks → attribute-analyser/style/web}/useExtractTextStyle.ts +7 -6
- package/src/{hooks → attribute-analyser/style/web}/useExtractViewStyle.ts +7 -6
- package/src/attributes-editor/AttributesEditorFields.tsx +248 -0
- package/src/attributes-editor/AttributesEditorView.tsx +360 -0
- package/src/attributes-editor/LayoutPreviewPicker.tsx +4 -3
- 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 -3
- package/src/build-components/BIcon/BIconProps.generated.ts +42 -38
- package/src/build-components/BIcon/pattern.json +5 -6
- package/src/build-components/BackgroundImage/BackgroundImage.tsx +7 -4
- package/src/build-components/BackgroundImage/BackgroundImageProps.generated.ts +38 -34
- package/src/build-components/BackgroundImage/pattern.json +9 -17
- package/src/build-components/Button/Button.tsx +7 -6
- package/src/build-components/Button/ButtonProps.generated.ts +40 -36
- 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 +38 -34
- package/src/build-components/CarouselButtons/CarouselButtons.tsx +4 -6
- package/src/build-components/CarouselButtons/CarouselButtonsProps.generated.ts +41 -37
- 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 +44 -40
- package/src/build-components/CarouselItem/CarouselItem.tsx +1 -1
- package/src/build-components/CarouselItem/CarouselItemProps.generated.ts +37 -33
- package/src/build-components/CarouselProvider/CarouselProvider.tsx +1 -1
- package/src/build-components/CarouselProvider/CarouselProviderProps.generated.ts +37 -33
- package/src/build-components/Image/Image.tsx +4 -3
- package/src/build-components/Image/ImageProps.generated.ts +39 -33
- package/src/build-components/Image/pattern.json +5 -11
- package/src/build-components/Main/Main.tsx +1 -1
- package/src/build-components/Main/MainProps.generated.ts +37 -33
- package/src/build-components/Main/pattern.json +2 -1
- package/src/build-components/Onboard/OnboardProps.generated.ts +37 -33
- package/src/build-components/OnboardButton/OnboardButton.tsx +8 -6
- package/src/build-components/OnboardButton/OnboardButtonProps.generated.ts +44 -39
- 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 +43 -39
- package/src/build-components/OnboardButtons/pattern.json +9 -7
- package/src/build-components/OnboardDot/OnboardDot.tsx +7 -5
- package/src/build-components/OnboardDot/OnboardDotProps.generated.ts +55 -34
- package/src/build-components/OnboardFooter/OnboardFooter.tsx +19 -23
- package/src/build-components/OnboardFooter/OnboardFooterProps.generated.ts +42 -38
- package/src/build-components/OnboardFooter/pattern.json +16 -14
- package/src/build-components/OnboardImage/OnboardImage.tsx +8 -7
- package/src/build-components/OnboardImage/OnboardImageProps.generated.ts +37 -31
- 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 +40 -33
- 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 +39 -34
- package/src/build-components/OnboardProvider/pattern.json +2 -1
- package/src/build-components/OnboardSubtitle/OnboardSubtitleProps.generated.ts +42 -38
- package/src/build-components/OnboardTitle/OnboardTitleProps.generated.ts +42 -38
- package/src/build-components/PaywallBackground/PaywallBackground.tsx +1 -1
- package/src/build-components/PaywallBackground/PaywallBackgroundProps.generated.ts +37 -33
- package/src/build-components/PaywallCloseButton/PaywallCloseButton.tsx +6 -5
- package/src/build-components/PaywallCloseButton/PaywallCloseButtonProps.generated.ts +42 -38
- package/src/build-components/PaywallOptions/PaywallOptionButton.tsx +1 -1
- package/src/build-components/PaywallOptions/PaywallOptionsProps.generated.ts +37 -33
- package/src/build-components/PaywallProvider/PaywallProvider.tsx +1 -1
- package/src/build-components/PaywallProvider/PaywallProviderProps.generated.ts +37 -33
- package/src/build-components/PaywallSubscribeButton/PaywallSubscribeButton.tsx +1 -1
- package/src/build-components/PaywallSubscribeButton/PaywallSubscribeButtonProps.generated.ts +40 -36
- package/src/build-components/RadioButton/RadioButton.tsx +5 -4
- package/src/build-components/RadioButton/RadioButtonProps.generated.ts +37 -33
- package/src/build-components/RadioButton/pattern.json +9 -7
- package/src/build-components/Text/Text.tsx +6 -8
- package/src/build-components/Text/TextProps.generated.ts +42 -38
- 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 +37 -33
- package/src/build-components/View/pattern.json +71 -66
- package/src/build-components/patterns.generated.ts +3022 -5971
- package/src/components/AttributesEditorPanel.tsx +2 -2
- package/src/components/BuilderProvider.tsx +15 -1
- package/src/index.native.ts +7 -4
- package/src/index.ts +6 -77
- 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/extractImageStyle.ts +34 -5
- package/src/utils/extractTextStyle/extractTextStyle.ts +7 -6
- package/src/utils/extractTextStyle/extractTextStyleNative.ts +106 -0
- package/src/utils/extractTextStyle.ts +2 -0
- package/src/utils/extractViewStyle/extractViewStyle.ts +2 -4
- package/src/utils/extractViewStyle/extractViewStyleNative.ts +111 -0
- package/src/utils/extractViewStyle.ts +2 -0
- package/src/utils/getMeta.ts +15 -0
- package/src/utils/patterns.ts +100 -3
- package/dist/hooks/useExtractImageStyle.d.ts +0 -3
- package/dist/hooks/useExtractTextStyle.d.ts +0 -3
- package/dist/hooks/useExtractViewStyle.d.ts +0 -3
- package/src/hooks/useExtractImageStyle.ts +0 -19
- package/src/migrations/migrations/1.1.0_normalize_style_attributes.ts +0 -80
|
@@ -4,7 +4,7 @@ import { carouselContext } from '../CarouselProvider/CarouselProvider';
|
|
|
4
4
|
import { onboardContext } from '../OnboardProvider/OnboardProvider';
|
|
5
5
|
import useNode from '../useNode';
|
|
6
6
|
import { useLogRender } from '../../utils/useLogRender';
|
|
7
|
-
import { useExtractViewStyle } from '../../
|
|
7
|
+
import { useExtractViewStyle } from '../../attribute-analyser/style/web/useExtractViewStyle';
|
|
8
8
|
|
|
9
9
|
function CarouselDots({ node }: CarouselDotsComponentProps) {
|
|
10
10
|
useLogRender('CarouselDots');
|
|
@@ -15,7 +15,7 @@ function CarouselDots({ node }: CarouselDotsComponentProps) {
|
|
|
15
15
|
const attributeName = node.sourceType ?? node.type ?? 'carouselDots';
|
|
16
16
|
const attributeKey = node.key ?? generatedId;
|
|
17
17
|
|
|
18
|
-
const dotType = node.attributes?.dotType
|
|
18
|
+
const dotType = node.attributes?.dotType ?? 'normal_dot';
|
|
19
19
|
const style = useExtractViewStyle(node);
|
|
20
20
|
|
|
21
21
|
// Use the appropriate context based on sourceType
|
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
import type { NodeData } from '../../types/Node';
|
|
4
4
|
|
|
5
|
+
export type DotTypeOptionType =
|
|
6
|
+
| 'expanding_dot'
|
|
7
|
+
| 'normal_dot'
|
|
8
|
+
| 'scaling_dot'
|
|
9
|
+
| 'sliding_border'
|
|
10
|
+
| 'sliding_dot'
|
|
11
|
+
| 'liquid_like';
|
|
5
12
|
export type FlexDirectionOptionType = 'row' | 'column';
|
|
6
13
|
export type AlignItemsOptionType =
|
|
7
14
|
| 'flex-start'
|
|
@@ -17,51 +24,48 @@ export type JustifyContentOptionType =
|
|
|
17
24
|
| 'space-around'
|
|
18
25
|
| 'space-evenly';
|
|
19
26
|
export type PositionOptionType = 'relative' | 'absolute';
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
+
|
|
28
|
+
export interface CarouselDotsStyleGenerated {
|
|
29
|
+
flexDirection?: FlexDirectionOptionType;
|
|
30
|
+
alignItems?: AlignItemsOptionType;
|
|
31
|
+
justifyContent?: JustifyContentOptionType;
|
|
32
|
+
gap?: string;
|
|
33
|
+
padding?: string;
|
|
34
|
+
paddingHorizontal?: string;
|
|
35
|
+
paddingVertical?: string;
|
|
36
|
+
paddingTop?: string;
|
|
37
|
+
paddingBottom?: string;
|
|
38
|
+
paddingLeft?: string;
|
|
39
|
+
paddingRight?: string;
|
|
40
|
+
margin?: string;
|
|
41
|
+
marginHorizontal?: string;
|
|
42
|
+
marginVertical?: string;
|
|
43
|
+
marginTop?: string;
|
|
44
|
+
marginBottom?: string;
|
|
45
|
+
marginLeft?: string;
|
|
46
|
+
marginRight?: string;
|
|
47
|
+
backgroundColor?: string;
|
|
48
|
+
borderRadius?: string;
|
|
49
|
+
width?: string;
|
|
50
|
+
minWidth?: string;
|
|
51
|
+
maxWidth?: string;
|
|
52
|
+
height?: string;
|
|
53
|
+
minHeight?: string;
|
|
54
|
+
maxHeight?: string;
|
|
55
|
+
flex?: number;
|
|
56
|
+
position?: PositionOptionType;
|
|
57
|
+
top?: string;
|
|
58
|
+
bottom?: string;
|
|
59
|
+
left?: string;
|
|
60
|
+
right?: string;
|
|
61
|
+
zIndex?: number;
|
|
62
|
+
}
|
|
27
63
|
|
|
28
64
|
export interface CarouselDotsPropsGenerated {
|
|
29
65
|
child: string;
|
|
30
66
|
attributes: {
|
|
31
|
-
style?:
|
|
67
|
+
style?: CarouselDotsStyleGenerated;
|
|
32
68
|
scrollable?: boolean;
|
|
33
|
-
flexDirection?: FlexDirectionOptionType;
|
|
34
|
-
alignItems?: AlignItemsOptionType;
|
|
35
|
-
justifyContent?: JustifyContentOptionType;
|
|
36
|
-
gap?: string;
|
|
37
|
-
padding?: string;
|
|
38
|
-
paddingHorizontal?: string;
|
|
39
|
-
paddingVertical?: string;
|
|
40
|
-
paddingTop?: string;
|
|
41
|
-
paddingBottom?: string;
|
|
42
|
-
paddingLeft?: string;
|
|
43
|
-
paddingRight?: string;
|
|
44
|
-
margin?: string;
|
|
45
|
-
marginVertical?: string;
|
|
46
|
-
marginTop?: string;
|
|
47
|
-
marginBottom?: string;
|
|
48
|
-
marginLeft?: string;
|
|
49
|
-
marginRight?: string;
|
|
50
|
-
backgroundColor?: string;
|
|
51
|
-
borderRadius?: string;
|
|
52
|
-
width?: string;
|
|
53
|
-
minWidth?: string;
|
|
54
|
-
maxWidth?: string;
|
|
55
|
-
height?: string;
|
|
56
|
-
minHeight?: string;
|
|
57
|
-
maxHeight?: string;
|
|
58
|
-
flex?: number;
|
|
59
|
-
position?: PositionOptionType;
|
|
60
|
-
top?: string;
|
|
61
|
-
bottom?: string;
|
|
62
|
-
left?: string;
|
|
63
|
-
right?: string;
|
|
64
|
-
zIndex?: number;
|
|
65
69
|
dotType?: DotTypeOptionType;
|
|
66
70
|
};
|
|
67
71
|
}
|
|
@@ -3,7 +3,7 @@ import type { CarouselItemComponentProps } from './CarouselItemProps.generated';
|
|
|
3
3
|
import RenderNode from '../RenderNode.generated';
|
|
4
4
|
import useNode from '../useNode';
|
|
5
5
|
import { useLogRender } from '../../utils/useLogRender';
|
|
6
|
-
import { useExtractViewStyle } from '../../
|
|
6
|
+
import { useExtractViewStyle } from '../../attribute-analyser/style/web/useExtractViewStyle';
|
|
7
7
|
|
|
8
8
|
export function CarouselItem({ node }: CarouselItemComponentProps) {
|
|
9
9
|
useLogRender('CarouselItem');
|
|
@@ -18,43 +18,47 @@ export type JustifyContentOptionType =
|
|
|
18
18
|
| 'space-evenly';
|
|
19
19
|
export type PositionOptionType = 'relative' | 'absolute';
|
|
20
20
|
|
|
21
|
+
export interface CarouselItemStyleGenerated {
|
|
22
|
+
flexDirection?: FlexDirectionOptionType;
|
|
23
|
+
alignItems?: AlignItemsOptionType;
|
|
24
|
+
justifyContent?: JustifyContentOptionType;
|
|
25
|
+
gap?: string;
|
|
26
|
+
padding?: string;
|
|
27
|
+
paddingHorizontal?: string;
|
|
28
|
+
paddingVertical?: string;
|
|
29
|
+
paddingTop?: string;
|
|
30
|
+
paddingBottom?: string;
|
|
31
|
+
paddingLeft?: string;
|
|
32
|
+
paddingRight?: string;
|
|
33
|
+
margin?: string;
|
|
34
|
+
marginHorizontal?: string;
|
|
35
|
+
marginVertical?: string;
|
|
36
|
+
marginTop?: string;
|
|
37
|
+
marginBottom?: string;
|
|
38
|
+
marginLeft?: string;
|
|
39
|
+
marginRight?: string;
|
|
40
|
+
backgroundColor?: string;
|
|
41
|
+
borderRadius?: string;
|
|
42
|
+
width?: string;
|
|
43
|
+
minWidth?: string;
|
|
44
|
+
maxWidth?: string;
|
|
45
|
+
height?: string;
|
|
46
|
+
minHeight?: string;
|
|
47
|
+
maxHeight?: string;
|
|
48
|
+
flex?: number;
|
|
49
|
+
position?: PositionOptionType;
|
|
50
|
+
top?: string;
|
|
51
|
+
bottom?: string;
|
|
52
|
+
left?: string;
|
|
53
|
+
right?: string;
|
|
54
|
+
zIndex?: number;
|
|
55
|
+
}
|
|
56
|
+
|
|
21
57
|
export interface CarouselItemPropsGenerated {
|
|
22
58
|
child: string;
|
|
23
59
|
attributes: {
|
|
24
|
-
style?:
|
|
60
|
+
style?: CarouselItemStyleGenerated;
|
|
25
61
|
scrollable?: boolean;
|
|
26
|
-
flexDirection?: FlexDirectionOptionType;
|
|
27
|
-
alignItems?: AlignItemsOptionType;
|
|
28
|
-
justifyContent?: JustifyContentOptionType;
|
|
29
|
-
gap?: string;
|
|
30
|
-
padding?: string;
|
|
31
|
-
paddingHorizontal?: string;
|
|
32
|
-
paddingVertical?: string;
|
|
33
|
-
paddingTop?: string;
|
|
34
|
-
paddingBottom?: string;
|
|
35
|
-
paddingLeft?: string;
|
|
36
|
-
paddingRight?: string;
|
|
37
|
-
margin?: string;
|
|
38
|
-
marginVertical?: string;
|
|
39
|
-
marginTop?: string;
|
|
40
|
-
marginBottom?: string;
|
|
41
|
-
marginLeft?: string;
|
|
42
|
-
marginRight?: string;
|
|
43
|
-
backgroundColor?: string;
|
|
44
|
-
borderRadius?: string;
|
|
45
|
-
width?: string;
|
|
46
|
-
minWidth?: string;
|
|
47
|
-
maxWidth?: string;
|
|
48
|
-
height?: string;
|
|
49
|
-
minHeight?: string;
|
|
50
|
-
maxHeight?: string;
|
|
51
|
-
flex?: number;
|
|
52
|
-
position?: PositionOptionType;
|
|
53
|
-
top?: string;
|
|
54
|
-
bottom?: string;
|
|
55
|
-
left?: string;
|
|
56
|
-
right?: string;
|
|
57
|
-
zIndex?: number;
|
|
58
62
|
};
|
|
59
63
|
}
|
|
60
64
|
|
|
@@ -3,7 +3,7 @@ import type { CarouselProviderComponentProps } from './CarouselProviderProps.gen
|
|
|
3
3
|
import RenderNode from '../RenderNode.generated';
|
|
4
4
|
import useEmblaCarousel from 'embla-carousel-react';
|
|
5
5
|
import useNode from '../useNode';
|
|
6
|
-
import { useExtractViewStyle } from '../../
|
|
6
|
+
import { useExtractViewStyle } from '../../attribute-analyser/style/web/useExtractViewStyle';
|
|
7
7
|
import { isCarousel } from '../../utils/isCarousel';
|
|
8
8
|
import type { Node, NodeData } from '../../types/Node';
|
|
9
9
|
|
|
@@ -18,43 +18,47 @@ export type JustifyContentOptionType =
|
|
|
18
18
|
| 'space-evenly';
|
|
19
19
|
export type PositionOptionType = 'relative' | 'absolute';
|
|
20
20
|
|
|
21
|
+
export interface CarouselProviderStyleGenerated {
|
|
22
|
+
flexDirection?: FlexDirectionOptionType;
|
|
23
|
+
alignItems?: AlignItemsOptionType;
|
|
24
|
+
justifyContent?: JustifyContentOptionType;
|
|
25
|
+
gap?: string;
|
|
26
|
+
padding?: string;
|
|
27
|
+
paddingHorizontal?: string;
|
|
28
|
+
paddingVertical?: string;
|
|
29
|
+
paddingTop?: string;
|
|
30
|
+
paddingBottom?: string;
|
|
31
|
+
paddingLeft?: string;
|
|
32
|
+
paddingRight?: string;
|
|
33
|
+
margin?: string;
|
|
34
|
+
marginHorizontal?: string;
|
|
35
|
+
marginVertical?: string;
|
|
36
|
+
marginTop?: string;
|
|
37
|
+
marginBottom?: string;
|
|
38
|
+
marginLeft?: string;
|
|
39
|
+
marginRight?: string;
|
|
40
|
+
backgroundColor?: string;
|
|
41
|
+
borderRadius?: string;
|
|
42
|
+
width?: string;
|
|
43
|
+
minWidth?: string;
|
|
44
|
+
maxWidth?: string;
|
|
45
|
+
height?: string;
|
|
46
|
+
minHeight?: string;
|
|
47
|
+
maxHeight?: string;
|
|
48
|
+
flex?: number;
|
|
49
|
+
position?: PositionOptionType;
|
|
50
|
+
top?: string;
|
|
51
|
+
bottom?: string;
|
|
52
|
+
left?: string;
|
|
53
|
+
right?: string;
|
|
54
|
+
zIndex?: number;
|
|
55
|
+
}
|
|
56
|
+
|
|
21
57
|
export interface CarouselProviderPropsGenerated {
|
|
22
58
|
child: string;
|
|
23
59
|
attributes: {
|
|
24
|
-
style?:
|
|
60
|
+
style?: CarouselProviderStyleGenerated;
|
|
25
61
|
scrollable?: boolean;
|
|
26
|
-
flexDirection?: FlexDirectionOptionType;
|
|
27
|
-
alignItems?: AlignItemsOptionType;
|
|
28
|
-
justifyContent?: JustifyContentOptionType;
|
|
29
|
-
gap?: string;
|
|
30
|
-
padding?: string;
|
|
31
|
-
paddingHorizontal?: string;
|
|
32
|
-
paddingVertical?: string;
|
|
33
|
-
paddingTop?: string;
|
|
34
|
-
paddingBottom?: string;
|
|
35
|
-
paddingLeft?: string;
|
|
36
|
-
paddingRight?: string;
|
|
37
|
-
margin?: string;
|
|
38
|
-
marginVertical?: string;
|
|
39
|
-
marginTop?: string;
|
|
40
|
-
marginBottom?: string;
|
|
41
|
-
marginLeft?: string;
|
|
42
|
-
marginRight?: string;
|
|
43
|
-
backgroundColor?: string;
|
|
44
|
-
borderRadius?: string;
|
|
45
|
-
width?: string;
|
|
46
|
-
minWidth?: string;
|
|
47
|
-
maxWidth?: string;
|
|
48
|
-
height?: string;
|
|
49
|
-
minHeight?: string;
|
|
50
|
-
maxHeight?: string;
|
|
51
|
-
flex?: number;
|
|
52
|
-
position?: PositionOptionType;
|
|
53
|
-
top?: string;
|
|
54
|
-
bottom?: string;
|
|
55
|
-
left?: string;
|
|
56
|
-
right?: string;
|
|
57
|
-
zIndex?: number;
|
|
58
62
|
};
|
|
59
63
|
}
|
|
60
64
|
|
|
@@ -6,7 +6,7 @@ import { resolveImageSrc } from '../../utils/getImage';
|
|
|
6
6
|
import { useLogRender } from '../../utils/useLogRender';
|
|
7
7
|
import { isNodeSelected, SELECTED_OUTLINE_STYLE } from '../../utils/selection';
|
|
8
8
|
import { useMergedStyle } from '../../utils/useMergedStyle';
|
|
9
|
-
import { useExtractImageStyle } from '../../
|
|
9
|
+
import { useExtractImageStyle } from '../../attribute-analyser/style/web/useExtractImageStyle';
|
|
10
10
|
|
|
11
11
|
function Image({ node }: ImageComponentProps) {
|
|
12
12
|
useLogRender('Image');
|
|
@@ -16,6 +16,7 @@ function Image({ node }: ImageComponentProps) {
|
|
|
16
16
|
const attributeKey = node.key ?? generatedId;
|
|
17
17
|
const { previewMode, selectedKey } = useBuilderParams();
|
|
18
18
|
const imageStyle = useExtractImageStyle(node);
|
|
19
|
+
const src = node.attributes?.src;
|
|
19
20
|
const isSelected = isNodeSelected({
|
|
20
21
|
previewMode: !!previewMode,
|
|
21
22
|
current: selectedKey ? { key: selectedKey } : undefined,
|
|
@@ -28,10 +29,10 @@ function Image({ node }: ImageComponentProps) {
|
|
|
28
29
|
|
|
29
30
|
return (
|
|
30
31
|
<img
|
|
31
|
-
key={node.key + (
|
|
32
|
+
key={node.key + (src ?? '-')}
|
|
32
33
|
attribute-name={attributeName}
|
|
33
34
|
attribute-key={attributeKey}
|
|
34
|
-
src={resolveImageSrc(
|
|
35
|
+
src={resolveImageSrc(src)}
|
|
35
36
|
style={style}
|
|
36
37
|
alt=""
|
|
37
38
|
/>
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import type { NodeData } from '../../types/Node';
|
|
4
4
|
|
|
5
|
+
export type ResizeModeOptionType = 'cover' | 'contain' | 'stretch' | 'center';
|
|
5
6
|
export type FlexDirectionOptionType = 'row' | 'column';
|
|
6
7
|
export type AlignItemsOptionType =
|
|
7
8
|
| 'flex-start'
|
|
@@ -17,46 +18,51 @@ export type JustifyContentOptionType =
|
|
|
17
18
|
| 'space-around'
|
|
18
19
|
| 'space-evenly';
|
|
19
20
|
export type PositionOptionType = 'relative' | 'absolute';
|
|
20
|
-
|
|
21
|
+
|
|
22
|
+
export interface ImageStyleGenerated {
|
|
23
|
+
flexDirection?: FlexDirectionOptionType;
|
|
24
|
+
alignItems?: AlignItemsOptionType;
|
|
25
|
+
justifyContent?: JustifyContentOptionType;
|
|
26
|
+
gap?: string;
|
|
27
|
+
padding?: string;
|
|
28
|
+
paddingHorizontal?: string;
|
|
29
|
+
paddingVertical?: string;
|
|
30
|
+
paddingTop?: string;
|
|
31
|
+
paddingBottom?: string;
|
|
32
|
+
paddingLeft?: string;
|
|
33
|
+
paddingRight?: string;
|
|
34
|
+
margin?: string;
|
|
35
|
+
marginHorizontal?: string;
|
|
36
|
+
marginVertical?: string;
|
|
37
|
+
marginTop?: string;
|
|
38
|
+
marginBottom?: string;
|
|
39
|
+
marginLeft?: string;
|
|
40
|
+
marginRight?: string;
|
|
41
|
+
backgroundColor?: string;
|
|
42
|
+
borderRadius?: string;
|
|
43
|
+
width?: string;
|
|
44
|
+
minWidth?: string;
|
|
45
|
+
maxWidth?: string;
|
|
46
|
+
height?: string;
|
|
47
|
+
minHeight?: string;
|
|
48
|
+
maxHeight?: string;
|
|
49
|
+
flex?: number;
|
|
50
|
+
position?: PositionOptionType;
|
|
51
|
+
top?: string;
|
|
52
|
+
bottom?: string;
|
|
53
|
+
left?: string;
|
|
54
|
+
right?: string;
|
|
55
|
+
zIndex?: number;
|
|
56
|
+
}
|
|
21
57
|
|
|
22
58
|
export interface ImagePropsGenerated {
|
|
23
59
|
child: string;
|
|
24
60
|
attributes: {
|
|
25
|
-
style?:
|
|
61
|
+
style?: ImageStyleGenerated;
|
|
26
62
|
scrollable?: boolean;
|
|
27
|
-
|
|
28
|
-
alignItems?: AlignItemsOptionType;
|
|
29
|
-
justifyContent?: JustifyContentOptionType;
|
|
30
|
-
gap?: string;
|
|
31
|
-
padding?: string;
|
|
32
|
-
paddingHorizontal?: string;
|
|
33
|
-
paddingVertical?: string;
|
|
34
|
-
paddingTop?: string;
|
|
35
|
-
paddingBottom?: string;
|
|
36
|
-
paddingLeft?: string;
|
|
37
|
-
paddingRight?: string;
|
|
38
|
-
margin?: string;
|
|
39
|
-
marginVertical?: string;
|
|
40
|
-
marginTop?: string;
|
|
41
|
-
marginBottom?: string;
|
|
42
|
-
marginLeft?: string;
|
|
43
|
-
marginRight?: string;
|
|
44
|
-
backgroundColor?: string;
|
|
45
|
-
borderRadius?: string;
|
|
63
|
+
src?: string;
|
|
46
64
|
width?: string;
|
|
47
|
-
minWidth?: string;
|
|
48
|
-
maxWidth?: string;
|
|
49
65
|
height?: string;
|
|
50
|
-
minHeight?: string;
|
|
51
|
-
maxHeight?: string;
|
|
52
|
-
flex?: number;
|
|
53
|
-
position?: PositionOptionType;
|
|
54
|
-
top?: string;
|
|
55
|
-
bottom?: string;
|
|
56
|
-
left?: string;
|
|
57
|
-
right?: string;
|
|
58
|
-
zIndex?: number;
|
|
59
|
-
src?: string;
|
|
60
66
|
resizeMode?: ResizeModeOptionType;
|
|
61
67
|
};
|
|
62
68
|
}
|
|
@@ -8,21 +8,15 @@
|
|
|
8
8
|
"src": "string",
|
|
9
9
|
"width": "size",
|
|
10
10
|
"height": "size",
|
|
11
|
-
"resizeMode": [
|
|
12
|
-
"cover",
|
|
13
|
-
"contain",
|
|
14
|
-
"stretch",
|
|
15
|
-
"center"
|
|
16
|
-
]
|
|
11
|
+
"resizeMode": ["cover", "contain", "stretch", "center"]
|
|
17
12
|
}
|
|
18
13
|
},
|
|
19
14
|
"meta": {
|
|
20
|
-
"desiredParent": [
|
|
21
|
-
"all"
|
|
22
|
-
],
|
|
15
|
+
"desiredParent": ["all"],
|
|
23
16
|
"label": "Image",
|
|
24
17
|
"description": "Shows an image or graphic.",
|
|
25
|
-
"styles": {
|
|
18
|
+
"styles": {},
|
|
19
|
+
"attributes": {
|
|
26
20
|
"src": {
|
|
27
21
|
"label": "Src",
|
|
28
22
|
"description": "Image source URL.",
|
|
@@ -47,7 +41,7 @@
|
|
|
47
41
|
"resizeMode": {
|
|
48
42
|
"label": "Resize Mode",
|
|
49
43
|
"description": "How the image fits the frame.",
|
|
50
|
-
"category": "
|
|
44
|
+
"category": "other",
|
|
51
45
|
"specialCategory": null,
|
|
52
46
|
"sort": 4
|
|
53
47
|
}
|
|
@@ -4,7 +4,7 @@ import RenderNode from '../RenderNode.generated';
|
|
|
4
4
|
import type { Node } from '../../types/Node';
|
|
5
5
|
import useNode from '../useNode';
|
|
6
6
|
import { useBuilderParams } from '../../components/BuilderProvider';
|
|
7
|
-
import { useExtractViewStyle } from '../../
|
|
7
|
+
import { useExtractViewStyle } from '../../attribute-analyser/style/web/useExtractViewStyle';
|
|
8
8
|
import { useLogRender } from '../../utils/useLogRender';
|
|
9
9
|
import { isNodeSelected, SELECTED_OUTLINE_STYLE } from '../../utils/selection';
|
|
10
10
|
import { useMergedStyle } from '../../utils/useMergedStyle';
|
|
@@ -18,43 +18,47 @@ export type JustifyContentOptionType =
|
|
|
18
18
|
| 'space-evenly';
|
|
19
19
|
export type PositionOptionType = 'relative' | 'absolute';
|
|
20
20
|
|
|
21
|
+
export interface MainStyleGenerated {
|
|
22
|
+
flexDirection?: FlexDirectionOptionType;
|
|
23
|
+
alignItems?: AlignItemsOptionType;
|
|
24
|
+
justifyContent?: JustifyContentOptionType;
|
|
25
|
+
gap?: string;
|
|
26
|
+
padding?: string;
|
|
27
|
+
paddingHorizontal?: string;
|
|
28
|
+
paddingVertical?: string;
|
|
29
|
+
paddingTop?: string;
|
|
30
|
+
paddingBottom?: string;
|
|
31
|
+
paddingLeft?: string;
|
|
32
|
+
paddingRight?: string;
|
|
33
|
+
margin?: string;
|
|
34
|
+
marginHorizontal?: string;
|
|
35
|
+
marginVertical?: string;
|
|
36
|
+
marginTop?: string;
|
|
37
|
+
marginBottom?: string;
|
|
38
|
+
marginLeft?: string;
|
|
39
|
+
marginRight?: string;
|
|
40
|
+
backgroundColor?: string;
|
|
41
|
+
borderRadius?: string;
|
|
42
|
+
width?: string;
|
|
43
|
+
minWidth?: string;
|
|
44
|
+
maxWidth?: string;
|
|
45
|
+
height?: string;
|
|
46
|
+
minHeight?: string;
|
|
47
|
+
maxHeight?: string;
|
|
48
|
+
flex?: number;
|
|
49
|
+
position?: PositionOptionType;
|
|
50
|
+
top?: string;
|
|
51
|
+
bottom?: string;
|
|
52
|
+
left?: string;
|
|
53
|
+
right?: string;
|
|
54
|
+
zIndex?: number;
|
|
55
|
+
}
|
|
56
|
+
|
|
21
57
|
export interface MainPropsGenerated {
|
|
22
58
|
child: string;
|
|
23
59
|
attributes: {
|
|
24
|
-
style?:
|
|
60
|
+
style?: MainStyleGenerated;
|
|
25
61
|
scrollable?: boolean;
|
|
26
|
-
flexDirection?: FlexDirectionOptionType;
|
|
27
|
-
alignItems?: AlignItemsOptionType;
|
|
28
|
-
justifyContent?: JustifyContentOptionType;
|
|
29
|
-
gap?: string;
|
|
30
|
-
padding?: string;
|
|
31
|
-
paddingHorizontal?: string;
|
|
32
|
-
paddingVertical?: string;
|
|
33
|
-
paddingTop?: string;
|
|
34
|
-
paddingBottom?: string;
|
|
35
|
-
paddingLeft?: string;
|
|
36
|
-
paddingRight?: string;
|
|
37
|
-
margin?: string;
|
|
38
|
-
marginVertical?: string;
|
|
39
|
-
marginTop?: string;
|
|
40
|
-
marginBottom?: string;
|
|
41
|
-
marginLeft?: string;
|
|
42
|
-
marginRight?: string;
|
|
43
|
-
backgroundColor?: string;
|
|
44
|
-
borderRadius?: string;
|
|
45
|
-
width?: string;
|
|
46
|
-
minWidth?: string;
|
|
47
|
-
maxWidth?: string;
|
|
48
|
-
height?: string;
|
|
49
|
-
minHeight?: string;
|
|
50
|
-
maxHeight?: string;
|
|
51
|
-
flex?: number;
|
|
52
|
-
position?: PositionOptionType;
|
|
53
|
-
top?: string;
|
|
54
|
-
bottom?: string;
|
|
55
|
-
left?: string;
|
|
56
|
-
right?: string;
|
|
57
|
-
zIndex?: number;
|
|
58
62
|
useSafeAreaView?: boolean;
|
|
59
63
|
};
|
|
60
64
|
}
|
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
"label": "Main",
|
|
25
25
|
"description": "Top-level screen wrapper (safe area, base layout).",
|
|
26
26
|
"hideAllAttributes": true,
|
|
27
|
-
"styles": {
|
|
27
|
+
"styles": {},
|
|
28
|
+
"attributes": {
|
|
28
29
|
"useSafeAreaView": {
|
|
29
30
|
"label": "Use Safe Area View",
|
|
30
31
|
"description": "Wraps content with a safe-area-aware container (when supported by the target).",
|
|
@@ -18,43 +18,47 @@ export type JustifyContentOptionType =
|
|
|
18
18
|
| 'space-evenly';
|
|
19
19
|
export type PositionOptionType = 'relative' | 'absolute';
|
|
20
20
|
|
|
21
|
+
export interface OnboardStyleGenerated {
|
|
22
|
+
flexDirection?: FlexDirectionOptionType;
|
|
23
|
+
alignItems?: AlignItemsOptionType;
|
|
24
|
+
justifyContent?: JustifyContentOptionType;
|
|
25
|
+
gap?: string;
|
|
26
|
+
padding?: string;
|
|
27
|
+
paddingHorizontal?: string;
|
|
28
|
+
paddingVertical?: string;
|
|
29
|
+
paddingTop?: string;
|
|
30
|
+
paddingBottom?: string;
|
|
31
|
+
paddingLeft?: string;
|
|
32
|
+
paddingRight?: string;
|
|
33
|
+
margin?: string;
|
|
34
|
+
marginHorizontal?: string;
|
|
35
|
+
marginVertical?: string;
|
|
36
|
+
marginTop?: string;
|
|
37
|
+
marginBottom?: string;
|
|
38
|
+
marginLeft?: string;
|
|
39
|
+
marginRight?: string;
|
|
40
|
+
backgroundColor?: string;
|
|
41
|
+
borderRadius?: string;
|
|
42
|
+
width?: string;
|
|
43
|
+
minWidth?: string;
|
|
44
|
+
maxWidth?: string;
|
|
45
|
+
height?: string;
|
|
46
|
+
minHeight?: string;
|
|
47
|
+
maxHeight?: string;
|
|
48
|
+
flex?: number;
|
|
49
|
+
position?: PositionOptionType;
|
|
50
|
+
top?: string;
|
|
51
|
+
bottom?: string;
|
|
52
|
+
left?: string;
|
|
53
|
+
right?: string;
|
|
54
|
+
zIndex?: number;
|
|
55
|
+
}
|
|
56
|
+
|
|
21
57
|
export interface OnboardPropsGenerated {
|
|
22
58
|
child: string;
|
|
23
59
|
attributes: {
|
|
24
|
-
style?:
|
|
60
|
+
style?: OnboardStyleGenerated;
|
|
25
61
|
scrollable?: boolean;
|
|
26
|
-
flexDirection?: FlexDirectionOptionType;
|
|
27
|
-
alignItems?: AlignItemsOptionType;
|
|
28
|
-
justifyContent?: JustifyContentOptionType;
|
|
29
|
-
gap?: string;
|
|
30
|
-
padding?: string;
|
|
31
|
-
paddingHorizontal?: string;
|
|
32
|
-
paddingVertical?: string;
|
|
33
|
-
paddingTop?: string;
|
|
34
|
-
paddingBottom?: string;
|
|
35
|
-
paddingLeft?: string;
|
|
36
|
-
paddingRight?: string;
|
|
37
|
-
margin?: string;
|
|
38
|
-
marginVertical?: string;
|
|
39
|
-
marginTop?: string;
|
|
40
|
-
marginBottom?: string;
|
|
41
|
-
marginLeft?: string;
|
|
42
|
-
marginRight?: string;
|
|
43
|
-
backgroundColor?: string;
|
|
44
|
-
borderRadius?: string;
|
|
45
|
-
width?: string;
|
|
46
|
-
minWidth?: string;
|
|
47
|
-
maxWidth?: string;
|
|
48
|
-
height?: string;
|
|
49
|
-
minHeight?: string;
|
|
50
|
-
maxHeight?: string;
|
|
51
|
-
flex?: number;
|
|
52
|
-
position?: PositionOptionType;
|
|
53
|
-
top?: string;
|
|
54
|
-
bottom?: string;
|
|
55
|
-
left?: string;
|
|
56
|
-
right?: string;
|
|
57
|
-
zIndex?: number;
|
|
58
62
|
};
|
|
59
63
|
}
|
|
60
64
|
|
|
@@ -7,7 +7,7 @@ import { onboardContext } from '../OnboardProvider/OnboardProvider';
|
|
|
7
7
|
import useNode from '../useNode';
|
|
8
8
|
import { useBuilderParams } from '../../components/BuilderProvider';
|
|
9
9
|
import { useLogRender } from '../../utils/useLogRender';
|
|
10
|
-
import { useExtractViewStyle } from '../../
|
|
10
|
+
import { useExtractViewStyle } from '../../attribute-analyser/style/web/useExtractViewStyle';
|
|
11
11
|
import { useMockOSContext, useMockPermission } from '../../mockOS';
|
|
12
12
|
import { useLocalize } from '../../hooks/useLocalize';
|
|
13
13
|
|
|
@@ -24,18 +24,20 @@ function OnboardButton({ node }: OnboardButtonComponentProps) {
|
|
|
24
24
|
const generatedId = useId();
|
|
25
25
|
const attributeKey = node.key ?? generatedId;
|
|
26
26
|
|
|
27
|
-
const
|
|
27
|
+
const attrs = node.attributes;
|
|
28
|
+
const styleBag = attrs?.style;
|
|
29
|
+
const labelRaw = attrs?.labelKey ?? '';
|
|
28
30
|
const localize = useLocalize({ appConfig });
|
|
29
31
|
const label = localize(labelRaw);
|
|
30
32
|
|
|
31
|
-
const flex =
|
|
32
|
-
const textColor =
|
|
33
|
-
const backgroundColor =
|
|
33
|
+
const flex = styleBag?.flex ?? 1;
|
|
34
|
+
const textColor = attrs?.button_text_color ?? '#FFFFFF';
|
|
35
|
+
const backgroundColor = attrs?.button_background_color ?? '#0066FF';
|
|
34
36
|
const viewStyle = useExtractViewStyle(node);
|
|
35
37
|
|
|
36
38
|
const handleClick = () => {
|
|
37
39
|
//TODO: any ??
|
|
38
|
-
const events: EventObjectGenerated[] =
|
|
40
|
+
const events: EventObjectGenerated[] = attrs?.events ?? [];
|
|
39
41
|
let navigateHandled = false;
|
|
40
42
|
|
|
41
43
|
for (const e of events) {
|