@developer_tribe/react-builder 1.2.25 → 1.2.26

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 (117) hide show
  1. package/dist/attributes-editor/AttributesEditorFields.d.ts +1 -1
  2. package/dist/attributes-editor/SpecialCategorySection.d.ts +1 -1
  3. package/dist/build-components/CountDown/CountDownProps.generated.d.ts +3 -4
  4. package/dist/build-components/PaywallOptions/PaywallOptionButton.d.ts +1 -1
  5. package/dist/build-components/PaywallProvider/PaywallContext.d.ts +1 -2
  6. package/dist/build-components/index.d.ts +1 -3
  7. package/dist/build-components/patterns.generated.d.ts +759 -1637
  8. package/dist/index.cjs.js +3 -3
  9. package/dist/index.cjs.js.map +1 -1
  10. package/dist/index.esm.js +4 -4
  11. package/dist/index.esm.js.map +1 -1
  12. package/dist/index.web.cjs.js +3 -3
  13. package/dist/index.web.cjs.js.map +1 -1
  14. package/dist/index.web.esm.js +3 -3
  15. package/dist/index.web.esm.js.map +1 -1
  16. package/dist/paywall/hooks/index.d.ts +0 -1
  17. package/dist/styles.css +1 -1
  18. package/dist/utils/index.d.ts +1 -0
  19. package/dist/utils/projectColors.d.ts +7 -0
  20. package/package.json +3 -3
  21. package/src/DeviceMockFrame.tsx +0 -2
  22. package/src/RenderPage.tsx +0 -9
  23. package/src/assets/.DS_Store +0 -0
  24. package/src/assets/meta.json +1 -1
  25. package/src/assets/samples/paywall-1.json +0 -1
  26. package/src/assets/samples/paywall-2.json +2 -3
  27. package/src/assets/samples/paywall-app-delete-offer.json +2 -3
  28. package/src/assets/samples/paywall-app-open-offer.json +2 -3
  29. package/src/assets/samples/paywall-back-offer.json +2 -3
  30. package/src/assets/samples/paywall-notification-offer.json +2 -3
  31. package/src/assets/samples/vpn-onboard-1.json +15 -15
  32. package/src/assets/samples/vpn-onboard-2.json +15 -15
  33. package/src/assets/samples/vpn-onboard-3.json +15 -15
  34. package/src/assets/samples/vpn-onboard-4.json +15 -15
  35. package/src/assets/samples/vpn-onboard-5.json +21 -21
  36. package/src/assets/samples/vpn-onboard-6.json +15 -15
  37. package/src/attributes-editor/AttributesEditorFields.tsx +0 -1
  38. package/src/attributes-editor/AttributesEditorView.tsx +0 -2
  39. package/src/attributes-editor/Field.tsx +1 -1
  40. package/src/attributes-editor/SpecialCategorySection.tsx +0 -1
  41. package/src/attributes-editor/useAttributesEditorModel.ts +18 -8
  42. package/src/build-components/BIcon/BIcon.tsx +1 -1
  43. package/src/build-components/BIcon/pattern.json +1 -3
  44. package/src/build-components/BackgroundImage/pattern.json +2 -10
  45. package/src/build-components/Button/pattern.json +1 -3
  46. package/src/build-components/Carousel/Carousel.tsx +1 -1
  47. package/src/build-components/Carousel/pattern.json +2 -8
  48. package/src/build-components/CarouselButtons/pattern.json +2 -9
  49. package/src/build-components/CarouselDots/pattern.json +1 -3
  50. package/src/build-components/CarouselItem/pattern.json +1 -3
  51. package/src/build-components/CarouselProvider/CarouselProvider.tsx +1 -1
  52. package/src/build-components/CarouselProvider/pattern.json +1 -4
  53. package/src/build-components/CountDown/CountDown.tsx +25 -1
  54. package/src/build-components/CountDown/CountDownProps.generated.ts +3 -4
  55. package/src/build-components/CountDown/pattern.json +9 -4
  56. package/src/build-components/Main/pattern.json +1 -3
  57. package/src/build-components/NavigationBarColor/pattern.json +1 -3
  58. package/src/build-components/Onboard/pattern.json +2 -6
  59. package/src/build-components/OnboardButton/OnboardButton.tsx +1 -4
  60. package/src/build-components/OnboardButton/pattern.json +3 -14
  61. package/src/build-components/OnboardButtons/OnboardButtons.tsx +1 -9
  62. package/src/build-components/OnboardButtons/pattern.json +4 -15
  63. package/src/build-components/OnboardDot/OnboardDot.tsx +2 -1
  64. package/src/build-components/OnboardDot/pattern.json +1 -3
  65. package/src/build-components/OnboardFooter/pattern.json +1 -3
  66. package/src/build-components/OnboardImage/pattern.json +1 -5
  67. package/src/build-components/OnboardItem/OnboardItem.tsx +1 -1
  68. package/src/build-components/OnboardItem/pattern.json +3 -11
  69. package/src/build-components/OnboardProvider/OnboardProvider.tsx +0 -1
  70. package/src/build-components/OnboardProvider/pattern.json +2 -8
  71. package/src/build-components/OnboardSubtitle/pattern.json +1 -4
  72. package/src/build-components/OnboardTitle/pattern.json +1 -4
  73. package/src/build-components/PaywallBackground/pattern.json +1 -3
  74. package/src/build-components/PaywallCloseButton/pattern.json +1 -3
  75. package/src/build-components/PaywallOptions/PaywallOptionButton.tsx +1 -2
  76. package/src/build-components/PaywallOptions/pattern.json +1 -3
  77. package/src/build-components/PaywallProvider/PaywallContext.ts +1 -1
  78. package/src/build-components/PaywallProvider/PaywallProvider.tsx +0 -10
  79. package/src/build-components/PaywallProvider/pattern.json +1 -3
  80. package/src/build-components/PaywallSubscribeButton/PaywallSubscribeButton.tsx +1 -1
  81. package/src/build-components/PaywallSubscribeButton/pattern.json +1 -3
  82. package/src/build-components/RadioButton/RadioButton.tsx +1 -1
  83. package/src/build-components/RadioButton/pattern.json +1 -3
  84. package/src/build-components/RenderNode.generated.tsx +0 -10
  85. package/src/build-components/Separator/pattern.json +1 -3
  86. package/src/build-components/StatusBarColor/pattern.json +1 -3
  87. package/src/build-components/Text/pattern.json +2 -9
  88. package/src/build-components/View/pattern.json +4 -16
  89. package/src/build-components/index.ts +0 -10
  90. package/src/build-components/patterns.generated.ts +789 -1700
  91. package/src/components/Builder.tsx +5 -0
  92. package/src/components/BuilderProvider.tsx +2 -37
  93. package/src/hooks/useSafeAreaViewStyle.ts +1 -3
  94. package/src/mockOS/managers/navigationManager.ts +1 -1
  95. package/src/pages/ProjectPage.tsx +2 -0
  96. package/src/pages/tabs/SideTool.tsx +1 -22
  97. package/src/paywall/hooks/index.ts +0 -1
  98. package/src/store.ts +1 -6
  99. package/src/styles/base/_global.scss +2 -0
  100. package/src/utils/analyseNodeByPatterns.ts +4 -0
  101. package/src/utils/index.ts +1 -0
  102. package/src/utils/logRenderStore.ts +0 -1
  103. package/src/utils/novaToJson.ts +1 -5
  104. package/src/utils/parseColor.ts +1 -0
  105. package/src/utils/projectColors.ts +71 -0
  106. package/dist/build-components/Counter/Counter.d.ts +0 -2
  107. package/dist/build-components/Counter/CounterProps.generated.d.ts +0 -61
  108. package/dist/build-components/PaywallCounter/PaywallCounter.d.ts +0 -2
  109. package/dist/build-components/PaywallCounter/PaywallCounterProps.generated.d.ts +0 -61
  110. package/dist/paywall/hooks/useHandleGoBack.d.ts +0 -1
  111. package/src/build-components/Counter/Counter.tsx +0 -44
  112. package/src/build-components/Counter/CounterProps.generated.ts +0 -78
  113. package/src/build-components/Counter/pattern.json +0 -29
  114. package/src/build-components/PaywallCounter/PaywallCounter.tsx +0 -46
  115. package/src/build-components/PaywallCounter/PaywallCounterProps.generated.ts +0 -78
  116. package/src/build-components/PaywallCounter/pattern.json +0 -26
  117. package/src/paywall/hooks/useHandleGoBack.ts +0 -60
