@developer_tribe/react-builder 1.2.36 → 1.2.37

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.
@@ -1 +1,8 @@
1
- export {};
1
+ import React from 'react';
2
+ import type { Node } from '../../types/Node';
3
+ type SideToolProps = {
4
+ data: Node;
5
+ setData: React.Dispatch<React.SetStateAction<Node>>;
6
+ };
7
+ declare function SideTool({ data, setData }: SideToolProps): import("react/jsx-runtime").JSX.Element;
8
+ export default SideTool;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@developer_tribe/react-builder",
3
- "version": "1.2.36",
3
+ "version": "1.2.37",
4
4
  "license": "UNLICENSED",
5
5
  "type": "module",
6
6
  "restricted": true,
@@ -12,10 +12,7 @@ import { RenderErrorBoundary } from './components/RenderErrorBoundary';
12
12
  import { usePreviewSelection } from './hooks/usePreviewSelection';
13
13
  import { defaultLocalization } from './types/PreviewConfig';
14
14
  import { defaultProjectColors } from './utils/projectColors';
15
- type ScreenStyle = {
16
- light: { backgroundColor: string; color: string; seperatorColor?: string };
17
- dark: { backgroundColor: string; color: string; seperatorColor?: string };
18
- };
15
+
19
16
  interface RenderPageProps {
20
17
  data: Node;
21
18
  name: string;
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "supportedProjectVersion": "1.1.2",
3
- "reactBuilderVersion": "1.2.35"
3
+ "reactBuilderVersion": "1.2.36"
4
4
  }
@@ -40,7 +40,7 @@ function buildSegments(
40
40
 
41
41
  for (const p of patterns) {
42
42
  if (!p.value) continue;
43
- const re = new RegExp(escapeRegExp(p.value), 'gi');
43
+ const re = new RegExp(escapeRegExp(p.value), 'g');
44
44
  for (const m of text.matchAll(re)) {
45
45
  if (m.index == null) continue;
46
46
  const matched = m[0];
@@ -94,7 +94,6 @@ function buildSegments(
94
94
  function OnboardFooter({ node }: OnboardFooterComponentProps) {
95
95
  useLogRender('OnboardFooter');
96
96
  node = useNode(node);
97
- console.log('node', node);
98
97
  const attributeName = node.sourceType ?? node.type ?? 'OnboardFooter';
99
98
  const {
100
99
  localization: builderLocalization,
@@ -107,16 +107,6 @@ function PaywallProvider({ node }: PaywallProviderComponentProps) {
107
107
  localize,
108
108
  },
109
109
  );
110
-
111
- console.log('[PaywallProvider] extraction debug', {
112
- platform: platformForExtraction,
113
- selectedProductId,
114
- hasSubscriptionOffers: !!selectedProduct?.subscriptionOffers?.length,
115
- subscriptionOffersCount: selectedProduct?.subscriptionOffers?.length ?? 0,
116
- detailedProductParams,
117
- selectedProduct,
118
- });
119
-
120
110
  const handleClose = useCallback(() => {
121
111
  if (!isBackAllowed) {
122
112
  return;
@@ -139,3 +139,5 @@ function SideTool({ data, setData }: SideToolProps) {
139
139
  </div>
140
140
  );
141
141
  }
142
+
143
+ export default SideTool;
@@ -6,7 +6,7 @@ const EMPTY_STYLE: CSSProperties = {};
6
6
  export function useMergedStyle(
7
7
  ...args: (CSSProperties | undefined | null | false)[]
8
8
  ): CSSProperties {
9
- // eslint-disable-next-line react-hooks/exhaustive-deps
9
+ // eslint-disable-next-line react-hooks/exhaustive-deps -- spread args intentionally
10
10
  return useMemo(() => {
11
11
  const validStyles = args.filter((arg): arg is CSSProperties => !!arg);
12
12