@developer_tribe/react-builder 1.2.23 → 1.2.24
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/attribute-analyser/style/native/useExtractImageStyle.d.ts +5 -5
- package/dist/attribute-analyser/style/native/useExtractTextStyle.d.ts +6 -4
- package/dist/attribute-analyser/style/native/useExtractViewStyle.d.ts +5 -3
- package/dist/build-components/patterns.generated.d.ts +8 -0
- package/dist/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.esm.js +4 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.web.cjs.js +4 -4
- 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/utils/attributeStyle.d.ts +12 -0
- package/package.json +6 -1
- package/src/assets/meta.json +1 -1
- package/src/assets/samples/paywall-1.json +5 -5
- package/src/assets/samples/paywall-2.json +5 -5
- package/src/attribute-analyser/style/native/useExtractImageStyle.ts +19 -15
- package/src/attribute-analyser/style/native/useExtractTextStyle.ts +25 -15
- package/src/attribute-analyser/style/native/useExtractViewStyle.ts +19 -21
- package/src/build-components/Image/pattern.json +3 -0
- package/src/build-components/OnboardButton/OnboardButton.tsx +19 -5
- package/src/build-components/OnboardFooter/OnboardFooter.tsx +15 -4
- package/src/build-components/patterns.generated.ts +4 -0
- package/src/components/BuilderProvider.tsx +6 -6
- package/src/index.ts +3 -0
- package/src/utils/attributeStyle.ts +78 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import type { ImageStyle } from 'react-native';
|
|
1
2
|
import type { NodeData } from '../../../types/Node';
|
|
2
3
|
import type { ImagePropsGenerated, ResizeModeOptionType } from '../../../build-components/Image/ImageProps.generated';
|
|
4
|
+
import { type StyleAttrKey } from '../../../utils/attributeStyle';
|
|
3
5
|
export declare function useExtractImageStyle<T extends ImagePropsGenerated['attributes']>(node: NodeData<T>): {
|
|
4
|
-
style:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
other: {
|
|
8
|
-
resizeMode: ResizeModeOptionType | undefined;
|
|
6
|
+
style: ImageStyle;
|
|
7
|
+
other: Omit<T, StyleAttrKey> & {
|
|
8
|
+
resizeMode?: ResizeModeOptionType;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import type { TextStyle } from 'react-native';
|
|
1
2
|
import type { NodeData } from '../../../types/Node';
|
|
2
3
|
import type { TextPropsGenerated } from '../../../build-components/Text/TextProps.generated';
|
|
4
|
+
import { type StyleAttrKey } from '../../../utils/attributeStyle';
|
|
3
5
|
export declare function useExtractTextStyle<T extends TextPropsGenerated['attributes']>(node: NodeData<T>): {
|
|
4
|
-
style:
|
|
5
|
-
other: {
|
|
6
|
-
adjustsFontSizeToFit
|
|
7
|
-
showEllipsis
|
|
6
|
+
style: TextStyle;
|
|
7
|
+
other: Omit<T, StyleAttrKey> & {
|
|
8
|
+
adjustsFontSizeToFit?: boolean;
|
|
9
|
+
showEllipsis?: boolean;
|
|
8
10
|
};
|
|
9
11
|
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import type { ViewStyle } from 'react-native';
|
|
1
2
|
import type { NodeData } from '../../../types/Node';
|
|
2
3
|
import type { ViewPropsGenerated } from '../../../build-components/View/ViewProps.generated';
|
|
4
|
+
import { type StyleAttrKey } from '../../../utils/attributeStyle';
|
|
3
5
|
export declare function useExtractViewStyle<T extends ViewPropsGenerated['attributes']>(node: NodeData<T>): {
|
|
4
|
-
style:
|
|
5
|
-
other: {
|
|
6
|
-
scrollable
|
|
6
|
+
style: ViewStyle;
|
|
7
|
+
other: Omit<T, StyleAttrKey> & {
|
|
8
|
+
scrollable?: boolean;
|
|
7
9
|
};
|
|
8
10
|
};
|
|
@@ -4028,6 +4028,9 @@ export declare const patterns: readonly [{
|
|
|
4028
4028
|
readonly description: "description";
|
|
4029
4029
|
readonly src: "string";
|
|
4030
4030
|
};
|
|
4031
|
+
readonly defaults: {
|
|
4032
|
+
readonly resizeMode: "contain";
|
|
4033
|
+
};
|
|
4031
4034
|
};
|
|
4032
4035
|
readonly meta: {
|
|
4033
4036
|
readonly desiredParent: readonly ["all"];
|
|
@@ -4350,6 +4353,7 @@ export declare const patterns: readonly [{
|
|
|
4350
4353
|
};
|
|
4351
4354
|
};
|
|
4352
4355
|
readonly defaults: {
|
|
4356
|
+
readonly resizeMode: "contain";
|
|
4353
4357
|
readonly style: {
|
|
4354
4358
|
readonly flexDirection: "column";
|
|
4355
4359
|
readonly position: "relative";
|
|
@@ -7289,6 +7293,9 @@ export declare const patterns: readonly [{
|
|
|
7289
7293
|
readonly video_url: "string";
|
|
7290
7294
|
readonly lottie: "string";
|
|
7291
7295
|
};
|
|
7296
|
+
readonly defaults: {
|
|
7297
|
+
readonly resizeMode: "contain";
|
|
7298
|
+
};
|
|
7292
7299
|
};
|
|
7293
7300
|
readonly meta: {
|
|
7294
7301
|
readonly desiredParent: readonly [">OnboardProvider", ">OnboardItem", "!=Onboard"];
|
|
@@ -7625,6 +7632,7 @@ export declare const patterns: readonly [{
|
|
|
7625
7632
|
};
|
|
7626
7633
|
};
|
|
7627
7634
|
readonly defaults: {
|
|
7635
|
+
readonly resizeMode: "contain";
|
|
7628
7636
|
readonly style: {
|
|
7629
7637
|
readonly flexDirection: "column";
|
|
7630
7638
|
readonly position: "relative";
|