@developer_tribe/react-builder 0.1.8 → 0.1.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@developer_tribe/react-builder",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
4
  "type": "module",
5
5
  "restricted": true,
6
6
  "main": "dist/index.cjs.js",
@@ -2,7 +2,7 @@ import fs from 'fs';
2
2
  import Path from 'path';
3
3
 
4
4
  function toPropsName(name) {
5
- return `${name}Props`;
5
+ return `${name}ComponentProps`;
6
6
  }
7
7
 
8
8
  // Create folders and base component files if missing
@@ -42,7 +42,7 @@ export function other(type: string, node: Node): React.ReactNode {
42
42
  const content = `import React from 'react';
43
43
  import type { ${propsName} } from '@developer_tribe/react-builder';
44
44
 
45
- function ${component}(props: { node: any }) {
45
+ function ${component}(props: ${propsName}) {
46
46
  return "hello world";
47
47
  }
48
48