@developer_tribe/react-builder 0.1.22 → 0.1.23

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.
@@ -3,6 +3,6 @@ export declare const isOnboardProvider: (node: Node) => node is NodeData;
3
3
  export declare const isOnboard: (node: Node) => node is NodeData;
4
4
  export declare const isOnboardItem: (node: Node) => node is NodeData;
5
5
  export declare const isOnboardExpandingDot: (node: Node) => node is NodeData;
6
- export declare const isOnboardBoardTitle: (node: Node) => node is NodeData;
6
+ export declare const isOnboardTitle: (node: Node) => node is NodeData;
7
7
  export declare const isOnboardSubtitle: (node: Node) => node is NodeData;
8
8
  export declare const isOnboardComponent: (node: Node) => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@developer_tribe/react-builder",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
4
4
  "type": "module",
5
5
  "restricted": true,
6
6
  "main": "dist/index.cjs.js",
@@ -20,9 +20,9 @@ export const isOnboardExpandingDot = (node: Node): node is NodeData => {
20
20
  return 'type' in node && (node as NodeData).type === 'OnboardExpandingDot';
21
21
  };
22
22
 
23
- export const isOnboardBoardTitle = (node: Node): node is NodeData => {
23
+ export const isOnboardTitle = (node: Node): node is NodeData => {
24
24
  if (!node || typeof node !== 'object' || Array.isArray(node)) return false;
25
- return 'type' in node && (node as NodeData).type === 'OnboardBoardTitle';
25
+ return 'type' in node && (node as NodeData).type === 'OnboardTitle';
26
26
  };
27
27
 
28
28
  export const isOnboardSubtitle = (node: Node): node is NodeData => {
@@ -36,7 +36,7 @@ export const isOnboardComponent = (node: Node): boolean => {
36
36
  isOnboard(node) ||
37
37
  isOnboardItem(node) ||
38
38
  isOnboardExpandingDot(node) ||
39
- isOnboardBoardTitle(node) ||
39
+ isOnboardTitle(node) ||
40
40
  isOnboardSubtitle(node) ||
41
41
  (function isOnboardButtons(n: Node): n is NodeData {
42
42
  if (!n || typeof n !== 'object' || Array.isArray(n)) return false;
@@ -89,7 +89,7 @@ function buildCarouselItem(
89
89
  const title = comp?.attributes?.title_localization_key || '';
90
90
  const color = comp?.attributes?.title_color || undefined;
91
91
  children.push({
92
- type: 'OnboardBoardTitle',
92
+ type: 'OnboardTitle',
93
93
  attributes: color ? { color } : undefined,
94
94
  children: title,
95
95
  });
@@ -13,7 +13,7 @@ import onboardItemPattern from '../build-components/OnboardItem/pattern.json';
13
13
  import onboardImagePattern from '../build-components/OnboardImage/pattern.json';
14
14
  import onboardButtonsPattern from '../build-components/OnboardButtons/pattern.json';
15
15
  import onboardButtonPattern from '../build-components/OnboardButton/pattern.json';
16
- import onboardBoardTitlePattern from '../build-components/OnboardTitle/pattern.json';
16
+ import OnboardTitlePattern from '../build-components/OnboardTitle/pattern.json';
17
17
  import onboardSubtitlePattern from '../build-components/OnboardSubtitle/pattern.json';
18
18
  import onboardFooterPattern from '../build-components/OnboardFooter/pattern.json';
19
19
  import onboardExpandingDotPattern from '../build-components/OnboardDot/pattern.json';
@@ -48,7 +48,7 @@ const patterns: Pattern[] = [
48
48
  onboardImagePattern as Pattern,
49
49
  onboardButtonsPattern as Pattern,
50
50
  onboardButtonPattern as Pattern,
51
- onboardBoardTitlePattern as Pattern,
51
+ OnboardTitlePattern as Pattern,
52
52
  onboardSubtitlePattern as Pattern,
53
53
  onboardFooterPattern as Pattern,
54
54
  onboardExpandingDotPattern as Pattern,