@developer_tribe/react-builder 0.1.0 → 0.1.4

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 (137) hide show
  1. package/dist/build-components/Button/Button.d.ts +2 -2
  2. package/dist/build-components/Carousel/Carousel.d.ts +2 -2
  3. package/dist/build-components/CarouselButtons/CarouselButtons.d.ts +2 -2
  4. package/dist/build-components/CarouselDots/CarouselDots.d.ts +2 -2
  5. package/dist/build-components/CarouselItem/CarouselItem.d.ts +2 -2
  6. package/dist/build-components/CarouselProvider/CarouselProvider.d.ts +2 -2
  7. package/dist/build-components/Image/Image.d.ts +2 -2
  8. package/dist/build-components/Onboard/Onboard.d.ts +2 -2
  9. package/dist/build-components/OnboardBoardTitle/OnboardBoardTitle.d.ts +2 -2
  10. package/dist/build-components/OnboardButton/OnboardButton.d.ts +2 -2
  11. package/dist/build-components/OnboardButtons/OnboardButtons.d.ts +2 -2
  12. package/dist/build-components/OnboardExpandingDot/OnboardExpandingDot.d.ts +2 -2
  13. package/dist/build-components/OnboardFooter/OnboardFooter.d.ts +2 -2
  14. package/dist/build-components/OnboardImage/OnboardImage.d.ts +2 -2
  15. package/dist/build-components/OnboardItem/OnboardItem.d.ts +2 -2
  16. package/dist/build-components/OnboardProvider/OnboardProvider.d.ts +2 -2
  17. package/dist/build-components/OnboardSubtitle/OnboardSubtitle.d.ts +2 -2
  18. package/dist/build-components/RenderNode.generated.d.ts +1 -1
  19. package/dist/build-components/Text/Text.d.ts +2 -2
  20. package/dist/build-components/View/View.d.ts +2 -2
  21. package/dist/build-components/other.d.ts +3 -0
  22. package/dist/utils/generateRandomKeyForNode.d.ts +1 -0
  23. package/package.json +12 -5
  24. package/scripts/prebuild/build-components.js +528 -0
  25. package/scripts/prebuild/prebuild.js +11 -0
  26. package/scripts/public/bin.js +57 -0
  27. package/scripts/public/scripts/build/index.js +31 -0
  28. package/scripts/public/scripts/build/info.json +11 -0
  29. package/scripts/public/scripts/build/utils/checkFolderAndFilesValid.js +41 -0
  30. package/scripts/public/scripts/build/utils/checkPathExists.js +9 -0
  31. package/scripts/public/scripts/build/utils/createMissingFoldersAndFiles.js +54 -0
  32. package/scripts/public/scripts/build/utils/createRenderNodeGenerated.js +82 -0
  33. package/scripts/public/scripts/build/utils/getAllComponents.js +11 -0
  34. package/src/AttributesEditor.tsx +107 -0
  35. package/src/RenderMainNode.tsx +37 -0
  36. package/src/RenderPage.tsx +61 -0
  37. package/src/assets/devices.json +730 -0
  38. package/src/assets/samples/carousel-sample.json +108 -0
  39. package/src/assets/samples/getSamples.ts +28 -0
  40. package/src/assets/samples/simple-1.json +46 -0
  41. package/src/assets/samples/simple-2.json +233 -0
  42. package/src/assets/samples/vpn-onboard-1.json +799 -0
  43. package/src/assets/samples/vpn-onboard-2.json +790 -0
  44. package/src/assets/samples/vpn-onboard-3.json +803 -0
  45. package/src/assets/samples/vpn-onboard-4.json +804 -0
  46. package/src/build-components/Button/Button.tsx +13 -0
  47. package/src/build-components/Button/ButtonProps.generated.ts +21 -0
  48. package/src/build-components/Button/pattern.json +25 -0
  49. package/src/build-components/Carousel/Carousel.tsx +27 -0
  50. package/src/build-components/Carousel/CarouselProps.generated.ts +6 -0
  51. package/src/build-components/Carousel/pattern.json +9 -0
  52. package/src/build-components/CarouselButtons/CarouselButtons.tsx +47 -0
  53. package/src/build-components/CarouselButtons/CarouselButtonsProps.generated.ts +9 -0
  54. package/src/build-components/CarouselButtons/pattern.json +12 -0
  55. package/src/build-components/CarouselDots/CarouselDots.tsx +40 -0
  56. package/src/build-components/CarouselDots/CarouselDotsProps.generated.ts +14 -0
  57. package/src/build-components/CarouselDots/pattern.json +18 -0
  58. package/src/build-components/CarouselItem/CarouselItem.tsx +18 -0
  59. package/src/build-components/CarouselItem/CarouselItemProps.generated.ts +6 -0
  60. package/src/build-components/CarouselItem/pattern.json +9 -0
  61. package/src/build-components/CarouselProvider/CarouselProvider.tsx +26 -0
  62. package/src/build-components/CarouselProvider/CarouselProviderProps.generated.ts +6 -0
  63. package/src/build-components/CarouselProvider/pattern.json +9 -0
  64. package/src/build-components/Image/Image.tsx +35 -0
  65. package/src/build-components/Image/ImageProps.generated.ts +12 -0
  66. package/src/build-components/Image/pattern.json +15 -0
  67. package/src/build-components/Onboard/Onboard.tsx +14 -0
  68. package/src/build-components/Onboard/OnboardProps.generated.ts +6 -0
  69. package/src/build-components/Onboard/pattern.json +9 -0
  70. package/src/build-components/OnboardBoardTitle/OnboardBoardTitle.tsx +28 -0
  71. package/src/build-components/OnboardBoardTitle/OnboardBoardTitleProps.generated.ts +21 -0
  72. package/src/build-components/OnboardBoardTitle/pattern.json +25 -0
  73. package/src/build-components/OnboardButton/OnboardButton.tsx +59 -0
  74. package/src/build-components/OnboardButton/OnboardButtonProps.generated.ts +13 -0
  75. package/src/build-components/OnboardButton/pattern.json +16 -0
  76. package/src/build-components/OnboardButtons/OnboardButtons.tsx +76 -0
  77. package/src/build-components/OnboardButtons/OnboardButtonsProps.generated.ts +12 -0
  78. package/src/build-components/OnboardButtons/pattern.json +15 -0
  79. package/src/build-components/OnboardExpandingDot/OnboardExpandingDot.tsx +14 -0
  80. package/src/build-components/OnboardExpandingDot/OnboardExpandingDotProps.generated.ts +14 -0
  81. package/src/build-components/OnboardExpandingDot/pattern.json +18 -0
  82. package/src/build-components/OnboardFooter/OnboardFooter.tsx +13 -0
  83. package/src/build-components/OnboardFooter/OnboardFooterProps.generated.ts +24 -0
  84. package/src/build-components/OnboardFooter/pattern.json +28 -0
  85. package/src/build-components/OnboardImage/OnboardImage.tsx +14 -0
  86. package/src/build-components/OnboardImage/OnboardImageProps.generated.ts +12 -0
  87. package/src/build-components/OnboardImage/pattern.json +15 -0
  88. package/src/build-components/OnboardItem/OnboardItem.tsx +29 -0
  89. package/src/build-components/OnboardItem/OnboardItemProps.generated.ts +6 -0
  90. package/src/build-components/OnboardItem/pattern.json +9 -0
  91. package/src/build-components/OnboardProvider/OnboardProvider.tsx +65 -0
  92. package/src/build-components/OnboardProvider/OnboardProviderProps.generated.ts +6 -0
  93. package/src/build-components/OnboardProvider/pattern.json +9 -0
  94. package/src/build-components/OnboardSubtitle/OnboardSubtitle.tsx +28 -0
  95. package/src/build-components/OnboardSubtitle/OnboardSubtitleProps.generated.ts +21 -0
  96. package/src/build-components/OnboardSubtitle/pattern.json +25 -0
  97. package/src/build-components/RenderNode.generated.tsx +97 -0
  98. package/src/build-components/Text/Text.tsx +23 -0
  99. package/src/build-components/Text/TextProps.generated.ts +21 -0
  100. package/src/build-components/Text/pattern.json +26 -0
  101. package/src/build-components/View/View.tsx +62 -0
  102. package/src/build-components/View/ViewProps.generated.ts +24 -0
  103. package/src/build-components/View/pattern.json +28 -0
  104. package/src/build-components/other.ts +6 -0
  105. package/src/index.ts +24 -0
  106. package/src/styles/index.scss +114 -0
  107. package/src/types/Device.ts +12 -0
  108. package/src/types/Node.ts +19 -0
  109. package/src/types/PreviewConfig.ts +19 -0
  110. package/src/types/Project.ts +11 -0
  111. package/src/types/TargetedScreenSize.ts +4 -0
  112. package/src/utils/analyseNode.ts +77 -0
  113. package/src/utils/generateRandomKeyForNode.ts +3 -0
  114. package/src/utils/getDevices.ts +6 -0
  115. package/src/utils/isCarousel.ts +36 -0
  116. package/src/utils/isOnboard.ts +54 -0
  117. package/src/utils/novaToJson.ts +253 -0
  118. package/src/utils/patterns.ts +63 -0
  119. package/dist/build-components/Button/ButtonProps.d.ts +0 -3
  120. package/dist/build-components/Carousel/CarouselProps.d.ts +0 -3
  121. package/dist/build-components/CarouselButtons/CarouselButtonsProps.d.ts +0 -3
  122. package/dist/build-components/CarouselDots/CarouselDotsProps.d.ts +0 -3
  123. package/dist/build-components/CarouselItem/CarouselItemProps.d.ts +0 -3
  124. package/dist/build-components/CarouselProvider/CarouselProviderProps.d.ts +0 -3
  125. package/dist/build-components/Image/ImageProps.d.ts +0 -3
  126. package/dist/build-components/Onboard/OnboardProps.d.ts +0 -3
  127. package/dist/build-components/OnboardBoardTitle/OnboardBoardTitleProps.d.ts +0 -3
  128. package/dist/build-components/OnboardButton/OnboardButtonProps.d.ts +0 -3
  129. package/dist/build-components/OnboardButtons/OnboardButtonsProps.d.ts +0 -3
  130. package/dist/build-components/OnboardExpandingDot/OnboardExpandingDotProps.d.ts +0 -3
  131. package/dist/build-components/OnboardFooter/OnboardFooterProps.d.ts +0 -3
  132. package/dist/build-components/OnboardImage/OnboardImageProps.d.ts +0 -3
  133. package/dist/build-components/OnboardItem/OnboardItemProps.d.ts +0 -3
  134. package/dist/build-components/OnboardProvider/OnboardProviderProps.d.ts +0 -3
  135. package/dist/build-components/OnboardSubtitle/OnboardSubtitleProps.d.ts +0 -3
  136. package/dist/build-components/Text/TextProps.d.ts +0 -3
  137. package/dist/build-components/View/ViewProps.d.ts +0 -3
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import type { NodeData } from '../../types/Node';
3
- import type { ButtonProps } from './ButtonProps';
3
+ import type { ButtonPropsGenerated } from './ButtonProps.generated';
4
4
  type ButtonComponentProps = {
5
- node: NodeData<ButtonProps['attributes']>;
5
+ node: NodeData<ButtonPropsGenerated['attributes']>;
6
6
  };