@@ -4,7 +4,7 @@ type IconTypePickerFieldProps = {
4
4
  value: unknown;
5
5
  onChange: (next: unknown) => void;
6
6
  };
7
- export declare function IconTypePickerField({ name, value, onChange, }: IconTypePickerFieldProps): import("react/jsx-runtime").JSX.Element;
7
+ export declare function IconTypePickerField({ value, onChange, }: IconTypePickerFieldProps): import("react/jsx-runtime").JSX.Element;
8
8
  type FontFamilyPickerFieldProps = {
9
9
  name: string;
10
10
  value: unknown;
@@ -17,5 +17,5 @@ type SpecialCategorySectionProps = {
17
17
  description?: string;
18
18
  };
19
19
  };
20
- export declare function SpecialCategorySection({ category, entries, attributeMeta, attributes, getAttributeValue, onAttributeChange, componentType, projectColors, layoutContext, viewAttributes, meta, }: SpecialCategorySectionProps): import("react/jsx-runtime").JSX.Element;
20
+ export declare function SpecialCategorySection({ category, entries, attributeMeta, getAttributeValue, onAttributeChange, componentType, projectColors, layoutContext, viewAttributes, meta, }: SpecialCategorySectionProps): import("react/jsx-runtime").JSX.Element;
21
21
  export {};
