@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.
@@ -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
- [x: string]: unknown;
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: Record<string, unknown>;
5
- other: {
6
- adjustsFontSizeToFit: boolean | undefined;
7
- showEllipsis: boolean | undefined;
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: Record<string, unknown>;
5
- other: {
6
- scrollable: boolean | undefined;
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";