7
7
  declare function Button({ node }: ButtonComponentProps): string;
8
8
  declare const _default: React.MemoExoticComponent<typeof Button>;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import type { NodeData } from '../../types/Node';
3
- import type { CarouselProps } from './CarouselProps';
3
+ import type { CarouselPropsGenerated } from './CarouselProps.generated';
4
4
  type CarouselComponentProps = {
5
- node: NodeData<CarouselProps['attributes']>;
5
+ node: NodeData<CarouselPropsGenerated['attributes']>;
6
6
  };
7
7
  declare function Carousel({ node }: CarouselComponentProps): import("react/jsx-runtime").JSX.Element;
8
8
  declare const _default: React.MemoExoticComponent<typeof Carousel>;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import type { NodeData } from '../../types/Node';
3
- import type { CarouselButtonsProps } from './CarouselButtonsProps';
3
+ import type { CarouselButtonsPropsGenerated } from './CarouselButtonsProps.generated';
4
4
  type CarouselButtonsComponentProps = {
5
- node: NodeData<CarouselButtonsProps['attributes']>;
5
+ node: NodeData<CarouselButtonsPropsGenerated['attributes']>;
6
6
  };
7
7
  declare function CarouselButtons({ node }: CarouselButtonsComponentProps): import("react/jsx-runtime").JSX.Element;
