@developer_tribe/react-builder 1.2.42 → 1.2.44-test.1
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/build-components/BIcon/BIconProps.generated.d.ts +1 -1
- package/dist/build-components/Checkbox/Checkbox.d.ts +6 -0
- package/dist/build-components/Checkbox/CheckboxProps.generated.d.ts +67 -0
- package/dist/build-components/CountDown/CountDownProps.generated.d.ts +1 -1
- package/dist/build-components/FormCheckbox/FormCheckbox.d.ts +3 -0
- package/dist/build-components/FormCheckbox/FormCheckboxProps.generated.d.ts +69 -0
- package/dist/build-components/FormErrorText/FormErrorText.d.ts +3 -0
- package/dist/build-components/FormErrorText/FormErrorTextProps.generated.d.ts +61 -0
- package/dist/build-components/FormProvider/FormProvider.d.ts +11 -0
- package/dist/build-components/FormProvider/FormProviderProps.generated.d.ts +55 -0
- package/dist/build-components/FormSubmitButton/FormSubmitButton.d.ts +2 -0
- package/dist/build-components/FormSubmitButton/FormSubmitButtonProps.generated.d.ts +73 -0
- package/dist/build-components/GlobalProvider/GlobalContext.d.ts +28 -0
- package/dist/build-components/GlobalProvider/GlobalProvider.d.ts +5 -0
- package/dist/build-components/GlobalProvider/GlobalProviderProps.generated.d.ts +60 -0
- package/dist/build-components/GlobalProvider/globalProviderUtils.d.ts +37 -0
- package/dist/build-components/GlobalProvider/useGlobalNavigation.d.ts +19 -0
- package/dist/build-components/OnboardButton/OnboardButtonProps.generated.d.ts +17 -10
- package/dist/build-components/OnboardFooter/OnboardFooterProps.generated.d.ts +1 -1
- package/dist/build-components/OnboardProvider/OnboardProviderProps.generated.d.ts +2 -0
- package/dist/build-components/OnboardSubtitle/OnboardSubtitleProps.generated.d.ts +1 -1
- package/dist/build-components/OnboardTitle/OnboardTitleProps.generated.d.ts +1 -1
- package/dist/build-components/PaywallCloseButton/PaywallCloseButtonProps.generated.d.ts +1 -1
- package/dist/build-components/PaywallFooter/PaywallFooterProps.generated.d.ts +1 -1
- package/dist/build-components/PaywallProvider/PaywallProviderProps.generated.d.ts +2 -0
- package/dist/build-components/PriceTag/PriceTagProps.generated.d.ts +1 -1
- package/dist/build-components/Pricing/PricingProps.generated.d.ts +1 -1
- package/dist/build-components/Promo/PromoProps.generated.d.ts +1 -1
- package/dist/build-components/SystemButton/SystemButton.d.ts +7 -0
- package/dist/build-components/SystemButton/SystemButtonProps.generated.d.ts +71 -0
- package/dist/build-components/SystemButton/usePlacementButtonEvents.d.ts +28 -0
- package/dist/build-components/TermsProvider/TermsProvider.d.ts +5 -0
- package/dist/build-components/TermsProvider/TermsProviderProps.generated.d.ts +55 -0
- package/dist/build-components/Text/TextProps.generated.d.ts +1 -1
- package/dist/build-components/WebView/WebView.d.ts +2 -0
- package/dist/build-components/WebView/WebViewProps.generated.d.ts +59 -0
- package/dist/build-components/index.d.ts +10 -1
- package/dist/build-components/patterns.generated.d.ts +5507 -1543
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.web.cjs.js +5 -5
- package/dist/index.web.cjs.js.map +1 -1
- package/dist/index.web.d.ts +1 -0
- package/dist/index.web.esm.js +4 -4
- package/dist/index.web.esm.js.map +1 -1
- package/dist/mockOS/context/MockOSContextBase.d.ts +3 -1
- package/dist/styles.css +1 -1
- package/dist/types/PreviewConfig.d.ts +1 -1
- package/package.json +2 -1
- package/src/RenderPage.tsx +4 -1
- package/src/assets/meta.json +1 -1
- package/src/assets/prompt-scheme-onboard.generated.ts +1 -1
- package/src/assets/prompt-scheme-paywall.generated.ts +1 -1
- package/src/assets/samples/getSamples.ts +7 -0
- package/src/assets/samples/global-onboard-flow.json +729 -0
- package/src/assets/samples/paywall-1.json +2 -2
- package/src/assets/samples/terms-and-privacy-no-form.json +108 -0
- package/src/assets/samples/terms-and-privacy.json +130 -0
- package/src/attributes-editor/FallbackLocalizationField.tsx +725 -250
- package/src/build-components/BIcon/BIconProps.generated.ts +1 -1
- package/src/build-components/Checkbox/Checkbox.tsx +165 -0
- package/src/build-components/Checkbox/CheckboxProps.generated.ts +84 -0
- package/src/build-components/Checkbox/pattern.json +83 -0
- package/src/build-components/CountDown/CountDownProps.generated.ts +1 -1
- package/src/build-components/FormCheckbox/FormCheckbox.tsx +106 -0
- package/src/build-components/FormCheckbox/FormCheckboxProps.generated.ts +86 -0
- package/src/build-components/FormCheckbox/pattern.json +39 -0
- package/src/build-components/FormErrorText/FormErrorText.tsx +34 -0
- package/src/build-components/FormErrorText/FormErrorTextProps.generated.ts +78 -0
- package/src/build-components/FormErrorText/pattern.json +21 -0
- package/src/build-components/FormProvider/FormProvider.tsx +131 -0
- package/src/build-components/FormProvider/FormProviderProps.generated.ts +72 -0
- package/src/build-components/FormProvider/pattern.json +33 -0
- package/src/build-components/FormSubmitButton/FormSubmitButton.tsx +49 -0
- package/src/build-components/FormSubmitButton/FormSubmitButtonProps.generated.ts +91 -0
- package/src/build-components/FormSubmitButton/pattern.json +33 -0
- package/src/build-components/GlobalProvider/GlobalContext.ts +48 -0
- package/src/build-components/GlobalProvider/GlobalProvider.tsx +191 -0
- package/src/build-components/GlobalProvider/GlobalProviderProps.generated.ts +78 -0
- package/src/build-components/GlobalProvider/globalProviderUtils.ts +163 -0
- package/src/build-components/GlobalProvider/pattern.json +55 -0
- package/src/build-components/GlobalProvider/useGlobalNavigation.ts +70 -0
- package/src/build-components/OnboardButton/OnboardButton.tsx +41 -36
- package/src/build-components/OnboardButton/OnboardButtonProps.generated.ts +17 -10
- package/src/build-components/OnboardButton/pattern.json +5 -4
- package/src/build-components/OnboardFooter/OnboardFooterProps.generated.ts +1 -1
- package/src/build-components/OnboardProvider/OnboardProviderProps.generated.ts +12 -0
- package/src/build-components/OnboardProvider/pattern.json +9 -1
- package/src/build-components/OnboardSubtitle/OnboardSubtitleProps.generated.ts +1 -1
- package/src/build-components/OnboardTitle/OnboardTitleProps.generated.ts +1 -1
- package/src/build-components/PaywallCloseButton/PaywallCloseButtonProps.generated.ts +1 -1
- package/src/build-components/PaywallFooter/PaywallFooterProps.generated.ts +1 -1
- package/src/build-components/PaywallProvider/PaywallProviderProps.generated.ts +12 -0
- package/src/build-components/PaywallProvider/pattern.json +9 -1
- package/src/build-components/PriceTag/PriceTagProps.generated.ts +1 -1
- package/src/build-components/Pricing/PricingProps.generated.ts +1 -1
- package/src/build-components/Promo/PromoProps.generated.ts +1 -1
- package/src/build-components/RenderNode.generated.tsx +46 -1
- package/src/build-components/SystemButton/SystemButton.tsx +71 -0
- package/src/build-components/SystemButton/SystemButtonProps.generated.ts +89 -0
- package/src/build-components/SystemButton/pattern.json +61 -0
- package/src/build-components/SystemButton/usePlacementButtonEvents.ts +101 -0
- package/src/build-components/TermsProvider/TermsProvider.tsx +45 -0
- package/src/build-components/TermsProvider/TermsProviderProps.generated.ts +82 -0
- package/src/build-components/TermsProvider/pattern.json +35 -0
- package/src/build-components/Text/Text.tsx +5 -4
- package/src/build-components/Text/TextProps.generated.ts +1 -1
- package/src/build-components/Text/pattern.json +2 -1
- package/src/build-components/WebView/WebView.tsx +149 -0
- package/src/build-components/WebView/WebViewProps.generated.ts +76 -0
- package/src/build-components/WebView/pattern.json +71 -0
- package/src/build-components/index.ts +45 -0
- package/src/build-components/patterns.generated.ts +5712 -1559
- package/src/hooks/useSafeAreaViewStyle.ts +1 -11
- package/src/index.web.ts +3 -0
- package/src/mockOS/components/MockOSRouter.tsx +21 -0
- package/src/mockOS/context/MockOSContext.tsx +7 -0
- package/src/mockOS/context/MockOSContextBase.ts +4 -0
- package/src/styles/components/_checkbox.scss +19 -0
- package/src/styles/components/_global-provider.scss +131 -0
- package/src/styles/components/_webview.scss +52 -0
- package/src/styles/index.scss +4 -0
- package/src/types/PreviewConfig.ts +19 -0
- package/src/utils/analyseNodeByPatterns.ts +5 -2
- package/src/utils/extractViewStyle/extractViewStyle.ts +0 -1
- package/src/utils/projectColors.ts +4 -0
- package/src/utils/useMergedStyle.ts +1 -1
- package/src/.DS_Store +0 -0
- package/src/assets/.DS_Store +0 -0
|
@@ -281,7 +281,7 @@
|
|
|
281
281
|
"description": "Metin öğesi. (#4)",
|
|
282
282
|
"title": "Product Desc(s)",
|
|
283
283
|
"styles": {
|
|
284
|
-
"flex":
|
|
284
|
+
"flex": 6
|
|
285
285
|
},
|
|
286
286
|
"testID": "Text-test-id-4"
|
|
287
287
|
},
|
|
@@ -293,7 +293,7 @@
|
|
|
293
293
|
"title": "Price Column",
|
|
294
294
|
"styles": {
|
|
295
295
|
"flexDirection": "column",
|
|
296
|
-
"flex":
|
|
296
|
+
"flex": 2,
|
|
297
297
|
"alignItems": "flex-end"
|
|
298
298
|
},
|
|
299
299
|
"testID": "View-test-id-6"
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Terms and Privacy (no form)",
|
|
3
|
+
"version": "1.1.2",
|
|
4
|
+
"type": "terms",
|
|
5
|
+
"data": {
|
|
6
|
+
"type": "Main",
|
|
7
|
+
"isMain": true,
|
|
8
|
+
"attributes": {
|
|
9
|
+
"useSafeAreaView": true,
|
|
10
|
+
"description": "Terms and Privacy screen without FormProvider; plain Checkbox and SystemButton.",
|
|
11
|
+
"title": "Terms & Privacy",
|
|
12
|
+
"styles": {
|
|
13
|
+
"backgroundColor": "THEME_COLORS.BACKGROUND",
|
|
14
|
+
"flex": 1
|
|
15
|
+
},
|
|
16
|
+
"testID": "TermsPrivacyNoForm-Main"
|
|
17
|
+
},
|
|
18
|
+
"children": [
|
|
19
|
+
{
|
|
20
|
+
"type": "View",
|
|
21
|
+
"attributes": {
|
|
22
|
+
"description": "Header section",
|
|
23
|
+
"styles": {
|
|
24
|
+
"padding": 16,
|
|
25
|
+
"alignItems": "center",
|
|
26
|
+
"borderBottomWidth": 1,
|
|
27
|
+
"borderBottomColor": "THEME_COLORS.LINE",
|
|
28
|
+
"backgroundColor": "THEME_COLORS.BACKGROUND"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"children": [
|
|
32
|
+
{
|
|
33
|
+
"type": "Text",
|
|
34
|
+
"children": "view.terms.header.title",
|
|
35
|
+
"attributes": {
|
|
36
|
+
"styles": {
|
|
37
|
+
"fontSize": 20,
|
|
38
|
+
"fontWeight": "700",
|
|
39
|
+
"color": "THEME_COLORS.TEXT"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"type": "WebView",
|
|
47
|
+
"attributes": {
|
|
48
|
+
"iosUrl": "https://stage.vpn111.net/page/ios/privacy",
|
|
49
|
+
"androidUrl": "https://stage.vpn111.net/page/android/privacy",
|
|
50
|
+
"styles": {
|
|
51
|
+
"flex": 1,
|
|
52
|
+
"backgroundColor": "THEME_COLORS.BACKGROUND"
|
|
53
|
+
},
|
|
54
|
+
"testID": "TermsPrivacyNoForm-WebView"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"type": "View",
|
|
59
|
+
"attributes": {
|
|
60
|
+
"description": "Footer section",
|
|
61
|
+
"styles": {
|
|
62
|
+
"padding": 20,
|
|
63
|
+
"backgroundColor": "THEME_COLORS.BACKGROUND",
|
|
64
|
+
"borderTopWidth": 1,
|
|
65
|
+
"borderTopColor": "THEME_COLORS.LINE",
|
|
66
|
+
"gap": 16
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"children": [
|
|
70
|
+
{
|
|
71
|
+
"type": "Checkbox",
|
|
72
|
+
"attributes": {
|
|
73
|
+
"checked": false,
|
|
74
|
+
"label": "view.terms.checkbox.label",
|
|
75
|
+
"checkedColor": "THEME_COLORS.CHECKBOX_ACTIVE_COLOR",
|
|
76
|
+
"styles": {
|
|
77
|
+
"marginBottom": 8
|
|
78
|
+
},
|
|
79
|
+
"testID": "TermsPrivacyNoForm-Checkbox"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"type": "SystemButton",
|
|
84
|
+
"attributes": {
|
|
85
|
+
"labelKey": "view.terms.accept.button",
|
|
86
|
+
"events": [
|
|
87
|
+
{
|
|
88
|
+
"type": "Navigate",
|
|
89
|
+
"placementKey": "onboard"
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
"styles": {
|
|
93
|
+
"backgroundColor": "STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",
|
|
94
|
+
"color": "#FFFFFF",
|
|
95
|
+
"height": 48,
|
|
96
|
+
"borderRadius": 8,
|
|
97
|
+
"alignItems": "center",
|
|
98
|
+
"justifyContent": "center",
|
|
99
|
+
"fontWeight": "600"
|
|
100
|
+
},
|
|
101
|
+
"testID": "TermsPrivacyNoForm-AcceptButton"
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
]
|
|
105
|
+
}
|
|
106
|
+
]
|
|
107
|
+
}
|
|
108
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Terms and Privacy",
|
|
3
|
+
"version": "1.1.2",
|
|
4
|
+
"type": "terms",
|
|
5
|
+
"data": {
|
|
6
|
+
"type": "Main",
|
|
7
|
+
"isMain": true,
|
|
8
|
+
"attributes": {
|
|
9
|
+
"useSafeAreaView": true,
|
|
10
|
+
"description": "Terms and Privacy screen container",
|
|
11
|
+
"title": "Terms & Privacy",
|
|
12
|
+
"styles": {
|
|
13
|
+
"backgroundColor": "THEME_COLORS.BACKGROUND",
|
|
14
|
+
"flex": 1
|
|
15
|
+
},
|
|
16
|
+
"testID": "TermsPrivacy-Main"
|
|
17
|
+
},
|
|
18
|
+
"children": [
|
|
19
|
+
{
|
|
20
|
+
"type": "View",
|
|
21
|
+
"attributes": {
|
|
22
|
+
"description": "Header section",
|
|
23
|
+
"styles": {
|
|
24
|
+
"padding": 16,
|
|
25
|
+
"alignItems": "center",
|
|
26
|
+
"borderBottomWidth": 1,
|
|
27
|
+
"borderBottomColor": "THEME_COLORS.LINE",
|
|
28
|
+
"backgroundColor": "THEME_COLORS.BACKGROUND"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"children": [
|
|
32
|
+
{
|
|
33
|
+
"type": "Text",
|
|
34
|
+
"children": "view.terms.header.title",
|
|
35
|
+
"attributes": {
|
|
36
|
+
"styles": {
|
|
37
|
+
"fontSize": 20,
|
|
38
|
+
"fontWeight": "700",
|
|
39
|
+
"color": "THEME_COLORS.TEXT"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"type": "WebView",
|
|
47
|
+
"attributes": {
|
|
48
|
+
"iosUrl": "https://stage.vpn111.net/page/ios/privacy",
|
|
49
|
+
"androidUrl": "https://stage.vpn111.net/page/android/privacy",
|
|
50
|
+
"styles": {
|
|
51
|
+
"flex": 1,
|
|
52
|
+
"backgroundColor": "THEME_COLORS.BACKGROUND"
|
|
53
|
+
},
|
|
54
|
+
"testID": "TermsPrivacy-WebView"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"type": "View",
|
|
59
|
+
"attributes": {
|
|
60
|
+
"description": "Footer section",
|
|
61
|
+
"styles": {
|
|
62
|
+
"padding": 20,
|
|
63
|
+
"backgroundColor": "THEME_COLORS.BACKGROUND",
|
|
64
|
+
"borderTopWidth": 1,
|
|
65
|
+
"borderTopColor": "THEME_COLORS.LINE",
|
|
66
|
+
"gap": 16
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"children": [
|
|
70
|
+
{
|
|
71
|
+
"type": "FormProvider",
|
|
72
|
+
"attributes": {
|
|
73
|
+
"defaultValues": "{\"termsAccepted\": false}",
|
|
74
|
+
"validationErrorMessageKey": "view.terms.error.must_accept"
|
|
75
|
+
},
|
|
76
|
+
"children": [
|
|
77
|
+
{
|
|
78
|
+
"type": "FormCheckbox",
|
|
79
|
+
"attributes": {
|
|
80
|
+
"name": "termsAccepted",
|
|
81
|
+
"validation": ["required"],
|
|
82
|
+
"checked": false,
|
|
83
|
+
"label": "view.terms.checkbox.label",
|
|
84
|
+
"checkedColor": "THEME_COLORS.CHECKBOX_ACTIVE_COLOR",
|
|
85
|
+
"styles": {
|
|
86
|
+
"marginBottom": 8
|
|
87
|
+
},
|
|
88
|
+
"testID": "TermsPrivacy-Checkbox"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"type": "FormErrorText",
|
|
93
|
+
"attributes": {
|
|
94
|
+
"styles": {
|
|
95
|
+
"marginBottom": 8
|
|
96
|
+
},
|
|
97
|
+
"testID": "TermsPrivacy-FormErrorText"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"type": "FormSubmitButton",
|
|
102
|
+
"attributes": {
|
|
103
|
+
"labelKey": "view.terms.accept.button",
|
|
104
|
+
"validationRequired": true,
|
|
105
|
+
"disableIfUnvalidated": true,
|
|
106
|
+
"events": [
|
|
107
|
+
{
|
|
108
|
+
"type": "Navigate",
|
|
109
|
+
"placementKey": "onboard"
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
"styles": {
|
|
113
|
+
"backgroundColor": "STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",
|
|
114
|
+
"color": "#FFFFFF",
|
|
115
|
+
"height": 48,
|
|
116
|
+
"borderRadius": 8,
|
|
117
|
+
"alignItems": "center",
|
|
118
|
+
"justifyContent": "center",
|
|
119
|
+
"fontWeight": "600"
|
|
120
|
+
},
|
|
121
|
+
"testID": "TermsPrivacy-AcceptButton"
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
}
|
|
126
|
+
]
|
|
127
|
+
}
|
|
128
|
+
]
|
|
129
|
+
}
|
|
130
|
+
}
|