@@ -1,5 +1,4 @@
1
1
  import type { NodeData } from '../../types/Node';
2
- export type TextAlignOptionType = 'left' | 'center' | 'right' | 'justify';
3
2
  export type FlexDirectionOptionType = 'row' | 'column';
4
3
  export type FlexWrapOptionType = 'nowrap' | 'wrap' | 'wrap-reverse';
5
4
  export type AlignItemsOptionType = 'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline';
@@ -10,7 +9,7 @@ export interface CountDownStyleGenerated {
10
9
  fontSize?: string;
11
10
  fontFamily?: string;
12
11
  fontWeight?: string;
13
- textAlign?: TextAlignOptionType;
12
+ textAlign?: never;
14
13
  flexDirection?: FlexDirectionOptionType;
15
14
  flexWrap?: FlexWrapOptionType;
16
15
  alignItems?: AlignItemsOptionType;
@@ -32,7 +31,7 @@ export interface CountDownStyleGenerated {
32
31
  marginRight?: string;
33
32
  backgroundColor?: string;
34
33
  borderRadius?: string;
35
- width?: string;
34
+ width?: never;
36
35
  minWidth?: string;
37
36
  maxWidth?: string;
38
37
  height?: string;
@@ -50,10 +49,10 @@ export interface CountDownPropsGenerated {
50
49
  child: string;
51
50
  attributes: {
52
51
  style?: CountDownStyleGenerated;
53
- count?: number;
54
52
  adjustsFontSizeToFit?: boolean;
55
53
  showEllipsis?: boolean;
56
54
  scrollable?: boolean;
55
+ count?: number;
57
56
  };
58
57
  }
59
58
  export interface CountDownComponentProps {
@@ -6,4 +6,4 @@ export type OptionsButtonProps = {
6
6
  onPress: (productId: string) => void;
7
7
  node: NodeData<Record<string, unknown>>;
8
8
  };
9
- export declare function PaywallOptionButton({ product, selected, onPress, node, }: OptionsButtonProps): import("react/jsx-runtime").JSX.Element;
9
+ export declare function PaywallOptionButton({ product, onPress, node, }: OptionsButtonProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import type { Product } from '../../paywall/types/paywall-types';
3
2
  export type PaywallContextValue = {
4
3
  products: Product[];
@@ -9,5 +8,5 @@ export type PaywallContextValue = {
9
8
  onCounterDown?: () => void;
10
9
  isBackAllowed: boolean;
11
10
  };
12
- export declare const PaywallContext: React.Context<PaywallContextValue | undefined>;
11
+ export declare const PaywallContext: import("react").Context<PaywallContextValue | undefined>;
13
12
  export declare function usePaywallContext(): PaywallContextValue;
@@ -1,6 +1,6 @@
1
1
  export { default as RenderNode } from './RenderNode.generated';
2
2
  export { patterns } from './patterns.generated';
3
- export declare const allcomponentNames: readonly ["BIcon", "BackgroundImage", "Button", "Carousel", "CarouselButtons", "CarouselDots", "CarouselItem", "CarouselProvider", "CountDown", "Counter", "Image", "Main", "NavigationBarColor", "Onboard", "OnboardButton", "OnboardButtons", "OnboardDot", "OnboardFooter", "OnboardImage", "OnboardItem", "OnboardProvider", "OnboardSubtitle", "OnboardTitle", "PaywallBackground", "PaywallCloseButton", "PaywallCounter", "PaywallOptions", "PaywallProvider", "PaywallSubscribeButton", "RadioButton", "Separator", "StatusBarColor", "Text", "View"];
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", "RadioButton", "Separator", "StatusBarColor", "Text", "View"];
4
4
  export type { BIconPropsGenerated, BIconComponentProps, } from './BIcon/BIconProps.generated';
5
5
  export type { BackgroundImagePropsGenerated, BackgroundImageComponentProps, } from './BackgroundImage/BackgroundImageProps.generated';
6
6
  export type { ButtonPropsGenerated, ButtonComponentProps, } from './Button/ButtonProps.generated';
@@ -10,7 +10,6 @@ export type { CarouselDotsPropsGenerated, CarouselDotsComponentProps, } from './
10
10
  export type { CarouselItemPropsGenerated, CarouselItemComponentProps, } from './CarouselItem/CarouselItemProps.generated';
11
11
  export type { CarouselProviderPropsGenerated, CarouselProviderComponentProps, } from './CarouselProvider/CarouselProviderProps.generated';
12
12
  export type { CountDownPropsGenerated, CountDownComponentProps, } from './CountDown/CountDownProps.generated';
13
- export type { CounterPropsGenerated, CounterComponentProps, } from './Counter/CounterProps.generated';
14
13
  export type { ImagePropsGenerated, ImageComponentProps, } from './Image/ImageProps.generated';
15
14
  export type { MainPropsGenerated, MainComponentProps, } from './Main/MainProps.generated';
16
15
  export type { NavigationBarColorPropsGenerated, NavigationBarColorComponentProps, } from './NavigationBarColor/NavigationBarColorProps.generated';
@@ -26,7 +25,6 @@ export type { OnboardSubtitlePropsGenerated, OnboardSubtitleComponentProps, } fr
26
25
  export type { OnboardTitlePropsGenerated, OnboardTitleComponentProps, } from './OnboardTitle/OnboardTitleProps.generated';
27
26
  export type { PaywallBackgroundPropsGenerated, PaywallBackgroundComponentProps, } from './PaywallBackground/PaywallBackgroundProps.generated';
28
27
  export type { PaywallCloseButtonPropsGenerated, PaywallCloseButtonComponentProps, } from './PaywallCloseButton/PaywallCloseButtonProps.generated';
29
- export type { PaywallCounterPropsGenerated, PaywallCounterComponentProps, } from './PaywallCounter/PaywallCounterProps.generated';
30
28
  export type { PaywallOptionsPropsGenerated, PaywallOptionsComponentProps, } from './PaywallOptions/PaywallOptionsProps.generated';
31
29
  export type { PaywallProviderPropsGenerated, PaywallProviderComponentProps, } from './PaywallProvider/PaywallProviderProps.generated';
32
30
  export type { PaywallSubscribeButtonPropsGenerated, PaywallSubscribeButtonComponentProps, } from './PaywallSubscribeButton/PaywallSubscribeButtonProps.generated';