@developer_tribe/react-builder 0.1.15 → 0.1.16

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.
@@ -13,9 +13,6 @@ function OnboardProvider({ node }: OnboardProviderComponentProps) {
13
13
  const [selectedIndex, setSelectedIndex] = useState(0);
14
14
 
15
15
  const children = useMemo(() => {
16
- console.log('node', node);
17
- console.log('node.children', node.children);
18
-
19
16
  const onboardChild: NodeData = (node.children as NodeData[]).filter(
20
17
  (c) => c.type === 'Onboard',
21
18
  )[0];
package/src/index.ts CHANGED
@@ -12,6 +12,8 @@ export {
12
12
  analyseNode,
13
13
  } from './utils/analyseNode';
14
14
  export { getSamples } from './assets/samples/getSamples';
15
+ export { getBasicSamples } from './assets/samples/getSamples';
16
+ export { getOnboardSamples } from './assets/samples/getSamples';
15
17
  export { PreviewConfig } from './types/PreviewConfig';
16
18
  export { RenderPage } from './RenderPage';
17
19
  export { RenderMainNode } from './RenderMainNode';
@@ -246,7 +246,7 @@ function mapFooterFromGeneralComponents(generalComponents: any[]): Node | null {
246
246
  if (children.length === 0) return null;
247
247
 
248
248
  return {
249
- type: 'view',
249
+ type: 'OnboardFooter',
250
250
  attributes: { gap: 8 },
251
251
  children,
252
252
  } as NodeData;