@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.
Files changed (46) hide show
  1. package/dist/build-components/PaywallCloseButton/PaywallCloseButton.d.ts +1 -1
  2. package/dist/build-components/PaywallProvider/PaywallContext.d.ts +2 -1
  3. package/dist/build-components/PaywallProvider/PaywallProviderProps.generated.d.ts +1 -0
  4. package/dist/build-components/patterns.generated.d.ts +11 -1
  5. package/dist/index.cjs.js +3 -3
  6. package/dist/index.cjs.js.map +1 -1
  7. package/dist/index.d.ts +1 -1
  8. package/dist/index.esm.js +4 -4
  9. package/dist/index.esm.js.map +1 -1
  10. package/dist/index.web.cjs.js +3 -3
  11. package/dist/index.web.cjs.js.map +1 -1
  12. package/dist/index.web.esm.js +3 -3
  13. package/dist/index.web.esm.js.map +1 -1
  14. package/dist/mockOS/backHandler.d.ts +4 -0
  15. package/dist/paywall/hooks/index.d.ts +3 -3
  16. package/dist/paywall/hooks/useChangeDelayByPaywall.d.ts +4 -0
  17. package/dist/paywall/hooks/useHandleGoBack.d.ts +1 -0
  18. package/dist/paywall/hooks/useMockOSBackHandler.d.ts +1 -0
  19. package/package.json +4 -1
  20. package/src/assets/meta.json +1 -1
  21. package/src/assets/samples/paywall-2.json +3 -2
  22. package/src/build-components/CountDown/CountDown.tsx +9 -1
  23. package/src/build-components/PaywallCloseButton/PaywallCloseButton.tsx +5 -1
  24. package/src/build-components/PaywallCloseButton/pattern.json +3 -0
  25. package/src/build-components/PaywallCounter/PaywallCounter.tsx +2 -5
  26. package/src/build-components/PaywallOptions/PaywallOptions.tsx +2 -2
  27. package/src/build-components/PaywallProvider/PaywallContext.ts +4 -2
  28. package/src/build-components/PaywallProvider/PaywallProvider.tsx +45 -7
  29. package/src/build-components/PaywallProvider/PaywallProviderProps.generated.ts +1 -0
  30. package/src/build-components/PaywallProvider/pattern.json +11 -1
  31. package/src/build-components/patterns.generated.ts +12 -1
  32. package/src/components/DeviceNavigationBar.tsx +5 -0
  33. package/src/index.ts +1 -3
  34. package/src/mockOS/backHandler.ts +35 -0
  35. package/src/pages/ProjectMigrationPage.tsx +10 -1
  36. package/src/pages/ProjectPage.tsx +7 -0
  37. package/src/paywall/hooks/index.ts +3 -3
  38. package/src/paywall/hooks/useChangeDelayByPaywall.ts +25 -0
  39. package/src/paywall/hooks/useHandleGoBack.ts +60 -0
  40. package/src/paywall/hooks/useMockOSBackHandler.ts +9 -0
  41. package/dist/paywall/hooks/useCarouselOptionsSeperator.d.ts +0 -6
  42. package/dist/paywall/hooks/useCloseStatusPaywall.d.ts +0 -4
  43. package/dist/paywall/hooks/usePaywallCounter.d.ts +0 -4
  44. package/src/paywall/hooks/useCarouselOptionsSeperator.ts +0 -8
  45. package/src/paywall/hooks/useCloseStatusPaywall.ts +0 -6
  46. 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;
@@ -45,6 +45,7 @@ export interface PaywallProviderPropsGenerated {
45
45
  title?: string;
46
46
  description?: string;
47
47
  scrollable?: boolean;
48
+ delay?: number;
48
49
  };
49
50
  }
50
51
  export interface PaywallProviderComponentProps {
@@ -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: "relative";
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;