@developer_tribe/react-builder 1.2.29 → 1.2.31

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.
Files changed (109) hide show
  1. package/dist/RenderPage.d.ts +7 -2
  2. package/dist/attributes-editor/attributesEditorModelTypes.d.ts +0 -1
  3. package/dist/build-components/BIcon/BIcon.d.ts +1 -1
  4. package/dist/build-components/BackgroundImage/BackgroundImage.d.ts +1 -1
  5. package/dist/build-components/Button/Button.d.ts +1 -1
  6. package/dist/build-components/CarouselDots/CarouselDotsProps.generated.d.ts +4 -0
  7. package/dist/build-components/OnboardButton/OnboardButton.d.ts +1 -1
  8. package/dist/build-components/OnboardButton/OnboardButtonProps.generated.d.ts +0 -2
  9. package/dist/build-components/OnboardDot/OnboardDot.d.ts +1 -1
  10. package/dist/build-components/PaywallCloseButton/PaywallCloseButton.d.ts +1 -1
  11. package/dist/build-components/Text/Text.d.ts +1 -1
  12. package/dist/build-components/index.generated.d.ts +38 -0
  13. package/dist/build-components/patterns.generated.d.ts +11 -17
  14. package/dist/components/BuilderProvider.d.ts +9 -15
  15. package/dist/hooks/useLocalize.d.ts +3 -2
  16. package/dist/hooks/usePreviewSelection.d.ts +12 -0
  17. package/dist/index.cjs.js +1 -28
  18. package/dist/index.cjs.js.map +1 -1
  19. package/dist/index.d.ts +2 -2
  20. package/dist/index.esm.js +1 -28
  21. package/dist/index.esm.js.map +1 -1
  22. package/dist/index.web.cjs.js +4 -4
  23. package/dist/index.web.cjs.js.map +1 -1
  24. package/dist/index.web.esm.js +4 -4
  25. package/dist/index.web.esm.js.map +1 -1
  26. package/dist/logger.d.ts +3 -6
  27. package/dist/modals/IconPickerModal.d.ts +1 -1
  28. package/dist/pages/DebugJsonPage.d.ts +1 -4
  29. package/dist/size-matters/index.d.ts +15 -6
  30. package/dist/store.d.ts +5 -3
  31. package/dist/types/Icons.generated.d.ts +2 -0
  32. package/dist/types/PreviewConfig.d.ts +6 -8
  33. package/dist/types/Project.d.ts +4 -3
  34. package/dist/utils/extractTextStyle/extractTextStyle.d.ts +2 -0
  35. package/dist/utils/extractTextStyle/extractTextStyleNative.d.ts +2 -0
  36. package/dist/utils/extractViewStyle/extractViewStyle.d.ts +2 -0
  37. package/dist/utils/extractViewStyle/extractViewStyleNative.d.ts +2 -0
  38. package/dist/utils/useMergedStyle.d.ts +1 -1
  39. package/package.json +1 -1
  40. package/scripts/prebuild/utils/validateAllComponentsOrThrow.js +19 -9
  41. package/src/RenderPage.tsx +66 -57
  42. package/src/assets/.DS_Store +0 -0
  43. package/src/assets/meta.json +1 -1
  44. package/src/assets/samples/carousel-sample.json +2 -6
  45. package/src/assets/samples/getSamples.ts +14 -4
  46. package/src/assets/samples/vpn-onboard-1.json +21 -21
  47. package/src/assets/samples/vpn-onboard-2.json +21 -45
  48. package/src/assets/samples/vpn-onboard-3.json +21 -53
  49. package/src/assets/samples/vpn-onboard-4.json +21 -21
  50. package/src/assets/samples/vpn-onboard-5.json +33 -33
  51. package/src/assets/samples/vpn-onboard-6.json +21 -21
  52. package/src/assets/samples/vpn-onboard-7.json +21 -21
  53. package/src/attribute-analyser/style/native/useExtractImageStyle.ts +3 -3
  54. package/src/attribute-analyser/style/native/useExtractTextStyle.ts +8 -2
  55. package/src/attribute-analyser/style/native/useExtractViewStyle.ts +7 -3
  56. package/src/attribute-analyser/style/web/useExtractImageStyle.ts +3 -3
  57. package/src/attribute-analyser/style/web/useExtractTextStyle.ts +8 -2
  58. package/src/attribute-analyser/style/web/useExtractViewStyle.ts +3 -3
  59. package/src/attributes-editor/AttributesEditorFields.tsx +1 -1
  60. package/src/attributes-editor/attributesEditorModelTypes.ts +0 -3
  61. package/src/attributes-editor/useAttributesEditorModel.ts +0 -3
  62. package/src/build-components/BIcon/BIcon.tsx +2 -2
  63. package/src/build-components/BackgroundImage/BackgroundImage.tsx +1 -1
  64. package/src/build-components/Button/Button.tsx +3 -3
  65. package/src/build-components/CarouselDots/CarouselDots.tsx +10 -19
  66. package/src/build-components/CarouselDots/CarouselDotsProps.generated.ts +4 -0
  67. package/src/build-components/CarouselDots/pattern.json +12 -1
  68. package/src/build-components/Main/Main.tsx +1 -0
  69. package/src/build-components/OnboardButton/OnboardButton.tsx +13 -11
  70. package/src/build-components/OnboardButton/OnboardButtonProps.generated.ts +0 -2
  71. package/src/build-components/OnboardButton/pattern.json +0 -16
  72. package/src/build-components/OnboardDot/OnboardDot.tsx +19 -25
  73. package/src/build-components/OnboardDot/pattern.json +2 -1
  74. package/src/build-components/OnboardFooter/OnboardFooter.tsx +4 -5
  75. package/src/build-components/PaywallCloseButton/PaywallCloseButton.tsx +2 -2
  76. package/src/build-components/PaywallSubscribeButton/PaywallSubscribeButton.tsx +2 -2
  77. package/src/build-components/RadioButton/RadioButton.tsx +6 -3
  78. package/src/build-components/RenderNode.generated.tsx +7 -7
  79. package/src/build-components/Text/Text.tsx +3 -3
  80. package/src/build-components/index.generated.ts +184 -0
  81. package/src/build-components/patterns.generated.ts +11 -17
  82. package/src/components/BottomBar.tsx +7 -9
  83. package/src/components/BuilderProvider.tsx +47 -84
  84. package/src/components/EditorHeader.tsx +6 -3
  85. package/src/hooks/useLocalize.ts +14 -10
  86. package/src/hooks/usePreviewSelection.ts +66 -0
  87. package/src/index.ts +0 -2
  88. package/src/logger.ts +4 -20
  89. package/src/modals/IconPickerModal.tsx +1 -1
  90. package/src/modals/InspectModal.tsx +6 -7
  91. package/src/pages/DebugJsonPage.tsx +0 -6
  92. package/src/pages/ProjectPage.tsx +12 -57
  93. package/src/pages/tabs/SideTool.tsx +7 -7
  94. package/src/product-base/extractAndroidParams.ts +4 -11
  95. package/src/product-base/extractIOSParams.ts +4 -10
  96. package/src/size-matters/index.ts +44 -31
  97. package/src/store.ts +12 -6
  98. package/src/styles/modals/_inspect-modal.scss +7 -3
  99. package/src/types/Icons.generated.ts +244 -0
  100. package/src/types/PreviewConfig.ts +5 -9
  101. package/src/types/Project.ts +4 -3
  102. package/src/utils/extractImageStyle.ts +4 -2
  103. package/src/utils/extractTextStyle/extractTextStyle.ts +6 -1
  104. package/src/utils/extractTextStyle/extractTextStyleNative.ts +4 -1
  105. package/src/utils/extractViewStyle/extractViewStyle.ts +7 -5
  106. package/src/utils/extractViewStyle/extractViewStyleNative.ts +3 -1
  107. package/src/utils/getDefaultProject.ts +0 -1
  108. package/src/utils/projectColors.ts +3 -2
  109. package/src/utils/useMergedStyle.ts +9 -7