8
8
  declare const _default: React.MemoExoticComponent<typeof CarouselButtons>;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import type { NodeData } from '../../types/Node';
3
- import type { CarouselDotsProps } from './CarouselDotsProps';
3
+ import type { CarouselDotsPropsGenerated } from './CarouselDotsProps.generated';
4
4
  type CarouselDotsComponentProps = {
5
- node: NodeData<CarouselDotsProps['attributes']>;
5
+ node: NodeData<CarouselDotsPropsGenerated['attributes']>;
6
6
  };
7
7
  declare function CarouselDots({ node }: CarouselDotsComponentProps): import("react/jsx-runtime").JSX.Element;
8
8
  declare const _default: React.MemoExoticComponent<typeof CarouselDots>;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import type { NodeData } from '../../types/Node';
3
- import type { CarouselItemProps } from './CarouselItemProps';
3
+ import type { CarouselItemPropsGenerated } from './CarouselItemProps.generated';
4
4
  type CarouselItemComponentProps = {
5
- node: NodeData<CarouselItemProps['attributes']>;
5
+ node: NodeData<CarouselItemPropsGenerated['attributes']>;
6
6
  };
7
7
  export declare function CarouselItem({ node }: CarouselItemComponentProps): import("react/jsx-runtime").JSX.Element;
