@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.
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.web.cjs.js +2 -2
- package/dist/index.web.cjs.js.map +1 -1
- package/dist/index.web.esm.js +2 -2
- package/dist/index.web.esm.js.map +1 -1
- package/dist/pages/tabs/SideTool.d.ts +8 -1
- package/package.json +1 -1
- package/src/RenderPage.tsx +1 -4
- package/src/assets/meta.json +1 -1
- package/src/build-components/OnboardFooter/OnboardFooter.tsx +1 -2
- package/src/build-components/PaywallProvider/PaywallProvider.tsx +0 -10
- package/src/pages/tabs/SideTool.tsx +2 -0
- package/src/utils/useMergedStyle.ts +1 -1
|
@@ -1 +1,8 @@
|
|
|
1
|
-
|
|
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
package/src/RenderPage.tsx
CHANGED
|
@@ -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
|
-
|
|
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;
|
package/src/assets/meta.json
CHANGED
|
@@ -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), '
|
|
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;
|
|
@@ -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
|
|