@developer_tribe/react-builder 1.2.35 → 1.2.36
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/RenderPage.d.ts +0 -12
- package/dist/attributes-editor/Field.d.ts +2 -1
- package/dist/attributes-editor/SizeField.d.ts +2 -1
- package/dist/attributes-editor/attributesEditorUtils.d.ts +2 -1
- package/dist/build-components/BIcon/BIcon.d.ts +0 -3
- package/dist/build-components/BIcon/BIconProps.generated.d.ts +1 -0
- package/dist/build-components/Button/Button.d.ts +0 -3
- package/dist/build-components/CarouselItem/CarouselItem.d.ts +0 -3
- package/dist/build-components/CountDown/CountDownProps.generated.d.ts +1 -1
- package/dist/build-components/OnboardButton/OnboardButton.d.ts +0 -3
- package/dist/build-components/OnboardDot/OnboardDot.d.ts +0 -3
- package/dist/build-components/OnboardFooter/OnboardFooterProps.generated.d.ts +1 -0
- package/dist/build-components/OnboardItem/OnboardItemProps.generated.d.ts +0 -3
- package/dist/build-components/OnboardSubtitle/OnboardSubtitleProps.generated.d.ts +1 -0
- package/dist/build-components/OnboardTitle/OnboardTitleProps.generated.d.ts +1 -0
- package/dist/build-components/PaywallCloseButton/PaywallCloseButton.d.ts +0 -3
- package/dist/build-components/PaywallCloseButton/PaywallCloseButtonProps.generated.d.ts +1 -0
- package/dist/build-components/PriceTag/PriceTagProps.generated.d.ts +1 -0
- package/dist/build-components/Pricing/PricingProps.generated.d.ts +1 -0
- package/dist/build-components/Promo/PromoProps.generated.d.ts +1 -0
- package/dist/build-components/Text/TextProps.generated.d.ts +1 -0
- package/dist/build-components/patterns.generated.d.ts +9798 -10468
- package/dist/components/Breadcrumb.d.ts +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +1 -1
- 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/migrations/migratePipe.d.ts +2 -1
- package/dist/migrations/semver.d.ts +0 -7
- package/dist/pages/DebugJsonPage.d.ts +2 -1
- package/dist/pages/ProjectDebug.d.ts +2 -1
- package/dist/pages/ProjectMigrationPage.d.ts +2 -1
- package/dist/pages/ProjectPage.d.ts +2 -1
- package/dist/pages/ProjectValidationPage.d.ts +2 -1
- package/dist/pages/tabs/SideTool.d.ts +0 -7
- package/dist/utils/parseColor.d.ts +1 -1
- package/package.json +1 -1
- package/scripts/prebuild/assets/prompt_scheme.md +5 -11
- package/scripts/prebuild/generate-prompt-schemes.js +11 -8
- package/scripts/prebuild/utils/validateAllComponentsOrThrow.js +50 -0
- package/scripts/prebuild/utils/validatePatternJson.js +73 -0
- package/src/RenderPage.tsx +1 -7
- package/src/assets/meta.json +1 -1
- package/src/assets/prompt-scheme-onboard.generated.ts +1 -1
- package/src/assets/prompt-scheme-paywall.generated.ts +1 -1
- package/src/attributes-editor/Field.tsx +1 -1
- package/src/attributes-editor/SizeField.tsx +1 -1
- package/src/attributes-editor/attributesEditorUtils.ts +1 -1
- package/src/attributes-editor/useAttributesEditorModel.ts +5 -1
- package/src/build-components/BIcon/BIcon.tsx +0 -2
- package/src/build-components/BIcon/BIconProps.generated.ts +1 -0
- package/src/build-components/BackgroundImage/pattern.json +8 -9
- package/src/build-components/Button/Button.tsx +0 -2
- package/src/build-components/CarouselDots/CarouselDots.tsx +1 -1
- package/src/build-components/CarouselDots/pattern.json +1 -1
- package/src/build-components/CarouselItem/CarouselItem.tsx +0 -2
- package/src/build-components/CountDown/CountDownProps.generated.ts +1 -1
- package/src/build-components/OnboardButton/OnboardButton.tsx +1 -4
- package/src/build-components/OnboardButtons/pattern.json +2 -4
- package/src/build-components/OnboardDot/OnboardDot.tsx +0 -2
- package/src/build-components/OnboardDot/pattern.json +0 -1
- package/src/build-components/OnboardFooter/OnboardFooter.tsx +4 -4
- package/src/build-components/OnboardFooter/OnboardFooterProps.generated.ts +1 -0
- package/src/build-components/OnboardItem/OnboardItemProps.generated.ts +0 -3
- package/src/build-components/OnboardItem/pattern.json +27 -23
- package/src/build-components/OnboardProvider/pattern.json +29 -27
- package/src/build-components/OnboardSubtitle/OnboardSubtitleProps.generated.ts +1 -0
- package/src/build-components/OnboardTitle/OnboardTitleProps.generated.ts +1 -0
- package/src/build-components/PaywallCloseButton/PaywallCloseButton.tsx +0 -2
- package/src/build-components/PaywallCloseButton/PaywallCloseButtonProps.generated.ts +1 -0
- package/src/build-components/PriceTag/PriceTagProps.generated.ts +1 -0
- package/src/build-components/Pricing/PricingProps.generated.ts +1 -0
- package/src/build-components/Promo/PromoProps.generated.ts +1 -0
- package/src/build-components/RadioButton/pattern.json +2 -4
- package/src/build-components/Separator/pattern.json +24 -24
- package/src/build-components/Text/TextProps.generated.ts +1 -0
- package/src/build-components/Text/pattern.json +2 -1
- package/src/build-components/View/pattern.json +265 -265
- package/src/build-components/patterns.generated.ts +10019 -10689
- package/src/components/Breadcrumb.tsx +1 -1
- package/src/migrations/migratePipe.ts +1 -1
- package/src/migrations/semver.ts +3 -3
- package/src/modals/MockableFeatureModal.tsx +3 -1
- package/src/modals/PromptManagerModal.tsx +1 -7
- package/src/pages/DebugJsonPage.tsx +1 -1
- package/src/pages/ProjectDebug.tsx +1 -1
- package/src/pages/ProjectMigrationPage.tsx +1 -1
- package/src/pages/ProjectPage.tsx +1 -1
- package/src/pages/ProjectValidationPage.tsx +1 -1
- package/src/pages/tabs/SideTool.tsx +1 -1
- package/src/utils/nodeXml.ts +2 -4
- package/src/utils/parseColor.ts +5 -6
package/dist/RenderPage.d.ts
CHANGED
|
@@ -1,17 +1,5 @@
|
|
|
1
1
|
import { Node } from './types/Node';
|
|
2
2
|
import { BuilderProviderParams } from './components/BuilderProvider';
|
|
3
|
-
export type ScreenStyle = {
|
|
4
|
-
light: {
|
|
5
|
-
backgroundColor: string;
|
|
6
|
-
color: string;
|
|
7
|
-
seperatorColor?: string;
|
|
8
|
-
};
|
|
9
|
-
dark: {
|
|
10
|
-
backgroundColor: string;
|
|
11
|
-
color: string;
|
|
12
|
-
seperatorColor?: string;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
3
|
interface RenderPageProps {
|
|
16
4
|
data: Node;
|
|
17
5
|
name: string;
|
|
@@ -3,7 +3,7 @@ import type { ViewPropsGenerated } from '../build-components/View/ViewProps.gene
|
|
|
3
3
|
import type { ProjectColors } from '../types/Project';
|
|
4
4
|
import { type PreferredScale } from './SizeField';
|
|
5
5
|
import { LayoutContext } from './types';
|
|
6
|
-
|
|
6
|
+
type FieldProps = {
|
|
7
7
|
name: string;
|
|
8
8
|
type: string | string[];
|
|
9
9
|
value: any;
|
|
@@ -16,3 +16,4 @@ export type FieldProps = {
|
|
|
16
16
|
preferredScale?: PreferredScale;
|
|
17
17
|
};
|
|
18
18
|
export declare function Field({ name, type, value, onChange, componentType, projectColors, layoutContext, viewAttributes, label, preferredScale, }: FieldProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export type PreferredScale = 'vs' | 's' | 'f' | '%';
|
|
2
2
|
export declare function toPreferredScale(value: unknown): PreferredScale | undefined;
|
|
3
|
-
|
|
3
|
+
type SizeFieldProps = {
|
|
4
4
|
value: unknown;
|
|
5
5
|
onChange: (val: unknown) => void;
|
|
6
6
|
preferredScale?: PreferredScale;
|
|
7
7
|
fieldName: string;
|
|
8
8
|
};
|
|
9
9
|
export declare function SizeField({ value, onChange, preferredScale, fieldName, }: SizeFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { NodeDefaultAttribute } from '../types/Node';
|
|
2
2
|
import type { SchemaEntry } from './types';
|
|
3
|
-
|
|
3
|
+
type StyleBagSource = 'styles' | 'style' | 'none';
|
|
4
4
|
export declare function getStyleBagSourceAndValue(attributes: NodeDefaultAttribute): {
|
|
5
5
|
source: StyleBagSource;
|
|
6
6
|
styleBag?: Record<string, unknown>;
|
|
@@ -17,3 +17,4 @@ export declare function buildAttributesEditorEntries(schema: Record<string, unkn
|
|
|
17
17
|
}>): SchemaEntry[];
|
|
18
18
|
export declare function isValidStyleBagValue(attributes: NodeDefaultAttribute): boolean;
|
|
19
19
|
export declare function findLegacyFlatStyleKeys(attributes: NodeDefaultAttribute, isStyleKeyForWrite: (name: string) => boolean): string[];
|
|
20
|
+
export {};
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type { BIconComponentProps } from './BIconProps.generated';
|
|
3
2
|
export declare function BIcon({ node }: BIconComponentProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare const _default: React.MemoExoticComponent<typeof BIcon>;
|
|
5
|
-
export default _default;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type { ButtonComponentProps } from './ButtonProps.generated';
|
|
3
2
|
export declare function Button({ node }: ButtonComponentProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare const _default: React.MemoExoticComponent<typeof Button>;
|
|
5
|
-
export default _default;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type { CarouselItemComponentProps } from './CarouselItemProps.generated';
|
|
3
2
|
export declare function CarouselItem({ node }: CarouselItemComponentProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare const _default: React.MemoExoticComponent<typeof CarouselItem>;
|
|
5
|
-
export default _default;
|
|
@@ -9,6 +9,7 @@ export interface CountDownStyleGenerated {
|
|
|
9
9
|
fontSize?: string;
|
|
10
10
|
fontFamily?: string;
|
|
11
11
|
fontWeight?: string;
|
|
12
|
+
textAlign?: never;
|
|
12
13
|
flexDirection?: FlexDirectionOptionType;
|
|
13
14
|
flexWrap?: FlexWrapOptionType;
|
|
14
15
|
alignItems?: AlignItemsOptionType;
|
|
@@ -43,7 +44,6 @@ export interface CountDownStyleGenerated {
|
|
|
43
44
|
left?: string;
|
|
44
45
|
right?: string;
|
|
45
46
|
zIndex?: number;
|
|
46
|
-
textAlign?: never;
|
|
47
47
|
}
|
|
48
48
|
export interface CountDownPropsGenerated {
|
|
49
49
|
child: string;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type { OnboardButtonComponentProps } from './OnboardButtonProps.generated';
|
|
3
2
|
export declare function OnboardButton({ node }: OnboardButtonComponentProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare const _default: React.MemoExoticComponent<typeof OnboardButton>;
|
|
5
|
-
export default _default;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type { OnboardDotComponentProps } from './OnboardDotProps.generated';
|
|
3
2
|
export declare function OnboardDot({ node }: OnboardDotComponentProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare const _default: React.MemoExoticComponent<typeof OnboardDot>;
|
|
5
|
-
export default _default;
|
|
@@ -47,9 +47,6 @@ export interface OnboardItemPropsGenerated {
|
|
|
47
47
|
styles?: OnboardItemStyleGenerated;
|
|
48
48
|
scrollable?: boolean;
|
|
49
49
|
display?: DisplayOptionType;
|
|
50
|
-
gap?: string;
|
|
51
|
-
flexDirection?: FlexDirectionOptionType;
|
|
52
|
-
paddingHorizontal?: string;
|
|
53
50
|
};
|
|
54
51
|
}
|
|
55
52
|
export interface OnboardItemComponentProps {
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type { PaywallCloseButtonComponentProps } from './PaywallCloseButtonProps.generated';
|
|
3
2
|
export declare function PaywallCloseButton({ node }: PaywallCloseButtonComponentProps): import("react/jsx-runtime").JSX.Element | null;
|
|
4
|
-
declare const _default: React.MemoExoticComponent<typeof PaywallCloseButton>;
|
|
5
|
-
export default _default;
|