8
8
  declare const _default: React.MemoExoticComponent<typeof CarouselItem>;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import type { NodeData } from '../../types/Node';
3
- import type { CarouselProviderProps } from './CarouselProviderProps';
3
+ import type { CarouselProviderPropsGenerated } from './CarouselProviderProps.generated';
4
4
  type CarouselProviderComponentProps = {
5
- node: NodeData<CarouselProviderProps['attributes']>;
5
+ node: NodeData<CarouselProviderPropsGenerated['attributes']>;
6
6
  };
7
7
  export declare const carouselContext: React.Context<any>;
8
8
  declare function CarouselProvider({ node }: CarouselProviderComponentProps): import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import type { NodeData } from '../../types/Node';
3
- import type { ImageProps } from './ImageProps';
3
+ import type { ImagePropsGenerated } from './ImageProps.generated';
4
4
  type ImageComponentProps = {
5
- node: NodeData<ImageProps['attributes']>;
5
+ node: NodeData<ImagePropsGenerated['attributes']>;
6
6
  };
7
7
  declare function Image({ node }: ImageComponentProps): import("react/jsx-runtime").JSX.Element;
8
8
  declare const _default: React.MemoExoticComponent<typeof Image>;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import type { NodeData } from '../../types/Node';
3
- import type { OnboardProps } from './OnboardProps';
3
+ import type { OnboardPropsGenerated } from './OnboardProps.generated';
4
4
  type OnboardComponentProps = {
5
- node: NodeData<OnboardProps['attributes']>;
5
+ node: NodeData<OnboardPropsGenerated['attributes']>;
6
6
  };
7
7
  declare function Onboard({ node }: OnboardComponentProps): import("react/jsx-runtime").JSX.Element;
8
8
  declare const _default: React.MemoExoticComponent<typeof Onboard>;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import type { NodeData } from '../../types/Node';
3
- import type { OnboardBoardTitleProps } from './OnboardBoardTitleProps';
3
+ import type { OnboardBoardTitlePropsGenerated } from './OnboardBoardTitleProps.generated';
4
4
  type OnboardBoardTitleComponentProps = {
5
- node: NodeData<OnboardBoardTitleProps['attributes']>;
5
+ node: NodeData<OnboardBoardTitlePropsGenerated['attributes']>;
6
6
  };
7
7
  declare function OnboardBoardTitle({ node }: OnboardBoardTitleComponentProps): import("react/jsx-runtime").JSX.Element;
8
8
  declare const _default: React.MemoExoticComponent<typeof OnboardBoardTitle>;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import type { NodeData } from '../../types/Node';
3
- import type { OnboardButtonProps } from './OnboardButtonProps';
3
+ import type { OnboardButtonPropsGenerated } from './OnboardButtonProps.generated';
4
4
  type OnboardButtonComponentProps = {
5
- node: NodeData<OnboardButtonProps['attributes']>;
5
+ node: NodeData<OnboardButtonPropsGenerated['attributes']>;
6
6
  };
