@developer_tribe/react-builder 1.2.15 → 1.2.17
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/build-components/PaywallCloseButton/PaywallCloseButton.d.ts +1 -1
- package/dist/build-components/PaywallProvider/PaywallContext.d.ts +2 -1
- package/dist/build-components/PaywallProvider/PaywallProviderProps.generated.d.ts +1 -0
- package/dist/build-components/patterns.generated.d.ts +11 -1
- package/dist/index.cjs.js +3 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +4 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.web.cjs.js +3 -3
- package/dist/index.web.cjs.js.map +1 -1
- package/dist/index.web.esm.js +3 -3
- package/dist/index.web.esm.js.map +1 -1
- package/dist/mockOS/backHandler.d.ts +4 -0
- package/dist/paywall/hooks/index.d.ts +3 -3
- package/dist/paywall/hooks/useChangeDelayByPaywall.d.ts +4 -0
- package/dist/paywall/hooks/useHandleGoBack.d.ts +1 -0
- package/dist/paywall/hooks/useMockOSBackHandler.d.ts +1 -0
- package/package.json +4 -1
- package/src/assets/meta.json +1 -1
- package/src/assets/samples/paywall-2.json +3 -2
- package/src/build-components/CountDown/CountDown.tsx +9 -1
- package/src/build-components/PaywallCloseButton/PaywallCloseButton.tsx +5 -1
- package/src/build-components/PaywallCloseButton/pattern.json +3 -0
- package/src/build-components/PaywallCounter/PaywallCounter.tsx +2 -5
- package/src/build-components/PaywallOptions/PaywallOptions.tsx +2 -2
- package/src/build-components/PaywallProvider/PaywallContext.ts +4 -2
- package/src/build-components/PaywallProvider/PaywallProvider.tsx +45 -7
- package/src/build-components/PaywallProvider/PaywallProviderProps.generated.ts +1 -0
- package/src/build-components/PaywallProvider/pattern.json +11 -1
- package/src/build-components/patterns.generated.ts +12 -1
- package/src/components/DeviceNavigationBar.tsx +5 -0
- package/src/index.ts +1 -3
- package/src/mockOS/backHandler.ts +35 -0
- package/src/pages/ProjectMigrationPage.tsx +10 -1
- package/src/pages/ProjectPage.tsx +7 -0
- package/src/paywall/hooks/index.ts +3 -3
- package/src/paywall/hooks/useChangeDelayByPaywall.ts +25 -0
- package/src/paywall/hooks/useHandleGoBack.ts +60 -0
- package/src/paywall/hooks/useMockOSBackHandler.ts +9 -0
- package/dist/paywall/hooks/useCarouselOptionsSeperator.d.ts +0 -6
- package/dist/paywall/hooks/useCloseStatusPaywall.d.ts +0 -4
- package/dist/paywall/hooks/usePaywallCounter.d.ts +0 -4
- package/src/paywall/hooks/useCarouselOptionsSeperator.ts +0 -8
- package/src/paywall/hooks/useCloseStatusPaywall.ts +0 -6
- package/src/paywall/hooks/usePaywallCounter.ts +0 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { PaywallCloseButtonComponentProps } from './PaywallCloseButtonProps.generated';
|
|
3
|
-
declare function PaywallCloseButton({ node }: PaywallCloseButtonComponentProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function PaywallCloseButton({ node }: PaywallCloseButtonComponentProps): import("react/jsx-runtime").JSX.Element | null;
|
|
4
4
|
declare const _default: React.MemoExoticComponent<typeof PaywallCloseButton>;
|
|
5
5
|
export default _default;
|
|
@@ -2,11 +2,12 @@ import React from 'react';
|
|
|
2
2
|
import type { Product } from '../../paywall/types/paywall-types';
|
|
3
3
|
export type PaywallContextValue = {
|
|
4
4
|
products: Product[];
|
|
5
|
-
selectedProductId: string;
|
|
6
5
|
setSelectedProductId: (productId: string) => void;
|
|
7
6
|
selectedProduct?: Product;
|
|
8
7
|
onClose?: () => void;
|
|
9
8
|
onSubscribe?: (product?: Product) => void | boolean | Promise<boolean>;
|
|
9
|
+
onCounterDown?: () => void;
|
|
10
|
+
isBackAllowed: boolean;
|
|
10
11
|
};
|
|
11
12
|
export declare const PaywallContext: React.Context<PaywallContextValue | undefined>;
|
|
12
13
|
export declare function usePaywallContext(): PaywallContextValue;
|
|
@@ -9436,11 +9436,13 @@ export declare const patterns: readonly [{
|
|
|
9436
9436
|
readonly style: {
|
|
9437
9437
|
readonly fontSize: "16";
|
|
9438
9438
|
readonly flexDirection: "row";
|
|
9439
|
-
readonly position: "
|
|
9439
|
+
readonly position: "absolute";
|
|
9440
9440
|
readonly zIndex: 1;
|
|
9441
9441
|
readonly alignSelf: "flex-start";
|
|
9442
9442
|
readonly flexGrow: 0;
|
|
9443
9443
|
readonly flexShrink: 0;
|
|
9444
|
+
readonly top: "35@vs";
|
|
9445
|
+
readonly left: "24@s";
|
|
9444
9446
|
readonly justifyContent: "center";
|
|
9445
9447
|
readonly alignItems: "center";
|
|
9446
9448
|
};
|
|
@@ -10273,6 +10275,7 @@ export declare const patterns: readonly [{
|
|
|
10273
10275
|
readonly right: "size";
|
|
10274
10276
|
readonly zIndex: "number";
|
|
10275
10277
|
};
|
|
10278
|
+
readonly delay: "number";
|
|
10276
10279
|
};
|
|
10277
10280
|
};
|
|
10278
10281
|
readonly meta: {
|
|
@@ -10572,6 +10575,13 @@ export declare const patterns: readonly [{
|
|
|
10572
10575
|
readonly specialCategory: null;
|
|
10573
10576
|
readonly sort: 26;
|
|
10574
10577
|
};
|
|
10578
|
+
readonly delay: {
|
|
10579
|
+
readonly label: "Back Delay (ms)";
|
|
10580
|
+
readonly description: "Milliseconds before the paywall can be dismissed via back/close.";
|
|
10581
|
+
readonly category: "other";
|
|
10582
|
+
readonly specialCategory: null;
|
|
10583
|
+
readonly sort: 1;
|
|
10584
|
+
};
|
|
10575
10585
|
};
|
|
10576
10586
|
readonly mockableFeatures: {
|
|
10577
10587
|
readonly products: true;
|