@@ -1,5 +1,5 @@
1
1
  import { Node } from './types/Node';
2
- import { type BuilderProviderParams } from './components/BuilderProvider';
2
+ import { BuilderProviderParams } from './components/BuilderProvider';
3
3
  export type ScreenStyle = {
4
4
  light: {
5
5
  backgroundColor: string;
@@ -16,7 +16,12 @@ interface RenderPageProps {
16
16
  data: Node;
17
17
  name: string;
18
18
  onSelectNode?: (node: Node | null) => void;
19
- params: BuilderProviderParams;
19
+ /**
20
+ * Optional overrides for the builder provider.
21
+ * Useful for debug views or isolated rendering where we want to Inject
22
+ * specific mocks (products, benefits) instead of reading from the global store.
23
+ */
24
+ params?: Partial<BuilderProviderParams>;
20
25
  }
21
26
  export declare function RenderPage({ data, name, onSelectNode, params, }: RenderPageProps): import("react/jsx-runtime").JSX.Element;
22
27
  export {};
@@ -32,7 +32,6 @@ export type AttributesEditorModel = {
32
32
  isInvalidNode: boolean;
33
33
  baseData: NodeData<NodeDefaultAttribute>;
34
34
  data: NodeData<NodeDefaultAttribute>;
35
- appConfig: unknown;
36
35
  projectFonts: Fonts;
37
36
  loadedFonts: string[] | undefined;
38
37
  markFontLoaded: (fontFamily: string) => void;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import type { BIconComponentProps } from './BIconProps.generated';
3
- declare function BIcon({ node }: BIconComponentProps): import("react/jsx-runtime").JSX.Element;
3
+ export declare function BIcon({ node }: BIconComponentProps): import("react/jsx-runtime").JSX.Element;
4
4
  declare const _default: React.MemoExoticComponent<typeof BIcon>;
5
5
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import type { BackgroundImageComponentProps } from './BackgroundImageProps.generated';
3
- declare function BackgroundImage({ node }: BackgroundImageComponentProps): import("react/jsx-runtime").JSX.Element;
3
+ export declare function BackgroundImage({ node }: BackgroundImageComponentProps): import("react/jsx-runtime").JSX.Element;
4
4
  declare const _default: React.MemoExoticComponent<typeof BackgroundImage>;
5
5
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import type { ButtonComponentProps } from './ButtonProps.generated';
3
- declare function Button({ node }: ButtonComponentProps): import("react/jsx-runtime").JSX.Element;
3
+ export declare function Button({ node }: ButtonComponentProps): import("react/jsx-runtime").JSX.Element;
4
4
  declare const _default: React.MemoExoticComponent<typeof Button>;
5
5
  export default _default;
@@ -47,6 +47,10 @@ export interface CarouselDotsPropsGenerated {
47
47
  style?: CarouselDotsStyleGenerated;
48
48
  scrollable?: boolean;
49
49
  dotType?: DotTypeOptionType;
50
+ dot_thickness?: string;
51
+ inactive_dot_opacity?: number;
52
+ inactive_dot_color?: string;
53
+ active_dot_color?: string;
50
54
  };
51
55
  }
52
56
  export interface CarouselDotsComponentProps {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import type { OnboardButtonComponentProps } from './OnboardButtonProps.generated';
3
- declare function OnboardButton({ node }: OnboardButtonComponentProps): import("react/jsx-runtime").JSX.Element;
3
+ export declare function OnboardButton({ node }: OnboardButtonComponentProps): import("react/jsx-runtime").JSX.Element;
4
4
  declare const _default: React.MemoExoticComponent<typeof OnboardButton>;
5
5
  export default _default;
@@ -55,10 +55,8 @@ export interface OnboardButtonPropsGenerated {
55
55
  style?: OnboardButtonStyleGenerated;
56
56
  scrollable?: boolean;
57
57
  labelKey?: string;
58
- button_text_color?: string;
59
58
  animation?: AnimationOptionType;
60
59
  animation_color?: string;
61
- button_background_color?: string;
62
60
  flex?: number;
63
61
  events?: EventObjectGenerated[];
64
62
  };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import type { OnboardDotComponentProps } from './OnboardDotProps.generated';
3
- declare function OnboardDot({ node }: OnboardDotComponentProps): import("react/jsx-runtime").JSX.Element;
3
+ export declare function OnboardDot({ node }: OnboardDotComponentProps): import("react/jsx-runtime").JSX.Element;
4
4
  declare const _default: React.MemoExoticComponent<typeof OnboardDot>;
5
5
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import type { PaywallCloseButtonComponentProps } from './PaywallCloseButtonProps.generated';
3
- declare function PaywallCloseButton({ node }: PaywallCloseButtonComponentProps): import("react/jsx-runtime").JSX.Element | null;
3
+ export declare function PaywallCloseButton({ node }: PaywallCloseButtonComponentProps): import("react/jsx-runtime").JSX.Element | null;
4
4
  declare const _default: React.MemoExoticComponent<typeof PaywallCloseButton>;
5
5
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import type { TextComponentProps } from './TextProps.generated';
3
- declare function Text({ node }: TextComponentProps): import("react/jsx-runtime").JSX.Element;
3
+ export declare function Text({ node }: TextComponentProps): import("react/jsx-runtime").JSX.Element;
4
4
  declare const _default: React.MemoExoticComponent<typeof Text>;
5
5
  export default _default;
@@ -0,0 +1,38 @@
1
+ export { default as RenderNode } from './RenderNode.generated';
2
+ export { patterns } from './patterns.generated';
3
+ export declare const allcomponentNames: readonly ["BIcon", "BackgroundImage", "Button", "Carousel", "CarouselButtons", "CarouselDots", "CarouselItem", "CarouselProvider", "CountDown", "Image", "Main", "NavigationBarColor", "Onboard", "OnboardButton", "OnboardButtons", "OnboardDot", "OnboardFooter", "OnboardImage", "OnboardItem", "OnboardProvider", "OnboardSubtitle", "OnboardTitle", "PaywallBackground", "PaywallCloseButton", "PaywallOptions", "PaywallProvider", "PaywallSubscribeButton", "PriceTag", "Pricing", "Promo", "RadioButton", "Separator", "StatusBarColor", "Text", "View"];
4
+ export type { BIconPropsGenerated, BIconComponentProps, } from './BIcon/BIconProps.generated';
5
+ export type { BackgroundImagePropsGenerated, BackgroundImageComponentProps, } from './BackgroundImage/BackgroundImageProps.generated';
6
+ export type { ButtonPropsGenerated, ButtonComponentProps, } from './Button/ButtonProps.generated';
7
+ export type { CarouselPropsGenerated, CarouselComponentProps, } from './Carousel/CarouselProps.generated';
8
+ export type { CarouselButtonsPropsGenerated, CarouselButtonsComponentProps, } from './CarouselButtons/CarouselButtonsProps.generated';
9
+ export type { CarouselDotsPropsGenerated, CarouselDotsComponentProps, } from './CarouselDots/CarouselDotsProps.generated';
10
+ export type { CarouselItemPropsGenerated, CarouselItemComponentProps, } from './CarouselItem/CarouselItemProps.generated';
11
+ export type { CarouselProviderPropsGenerated, CarouselProviderComponentProps, } from './CarouselProvider/CarouselProviderProps.generated';
12
+ export type { CountDownPropsGenerated, CountDownComponentProps, } from './CountDown/CountDownProps.generated';
13
+ export type { ImagePropsGenerated, ImageComponentProps, } from './Image/ImageProps.generated';
14
+ export type { MainPropsGenerated, MainComponentProps, } from './Main/MainProps.generated';
15
+ export type { NavigationBarColorPropsGenerated, NavigationBarColorComponentProps, } from './NavigationBarColor/NavigationBarColorProps.generated';
16
+ export type { OnboardPropsGenerated, OnboardComponentProps, } from './Onboard/OnboardProps.generated';
17
+ export type { OnboardButtonPropsGenerated, OnboardButtonComponentProps, } from './OnboardButton/OnboardButtonProps.generated';
18
+ export type { OnboardButtonsPropsGenerated, OnboardButtonsComponentProps, } from './OnboardButtons/OnboardButtonsProps.generated';
19
+ export type { OnboardDotPropsGenerated, OnboardDotComponentProps, } from './OnboardDot/OnboardDotProps.generated';
20
+ export type { OnboardFooterPropsGenerated, OnboardFooterComponentProps, } from './OnboardFooter/OnboardFooterProps.generated';
21
+ export type { OnboardImagePropsGenerated, OnboardImageComponentProps, } from './OnboardImage/OnboardImageProps.generated';
22
+ export type { OnboardItemPropsGenerated, OnboardItemComponentProps, } from './OnboardItem/OnboardItemProps.generated';
23
+ export type { OnboardProviderPropsGenerated, OnboardProviderComponentProps, } from './OnboardProvider/OnboardProviderProps.generated';
24
+ export type { OnboardSubtitlePropsGenerated, OnboardSubtitleComponentProps, } from './OnboardSubtitle/OnboardSubtitleProps.generated';
25
+ export type { OnboardTitlePropsGenerated, OnboardTitleComponentProps, } from './OnboardTitle/OnboardTitleProps.generated';
26
+ export type { PaywallBackgroundPropsGenerated, PaywallBackgroundComponentProps, } from './PaywallBackground/PaywallBackgroundProps.generated';
27
+ export type { PaywallCloseButtonPropsGenerated, PaywallCloseButtonComponentProps, } from './PaywallCloseButton/PaywallCloseButtonProps.generated';
28
+ export type { PaywallOptionsPropsGenerated, PaywallOptionsComponentProps, } from './PaywallOptions/PaywallOptionsProps.generated';
29
+ export type { PaywallProviderPropsGenerated, PaywallProviderComponentProps, } from './PaywallProvider/PaywallProviderProps.generated';
30
+ export type { PaywallSubscribeButtonPropsGenerated, PaywallSubscribeButtonComponentProps, } from './PaywallSubscribeButton/PaywallSubscribeButtonProps.generated';
31
+ export type { PriceTagPropsGenerated, PriceTagComponentProps, } from './PriceTag/PriceTagProps.generated';
32
+ export type { PricingPropsGenerated, PricingComponentProps, } from './Pricing/PricingProps.generated';
33
+ export type { PromoPropsGenerated, PromoComponentProps, } from './Promo/PromoProps.generated';
34
+ export type { RadioButtonPropsGenerated, RadioButtonComponentProps, } from './RadioButton/RadioButtonProps.generated';
35
+ export type { SeparatorPropsGenerated, SeparatorComponentProps, } from './Separator/SeparatorProps.generated';
36
+ export type { StatusBarColorPropsGenerated, StatusBarColorComponentProps, } from './StatusBarColor/StatusBarColorProps.generated';
37
+ export type { TextPropsGenerated, TextComponentProps, } from './Text/TextProps.generated';
38
+ export type { ViewPropsGenerated, ViewComponentProps, } from './View/ViewProps.generated';
@@ -2021,6 +2021,10 @@ export declare const patterns: readonly [{
2021
2021
  readonly zIndex: "number";
2022
2022
  };
2023
2023
  readonly dotType: readonly ["expanding_dot", "normal_dot", "scaling_dot", "sliding_border", "sliding_dot", "liquid_like"];
2024
+ readonly dot_thickness: "size";
2025
+ readonly inactive_dot_opacity: "number";
2026
+ readonly inactive_dot_color: "color";
2027
+ readonly active_dot_color: "color";
2024
2028
  };
2025
2029
  };
2026
2030
  readonly meta: {
@@ -2345,6 +2349,11 @@ export declare const patterns: readonly [{
2345
2349
  readonly flexGrow: 0;
2346
2350
  readonly flexShrink: 0;
2347
2351
  };
2352
+ readonly dotType: "expanding_dot";
2353
+ readonly dot_thickness: 10;
2354
+ readonly inactive_dot_opacity: 0.3;
2355
+ readonly active_dot_color: "STATIC_COLORS.ONBOARD_DOT_ACTIVE";
2356
+ readonly inactive_dot_color: "THEME_COLORS.BACKGROUND";
2348
2357
  };
2349
2358
  readonly types: {};
2350
2359
  }, {
@@ -5047,10 +5056,8 @@ export declare const patterns: readonly [{
5047
5056
  readonly zIndex: "number";
5048
5057
  };
5049
5058
  readonly labelKey: "string";
5050
- readonly button_text_color: "color";
5051
5059
  readonly animation: readonly ["simple-animation", "line-animation", "blur", "blur-animation", "blur-line-animation"];
5052
5060
  readonly animation_color: "color";
5053
- readonly button_background_color: "color";
5054
5061
  readonly flex: "number";
5055
5062
  readonly events: "EventObject[]";
5056
5063
  };
@@ -5101,13 +5108,6 @@ export declare const patterns: readonly [{
5101
5108
  readonly sort: 21;
5102
5109
  readonly preferredScale: "s";
5103
5110
  };
5104
- readonly button_text_color: {
5105
- readonly label: "Button Text Color";
5106
- readonly description: "Text color of the button.";
5107
- readonly category: "style";
5108
- readonly specialCategory: null;
5109
- readonly sort: 2;
5110
- };
5111
5111
  readonly animation: {
5112
5112
  readonly label: "Animation";
5113
5113
  readonly description: "Animation style for the button.";
@@ -5122,13 +5122,6 @@ export declare const patterns: readonly [{
5122
5122
  readonly specialCategory: null;
5123
5123
  readonly sort: 4;
5124
5124
  };
5125
- readonly button_background_color: {
5126
- readonly label: "Button Background Color";
5127
- readonly description: "Background color of the button.";
5128
- readonly category: "style";
5129
- readonly specialCategory: null;
5130
- readonly sort: 5;
5131
- };
5132
5125
  };
5133
5126
  readonly attributes: {
5134
5127
  readonly scrollable: {
@@ -6260,7 +6253,8 @@ export declare const patterns: readonly [{
6260
6253
  readonly dotType: "expanding_dot";
6261
6254
  readonly dot_thickness: 10;
6262
6255
  readonly inactive_dot_opacity: 0.3;
6263
- readonly active_dot_color: "#007AFF";
6256
+ readonly active_dot_color: "STATIC_COLORS.ONBOARD_DOT_ACTIVE";
6257
+ readonly inactive_dot_color: "THEME_COLORS.BACKGROUND";
6264
6258
  };
6265
6259
  readonly types: {};
6266
6260
  }, {
@@ -1,13 +1,11 @@
1
1
  import React from 'react';
2
2
  import type { Product } from '../paywall/types/paywall-types';
3
3
  import type { PaywallBenefits } from '../paywall/types/benefits';
4
- import { type AppConfig, type Theme } from '../types/PreviewConfig';
4
+ import { type Theme, type Localication, type BaseSize } from '../types/PreviewConfig';
5
5
  import type { Fonts } from '../types/Fonts';
6
6
  import type { ProjectColors } from '../types/Project';
7
7
  export type Products = Product;
8
8
  export type BuilderProviderParams = {
9
- mockProducts: Products[];
10
- mockBenefits: PaywallBenefits;
11
9
  /**
12
10
  * Render platform for style extraction + meta filtering.
13
11
  * - 'web' (default): returns CSS-friendly styles for DOM rendering.
@@ -15,22 +13,18 @@ export type BuilderProviderParams = {
15
13
  */
16
14
  platform?: 'web' | 'native';
17
15
  onPaywallSubscribe?: (product?: Product) => void | boolean | Promise<boolean>;
18
- /**
19
- * Optional runtime config + styling inputs.
20
- * These are intentionally passed down via BuilderProvider so `build-components`
21
- * never need to touch `useRenderStore`.
22
- */
23
- theme?: Theme;
24
- defaultLanguage?: string;
25
- appConfig?: AppConfig;
16
+ mockProducts?: Products[];
17
+ mockBenefits?: PaywallBenefits;
18
+ mockTheme?: Theme;
19
+ mockDefaultLanguage?: string;
20
+ localization?: Localication;
21
+ baseSize?: BaseSize;
26
22
  projectColors?: ProjectColors;
27
23
  fonts?: Fonts;
28
- appFont?: string | undefined;
29
- /**
30
- * Optional selection info (used by builder UI; ignored by host runtime).
31
- */
32
24
  previewMode?: boolean;
33
25
  selectedKey?: string;
26
+ theme?: Theme;
27
+ defaultLanguage?: string;
34
28
  };
35
29
  type BuilderProviderProps = {
36
30
  params: BuilderProviderParams;
@@ -1,5 +1,6 @@
1
- import type { AppConfig } from '../types/PreviewConfig';
1
+ import { type Localication } from '../types/PreviewConfig';
2
2
  export type LocalizeFn = (keyOrText: string) => string;
3
3
  export declare function useLocalize(options?: {
4
- appConfig?: AppConfig;
4
+ localization?: Localication;
5
+ defaultLanguage?: string;
5
6
  }): LocalizeFn;
@@ -0,0 +1,12 @@
1
+ import { type RefObject } from 'react';
2
+ import type { Node } from '../types/Node';
3
+ type UsePreviewSelectionParams = {
4
+ previewMode: boolean;
5
+ data: Node;
6
+ rootRef: RefObject<HTMLDivElement>;
7
+ onSelectNode?: (node: Node | null) => void;
8
+ setCurrent: (node: Node) => void;
9
+ forceRender: number;
10
+ };
11
+ export declare function usePreviewSelection({ previewMode, data, rootRef, onSelectNode, setCurrent, forceRender, }: UsePreviewSelectionParams): void;
12
+ export {};