7
7
  declare function OnboardButton({ node }: OnboardButtonComponentProps): import("react/jsx-runtime").JSX.Element;
8
8
  declare const _default: React.MemoExoticComponent<typeof OnboardButton>;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import type { NodeData } from '../../types/Node';
3
- import type { OnboardButtonsProps } from './OnboardButtonsProps';
3
+ import type { OnboardButtonsPropsGenerated } from './OnboardButtonsProps.generated';
4
4
  type OnboardButtonsComponentProps = {
5
- node: NodeData<OnboardButtonsProps['attributes']>;
5
+ node: NodeData<OnboardButtonsPropsGenerated['attributes']>;
6
6
  };
7
7
  declare function OnboardButtons({ node }: OnboardButtonsComponentProps): import("react/jsx-runtime").JSX.Element | null;
8
8
  declare const _default: React.MemoExoticComponent<typeof OnboardButtons>;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import type { NodeData } from '../../types/Node';
3
- import type { OnboardExpandingDotProps } from './OnboardExpandingDotProps';
3
+ import type { OnboardExpandingDotPropsGenerated } from './OnboardExpandingDotProps.generated';
4
4
  type OnboardExpandingDotComponentProps = {
5
- node: NodeData<OnboardExpandingDotProps['attributes']>;
5
+ node: NodeData<OnboardExpandingDotPropsGenerated['attributes']>;
6
6
  };
7
7
  declare function OnboardExpandingDot({ node }: OnboardExpandingDotComponentProps): import("react/jsx-runtime").JSX.Element;
8
8
  declare const _default: React.MemoExoticComponent<typeof OnboardExpandingDot>;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import type { NodeData } from '../../types/Node';
3
- import type { OnboardFooterProps } from './OnboardFooterProps';
3
+ import type { OnboardFooterPropsGenerated } from './OnboardFooterProps.generated';
4
4
  type OnboardFooterComponentProps = {
5
- node: NodeData<OnboardFooterProps['attributes']>;
5
+ node: NodeData<OnboardFooterPropsGenerated['attributes']>;
6
6
  };
7
7
  declare function OnboardFooter({ node }: OnboardFooterComponentProps): string;
8
8
  declare const _default: React.MemoExoticComponent<typeof OnboardFooter>;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import type { NodeData } from '../../types/Node';
3
- import type { OnboardImageProps } from './OnboardImageProps';
3
+ import type { OnboardImagePropsGenerated } from './OnboardImageProps.generated';
4
4
  type OnboardImageComponentProps = {
5
- node: NodeData<OnboardImageProps['attributes']>;
5
+ node: NodeData<OnboardImagePropsGenerated['attributes']>;
6
6
  };
7
7
  declare function OnboardImage({ node }: OnboardImageComponentProps): import("react/jsx-runtime").JSX.Element;
8
8
  declare const _default: React.MemoExoticComponent<typeof OnboardImage>;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import type { NodeData } from '../../types/Node';
3
- import type { OnboardItemProps } from './OnboardItemProps';
3
+ import type { OnboardItemPropsGenerated } from './OnboardItemProps.generated';
4
4
  type OnboardItemComponentProps = {
5
- node: NodeData<OnboardItemProps['attributes']>;
5
+ node: NodeData<OnboardItemPropsGenerated['attributes']>;
6
6
  };
7
7
  declare function OnboardItem({ node }: OnboardItemComponentProps): import("react/jsx-runtime").JSX.Element;
8
8
  declare const _default: React.MemoExoticComponent<typeof OnboardItem>;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import type { NodeData } from '../../types/Node';
3
- import type { OnboardProviderProps } from './OnboardProviderProps';
3
+ import type { OnboardProviderPropsGenerated } from './OnboardProviderProps.generated';
4
4
  type OnboardProviderComponentProps = {
5
- node: NodeData<OnboardProviderProps['attributes']>;
5
+ node: NodeData<OnboardProviderPropsGenerated['attributes']>;
6
6
  };
7
7
  declare function OnboardProvider({ node }: OnboardProviderComponentProps): import("react/jsx-runtime").JSX.Element;
