@developer_tribe/react-builder 1.2.25 → 1.2.27
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/attributes-editor/AttributesEditorFields.d.ts +1 -1
- package/dist/attributes-editor/SpecialCategorySection.d.ts +1 -1
- package/dist/build-components/CountDown/CountDownProps.generated.d.ts +3 -4
- package/dist/build-components/PaywallOptions/PaywallOptionButton.d.ts +1 -1
- package/dist/build-components/PaywallProvider/PaywallContext.d.ts +1 -2
- package/dist/build-components/index.d.ts +1 -3
- package/dist/build-components/patterns.generated.d.ts +759 -1637
- package/dist/index.cjs.js +4 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +4 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.web.cjs.js +3 -3
- package/dist/index.web.cjs.js.map +1 -1
- package/dist/index.web.esm.js +3 -3
- package/dist/index.web.esm.js.map +1 -1
- package/dist/paywall/hooks/index.d.ts +0 -1
- package/dist/styles.css +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/projectColors.d.ts +7 -0
- package/package.json +3 -3
- package/src/DeviceMockFrame.tsx +0 -2
- package/src/RenderPage.tsx +0 -9
- package/src/assets/.DS_Store +0 -0
- package/src/assets/meta.json +1 -1
- package/src/assets/samples/paywall-1.json +0 -1
- package/src/assets/samples/paywall-2.json +2 -3
- package/src/assets/samples/paywall-app-delete-offer.json +2 -3
- package/src/assets/samples/paywall-app-open-offer.json +2 -3
- package/src/assets/samples/paywall-back-offer.json +2 -3
- package/src/assets/samples/paywall-notification-offer.json +2 -3
- package/src/assets/samples/vpn-onboard-1.json +15 -15
- package/src/assets/samples/vpn-onboard-2.json +15 -15
- package/src/assets/samples/vpn-onboard-3.json +15 -15
- package/src/assets/samples/vpn-onboard-4.json +15 -15
- package/src/assets/samples/vpn-onboard-5.json +21 -21
- package/src/assets/samples/vpn-onboard-6.json +15 -15
- package/src/attributes-editor/AttributesEditorFields.tsx +0 -1
- package/src/attributes-editor/AttributesEditorView.tsx +0 -2
- package/src/attributes-editor/Field.tsx +1 -1
- package/src/attributes-editor/SpecialCategorySection.tsx +0 -1
- package/src/attributes-editor/useAttributesEditorModel.ts +18 -8
- package/src/build-components/BIcon/BIcon.tsx +1 -1
- package/src/build-components/BIcon/pattern.json +1 -3
- package/src/build-components/BackgroundImage/pattern.json +2 -10
- package/src/build-components/Button/pattern.json +1 -3
- package/src/build-components/Carousel/Carousel.tsx +1 -1
- package/src/build-components/Carousel/pattern.json +2 -8
- package/src/build-components/CarouselButtons/pattern.json +2 -9
- package/src/build-components/CarouselDots/pattern.json +1 -3
- package/src/build-components/CarouselItem/pattern.json +1 -3
- package/src/build-components/CarouselProvider/CarouselProvider.tsx +1 -1
- package/src/build-components/CarouselProvider/pattern.json +1 -4
- package/src/build-components/CountDown/CountDown.tsx +25 -1
- package/src/build-components/CountDown/CountDownProps.generated.ts +3 -4
- package/src/build-components/CountDown/pattern.json +9 -4
- package/src/build-components/Main/pattern.json +1 -3
- package/src/build-components/NavigationBarColor/pattern.json +1 -3
- package/src/build-components/Onboard/pattern.json +2 -6
- package/src/build-components/OnboardButton/OnboardButton.tsx +1 -4
- package/src/build-components/OnboardButton/pattern.json +3 -14
- package/src/build-components/OnboardButtons/OnboardButtons.tsx +1 -9
- package/src/build-components/OnboardButtons/pattern.json +4 -15
- package/src/build-components/OnboardDot/OnboardDot.tsx +2 -1
- package/src/build-components/OnboardDot/pattern.json +1 -3
- package/src/build-components/OnboardFooter/pattern.json +1 -3
- package/src/build-components/OnboardImage/pattern.json +1 -5
- package/src/build-components/OnboardItem/OnboardItem.tsx +1 -1
- package/src/build-components/OnboardItem/pattern.json +3 -11
- package/src/build-components/OnboardProvider/OnboardProvider.tsx +0 -1
- package/src/build-components/OnboardProvider/pattern.json +2 -8
- package/src/build-components/OnboardSubtitle/pattern.json +1 -4
- package/src/build-components/OnboardTitle/pattern.json +1 -4
- package/src/build-components/PaywallBackground/pattern.json +1 -3
- package/src/build-components/PaywallCloseButton/pattern.json +1 -3
- package/src/build-components/PaywallOptions/PaywallOptionButton.tsx +1 -2
- package/src/build-components/PaywallOptions/pattern.json +1 -3
- package/src/build-components/PaywallProvider/PaywallContext.ts +1 -1
- package/src/build-components/PaywallProvider/PaywallProvider.tsx +0 -10
- package/src/build-components/PaywallProvider/pattern.json +1 -3
- package/src/build-components/PaywallSubscribeButton/PaywallSubscribeButton.tsx +1 -1
- package/src/build-components/PaywallSubscribeButton/pattern.json +1 -3
- package/src/build-components/RadioButton/RadioButton.tsx +1 -1
- package/src/build-components/RadioButton/pattern.json +1 -3
- package/src/build-components/RenderNode.generated.tsx +0 -10
- package/src/build-components/Separator/pattern.json +1 -3
- package/src/build-components/StatusBarColor/pattern.json +1 -3
- package/src/build-components/Text/pattern.json +2 -9
- package/src/build-components/View/pattern.json +4 -16
- package/src/build-components/index.ts +0 -10
- package/src/build-components/patterns.generated.ts +789 -1700
- package/src/components/Builder.tsx +5 -0
- package/src/components/BuilderProvider.tsx +2 -37
- package/src/hooks/useSafeAreaViewStyle.ts +1 -3
- package/src/index.ts +4 -0
- package/src/mockOS/managers/navigationManager.ts +1 -1
- package/src/pages/ProjectPage.tsx +2 -0
- package/src/pages/tabs/SideTool.tsx +1 -22
- package/src/paywall/hooks/index.ts +0 -1
- package/src/store.ts +1 -6
- package/src/styles/base/_global.scss +2 -0
- package/src/utils/analyseNodeByPatterns.ts +4 -0
- package/src/utils/index.ts +1 -0
- package/src/utils/logRenderStore.ts +0 -1
- package/src/utils/novaToJson.ts +1 -5
- package/src/utils/parseColor.ts +1 -0
- package/src/utils/projectColors.ts +71 -0
- package/dist/build-components/Counter/Counter.d.ts +0 -2
- package/dist/build-components/Counter/CounterProps.generated.d.ts +0 -61
- package/dist/build-components/PaywallCounter/PaywallCounter.d.ts +0 -2
- package/dist/build-components/PaywallCounter/PaywallCounterProps.generated.d.ts +0 -61
- package/dist/paywall/hooks/useHandleGoBack.d.ts +0 -1
- package/src/build-components/Counter/Counter.tsx +0 -44
- package/src/build-components/Counter/CounterProps.generated.ts +0 -78
- package/src/build-components/Counter/pattern.json +0 -29
- package/src/build-components/PaywallCounter/PaywallCounter.tsx +0 -46
- package/src/build-components/PaywallCounter/PaywallCounterProps.generated.ts +0 -78
- package/src/build-components/PaywallCounter/pattern.json +0 -26
- package/src/paywall/hooks/useHandleGoBack.ts +0 -60
|
@@ -22,7 +22,6 @@ import type { CarouselDotsComponentProps } from './CarouselDots/CarouselDotsProp
|
|
|
22
22
|
import type { CarouselItemComponentProps } from './CarouselItem/CarouselItemProps.generated';
|
|
23
23
|
import type { CarouselProviderComponentProps } from './CarouselProvider/CarouselProviderProps.generated';
|
|
24
24
|
import type { CountDownComponentProps } from './CountDown/CountDownProps.generated';
|
|
25
|
-
import type { CounterComponentProps } from './Counter/CounterProps.generated';
|
|
26
25
|
import type { ImageComponentProps } from './Image/ImageProps.generated';
|
|
27
26
|
import type { MainComponentProps } from './Main/MainProps.generated';
|
|
28
27
|
import type { NavigationBarColorComponentProps } from './NavigationBarColor/NavigationBarColorProps.generated';
|
|
@@ -38,7 +37,6 @@ import type { OnboardSubtitleComponentProps } from './OnboardSubtitle/OnboardSub
|
|
|
38
37
|
import type { OnboardTitleComponentProps } from './OnboardTitle/OnboardTitleProps.generated';
|
|
39
38
|
import type { PaywallBackgroundComponentProps } from './PaywallBackground/PaywallBackgroundProps.generated';
|
|
40
39
|
import type { PaywallCloseButtonComponentProps } from './PaywallCloseButton/PaywallCloseButtonProps.generated';
|
|
41
|
-
import type { PaywallCounterComponentProps } from './PaywallCounter/PaywallCounterProps.generated';
|
|
42
40
|
import type { PaywallOptionsComponentProps } from './PaywallOptions/PaywallOptionsProps.generated';
|
|
43
41
|
import type { PaywallProviderComponentProps } from './PaywallProvider/PaywallProviderProps.generated';
|
|
44
42
|
import type { PaywallSubscribeButtonComponentProps } from './PaywallSubscribeButton/PaywallSubscribeButtonProps.generated';
|
|
@@ -56,7 +54,6 @@ import CarouselDots from './CarouselDots/CarouselDots';
|
|
|
56
54
|
import { CarouselItem } from './CarouselItem/CarouselItem';
|
|
57
55
|
import CarouselProvider from './CarouselProvider/CarouselProvider';
|
|
58
56
|
import { CountDown } from './CountDown/CountDown';
|
|
59
|
-
import { Counter } from './Counter/Counter';
|
|
60
57
|
import Image from './Image/Image';
|
|
61
58
|
import Main from './Main/Main';
|
|
62
59
|
import NavigationBarColor from './NavigationBarColor/NavigationBarColor';
|
|
@@ -72,7 +69,6 @@ import OnboardSubtitle from './OnboardSubtitle/OnboardSubtitle';
|
|
|
72
69
|
import OnboardTitle from './OnboardTitle/OnboardTitle';
|
|
73
70
|
import PaywallBackground from './PaywallBackground/PaywallBackground';
|
|
74
71
|
import PaywallCloseButton from './PaywallCloseButton/PaywallCloseButton';
|
|
75
|
-
import { PaywallCounter } from './PaywallCounter/PaywallCounter';
|
|
76
72
|
import PaywallOptions from './PaywallOptions/PaywallOptions';
|
|
77
73
|
import PaywallProvider from './PaywallProvider/PaywallProvider';
|
|
78
74
|
import PaywallSubscribeButton from './PaywallSubscribeButton/PaywallSubscribeButton';
|
|
@@ -92,7 +88,6 @@ type BuilderNode =
|
|
|
92
88
|
| (CarouselItemComponentProps['node'] & { type: 'CarouselItem' })
|
|
93
89
|
| (CarouselProviderComponentProps['node'] & { type: 'CarouselProvider' })
|
|
94
90
|
| (CountDownComponentProps['node'] & { type: 'CountDown' })
|
|
95
|
-
| (CounterComponentProps['node'] & { type: 'Counter' })
|
|
96
91
|
| (ImageComponentProps['node'] & { type: 'Image' })
|
|
97
92
|
| (MainComponentProps['node'] & { type: 'Main' })
|
|
98
93
|
| (NavigationBarColorComponentProps['node'] & { type: 'NavigationBarColor' })
|
|
@@ -108,7 +103,6 @@ type BuilderNode =
|
|
|
108
103
|
| (OnboardTitleComponentProps['node'] & { type: 'OnboardTitle' })
|
|
109
104
|
| (PaywallBackgroundComponentProps['node'] & { type: 'PaywallBackground' })
|
|
110
105
|
| (PaywallCloseButtonComponentProps['node'] & { type: 'PaywallCloseButton' })
|
|
111
|
-
| (PaywallCounterComponentProps['node'] & { type: 'PaywallCounter' })
|
|
112
106
|
| (PaywallOptionsComponentProps['node'] & { type: 'PaywallOptions' })
|
|
113
107
|
| (PaywallProviderComponentProps['node'] & { type: 'PaywallProvider' })
|
|
114
108
|
| (PaywallSubscribeButtonComponentProps['node'] & {
|
|
@@ -168,8 +162,6 @@ function RenderNode({ node }: { node: Node }) {
|
|
|
168
162
|
return <CarouselProvider node={normalizedNode} />;
|
|
169
163
|
case 'CountDown':
|
|
170
164
|
return <CountDown node={normalizedNode} />;
|
|
171
|
-
case 'Counter':
|
|
172
|
-
return <Counter node={normalizedNode} />;
|
|
173
165
|
case 'Image':
|
|
174
166
|
return <Image node={normalizedNode} />;
|
|
175
167
|
case 'Main':
|
|
@@ -200,8 +192,6 @@ function RenderNode({ node }: { node: Node }) {
|
|
|
200
192
|
return <PaywallBackground node={normalizedNode} />;
|
|
201
193
|
case 'PaywallCloseButton':
|
|
202
194
|
return <PaywallCloseButton node={normalizedNode} />;
|
|
203
|
-
case 'PaywallCounter':
|
|
204
|
-
return <PaywallCounter node={normalizedNode} />;
|
|
205
195
|
case 'PaywallOptions':
|
|
206
196
|
return <PaywallOptions node={normalizedNode} />;
|
|
207
197
|
case 'PaywallProvider':
|
|
@@ -14,12 +14,7 @@
|
|
|
14
14
|
"fontSize": "size",
|
|
15
15
|
"fontFamily": "fontFamily",
|
|
16
16
|
"fontWeight": "fontWeight",
|
|
17
|
-
"textAlign": [
|
|
18
|
-
"left",
|
|
19
|
-
"center",
|
|
20
|
-
"right",
|
|
21
|
-
"justify"
|
|
22
|
-
]
|
|
17
|
+
"textAlign": ["left", "center", "right", "justify"]
|
|
23
18
|
}
|
|
24
19
|
},
|
|
25
20
|
"defaults": {
|
|
@@ -31,9 +26,7 @@
|
|
|
31
26
|
}
|
|
32
27
|
},
|
|
33
28
|
"meta": {
|
|
34
|
-
"desiredParent": [
|
|
35
|
-
"all"
|
|
36
|
-
],
|
|
29
|
+
"desiredParent": ["all"],
|
|
37
30
|
"label": "Text",
|
|
38
31
|
"description": "Displays simple text.",
|
|
39
32
|
"styles": {
|
|
@@ -8,15 +8,8 @@
|
|
|
8
8
|
"attributes": {
|
|
9
9
|
"scrollable": "boolean",
|
|
10
10
|
"style": {
|
|
11
|
-
"flexDirection": [
|
|
12
|
-
|
|
13
|
-
"column"
|
|
14
|
-
],
|
|
15
|
-
"flexWrap": [
|
|
16
|
-
"nowrap",
|
|
17
|
-
"wrap",
|
|
18
|
-
"wrap-reverse"
|
|
19
|
-
],
|
|
11
|
+
"flexDirection": ["row", "column"],
|
|
12
|
+
"flexWrap": ["nowrap", "wrap", "wrap-reverse"],
|
|
20
13
|
"alignItems": [
|
|
21
14
|
"flex-start",
|
|
22
15
|
"center",
|
|
@@ -56,10 +49,7 @@
|
|
|
56
49
|
"minHeight": "size",
|
|
57
50
|
"maxHeight": "size",
|
|
58
51
|
"flex": "number",
|
|
59
|
-
"position": [
|
|
60
|
-
"relative",
|
|
61
|
-
"absolute"
|
|
62
|
-
],
|
|
52
|
+
"position": ["relative", "absolute"],
|
|
63
53
|
"top": "size",
|
|
64
54
|
"bottom": "size",
|
|
65
55
|
"left": "size",
|
|
@@ -69,9 +59,7 @@
|
|
|
69
59
|
}
|
|
70
60
|
},
|
|
71
61
|
"meta": {
|
|
72
|
-
"desiredParent": [
|
|
73
|
-
"all"
|
|
74
|
-
],
|
|
62
|
+
"desiredParent": ["all"],
|
|
75
63
|
"label": "View",
|
|
76
64
|
"description": "Base layout container.",
|
|
77
65
|
"specialCategories": {
|
|
@@ -14,7 +14,6 @@ export const allcomponentNames = [
|
|
|
14
14
|
'CarouselItem',
|
|
15
15
|
'CarouselProvider',
|
|
16
16
|
'CountDown',
|
|
17
|
-
'Counter',
|
|
18
17
|
'Image',
|
|
19
18
|
'Main',
|
|
20
19
|
'NavigationBarColor',
|
|
@@ -30,7 +29,6 @@ export const allcomponentNames = [
|
|
|
30
29
|
'OnboardTitle',
|
|
31
30
|
'PaywallBackground',
|
|
32
31
|
'PaywallCloseButton',
|
|
33
|
-
'PaywallCounter',
|
|
34
32
|
'PaywallOptions',
|
|
35
33
|
'PaywallProvider',
|
|
36
34
|
'PaywallSubscribeButton',
|
|
@@ -77,10 +75,6 @@ export type {
|
|
|
77
75
|
CountDownPropsGenerated,
|
|
78
76
|
CountDownComponentProps,
|
|
79
77
|
} from './CountDown/CountDownProps.generated';
|
|
80
|
-
export type {
|
|
81
|
-
CounterPropsGenerated,
|
|
82
|
-
CounterComponentProps,
|
|
83
|
-
} from './Counter/CounterProps.generated';
|
|
84
78
|
export type {
|
|
85
79
|
ImagePropsGenerated,
|
|
86
80
|
ImageComponentProps,
|
|
@@ -141,10 +135,6 @@ export type {
|
|
|
141
135
|
PaywallCloseButtonPropsGenerated,
|
|
142
136
|
PaywallCloseButtonComponentProps,
|
|
143
137
|
} from './PaywallCloseButton/PaywallCloseButtonProps.generated';
|
|
144
|
-
export type {
|
|
145
|
-
PaywallCounterPropsGenerated,
|
|
146
|
-
PaywallCounterComponentProps,
|
|
147
|
-
} from './PaywallCounter/PaywallCounterProps.generated';
|
|
148
138
|
export type {
|
|
149
139
|
PaywallOptionsPropsGenerated,
|
|
150
140
|
PaywallOptionsComponentProps,
|