8
8
  declare const _default: React.MemoExoticComponent<typeof OnboardProvider>;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import type { NodeData } from '../../types/Node';
3
- import type { OnboardSubtitleProps } from './OnboardSubtitleProps';
3
+ import type { OnboardSubtitlePropsGenerated } from './OnboardSubtitleProps.generated';
4
4
  type OnboardSubtitleComponentProps = {
5
- node: NodeData<OnboardSubtitleProps['attributes']>;
5
+ node: NodeData<OnboardSubtitlePropsGenerated['attributes']>;
6
6
  };
7
7
  declare function OnboardSubtitle({ node }: OnboardSubtitleComponentProps): import("react/jsx-runtime").JSX.Element;
8
8
  declare const _default: React.MemoExoticComponent<typeof OnboardSubtitle>;
@@ -2,6 +2,6 @@ import React from 'react';
2
2
  import { Node } from '../index';
3
3
  declare function RenderNode({ node }: {
4
4
  node: Node;
5
- }): import("react/jsx-runtime").JSX.Element | null;
5
+ }): string | number | boolean | import("react/jsx-runtime").JSX.Element | Iterable<React.ReactNode> | null | undefined;
6
6
  declare const _default: React.MemoExoticComponent<typeof RenderNode>;
7
7
  export default _default;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import type { NodeData } from '../../types/Node';
3
- import type { TextProps } from './TextProps';
3
+ import type { TextPropsGenerated } from './TextProps.generated';
4
4
  type TextComponentProps = {
5
- node: NodeData<TextProps['attributes']>;
5
+ node: NodeData<TextPropsGenerated['attributes']>;
6
6
  };
7
7
  declare function Text({ node }: TextComponentProps): import("react/jsx-runtime").JSX.Element;
8
8
  declare const _default: React.MemoExoticComponent<typeof Text>;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- import type { ViewProps } from './ViewProps';
2
+ import type { ViewPropsGenerated } from './ViewProps.generated';
3
3
  import { NodeData } from '../../types/Node';
4
4
  type ViewComponentProps = {
5
- node: NodeData<ViewProps['attributes']>;
5
+ node: NodeData<ViewPropsGenerated['attributes']>;
6
6
  };
7
7
  export declare function View({ node }: ViewComponentProps): import("react/jsx-runtime").JSX.Element;
8
8
  declare const _default: React.MemoExoticComponent<typeof View>;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import type { Node } from '../types/Node';
3
+ export declare function other(type: string, node: Node): React.ReactNode;
@@ -0,0 +1 @@
1
+ export declare function generateRandomKeyForNode(type: string): string;
package/package.json CHANGED
@@ -1,13 +1,15 @@
1
1
  {
2
2
  "name": "@developer_tribe/react-builder",
3
- "version": "0.1.0",
4
- "private": false,
3
+ "version": "0.1.4",
5
4
  "type": "module",
5
+ "restricted": true,
6
6
  "main": "dist/index.cjs.js",
7
7
  "module": "dist/index.esm.js",
8
8
  "types": "dist/index.d.ts",
9
9
  "files": [
10
- "dist"
10
+ "dist",
11
+ "src",
12
+ "scripts"
11
13
  ],
12
14
  "scripts": {
13
15
  "prebuild": "node ./scripts/prebuild.js",
@@ -18,7 +20,11 @@
18
20
  "typecheck": "tsc --noEmit",
19
21
  "example:dev": "npm --prefix example run dev",
20
22
  "example:build": "npm --prefix example run build",
21
- "example:preview": "npm --prefix example run preview"
23
+ "example:preview": "npm --prefix example run preview",
24
+ "builder": "node ./scripts/public/bin.js"
25
+ },
26
+ "bin": {
27
+ "builder": "./scripts/public/bin.js"
22
28
  },
23
29
  "peerDependencies": {
24
30
  "react": ">=17",
@@ -48,7 +54,8 @@
48
54
  "rollup-plugin-typescript2": "^0.36.0",
49
55
  "sass": "^1.93.2",
50
56
  "typescript": "^5.9.2",
51
- "typescript-eslint": "^8.44.1"
57
+ "typescript-eslint": "^8.44.1",
58
+ "yargs": "^18.0.0"
52
59
  },
53
60
  "engines": {
54
61
  "node": ">=18"