@revturbine/sdk 0.2.58 → 0.2.59
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/headless.d.ts +9 -0
- package/dist/headless.js +2 -2
- package/dist/headless.js.map +1 -1
- package/dist/index.d.ts +20 -5
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/types/web-sdk/placements/PlacementRenderer.d.ts +7 -1
- package/dist/types/web-sdk/placements/PlacementRenderer.d.ts.map +1 -1
- package/dist/types/web-sdk/placements/slots/BannerSlot.d.ts +1 -1
- package/dist/types/web-sdk/placements/slots/BannerSlot.d.ts.map +1 -1
- package/dist/types/web-sdk/placements/slots/ModalSlot.d.ts +1 -1
- package/dist/types/web-sdk/placements/slots/ModalSlot.d.ts.map +1 -1
- package/dist/types/web-sdk/placements/slots/ToastSlot.d.ts +1 -1
- package/dist/types/web-sdk/placements/slots/ToastSlot.d.ts.map +1 -1
- package/dist/types/web-sdk/placements/slots/TooltipSlot.d.ts +1 -1
- package/dist/types/web-sdk/placements/slots/TooltipSlot.d.ts.map +1 -1
- package/dist/types/web-sdk/placements/types.d.ts +9 -0
- package/dist/types/web-sdk/placements/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -11194,6 +11194,15 @@ interface PlacementSlotProps<C extends ResolvedContent = ResolvedContent> {
|
|
|
11194
11194
|
onSecondaryCtaClick?: () => void;
|
|
11195
11195
|
/** Callback when user dismisses the placement. */
|
|
11196
11196
|
onDismiss: () => void;
|
|
11197
|
+
/**
|
|
11198
|
+
* Optional callback when the user chooses "Remind me later" (defer). When
|
|
11199
|
+
* provided, dismissible slots render a defer control beside dismiss; the
|
|
11200
|
+
* placement re-queues and reappears after the remind-later window
|
|
11201
|
+
* (`remind_later_minutes`, default 60) rather than the longer dismiss
|
|
11202
|
+
* cooldown (plan 167 REQ-7). **Additive and optional** — omit it and slots
|
|
11203
|
+
* render exactly as before, with no defer control.
|
|
11204
|
+
*/
|
|
11205
|
+
onRemindLater?: () => void;
|
|
11197
11206
|
/** Whether the placement is currently visible. */
|
|
11198
11207
|
visible: boolean;
|
|
11199
11208
|
/** Custom CSS class name for styling overrides. */
|
|
@@ -21316,7 +21325,7 @@ type BannerSlotProps = PlacementSlotProps & {
|
|
|
21316
21325
|
* />
|
|
21317
21326
|
* ```
|
|
21318
21327
|
*/
|
|
21319
|
-
declare function BannerSlot({ content, onCtaClick, onDismiss, visible, className, style, }: BannerSlotProps): React__default.JSX.Element | null;
|
|
21328
|
+
declare function BannerSlot({ content, onCtaClick, onDismiss, onRemindLater, visible, className, style, }: BannerSlotProps): React__default.JSX.Element | null;
|
|
21320
21329
|
declare namespace BannerSlot {
|
|
21321
21330
|
var displayName: string;
|
|
21322
21331
|
}
|
|
@@ -21344,7 +21353,7 @@ type ModalSlotProps = PlacementSlotProps & {
|
|
|
21344
21353
|
*
|
|
21345
21354
|
* **Accessibility:** `role="dialog"`, `aria-modal="true"`, keyboard trap
|
|
21346
21355
|
*/
|
|
21347
|
-
declare function ModalSlot({ content, onCtaClick, onSecondaryCtaClick, onDismiss, visible, className, style, }: ModalSlotProps): React__default.JSX.Element | null;
|
|
21356
|
+
declare function ModalSlot({ content, onCtaClick, onSecondaryCtaClick, onDismiss, onRemindLater, visible, className, style, }: ModalSlotProps): React__default.JSX.Element | null;
|
|
21348
21357
|
declare namespace ModalSlot {
|
|
21349
21358
|
var displayName: string;
|
|
21350
21359
|
}
|
|
@@ -21386,7 +21395,7 @@ type ToastSlotProps = PlacementSlotProps & {
|
|
|
21386
21395
|
/** Screen position for the toast notification. Default `'bottom-right'`. */
|
|
21387
21396
|
toastPosition?: 'top-right' | 'bottom-right' | 'bottom-center';
|
|
21388
21397
|
};
|
|
21389
|
-
declare function ToastSlot({ content, onCtaClick, onDismiss, visible, className, style, }: ToastSlotProps): React__default.JSX.Element | null;
|
|
21398
|
+
declare function ToastSlot({ content, onCtaClick, onDismiss, onRemindLater, visible, className, style, }: ToastSlotProps): React__default.JSX.Element | null;
|
|
21390
21399
|
declare namespace ToastSlot {
|
|
21391
21400
|
var displayName: string;
|
|
21392
21401
|
}
|
|
@@ -21478,7 +21487,7 @@ type TooltipSlotProps = PlacementSlotProps & {
|
|
|
21478
21487
|
/** Optional CSS selector used to anchor the tooltip to an on-page element. */
|
|
21479
21488
|
anchorSelector?: string;
|
|
21480
21489
|
};
|
|
21481
|
-
declare function TooltipSlot({ content, onCtaClick, onDismiss, visible, className, style, }: TooltipSlotProps): React__default.JSX.Element | null;
|
|
21490
|
+
declare function TooltipSlot({ content, onCtaClick, onDismiss, onRemindLater, visible, className, style, }: TooltipSlotProps): React__default.JSX.Element | null;
|
|
21482
21491
|
declare namespace TooltipSlot {
|
|
21483
21492
|
var displayName: string;
|
|
21484
21493
|
}
|
|
@@ -21517,6 +21526,12 @@ interface PlacementRendererProps {
|
|
|
21517
21526
|
onSecondaryCtaClick?: (uiPath: PlacementUiPath) => void;
|
|
21518
21527
|
/** Callback when user dismisses the placement. */
|
|
21519
21528
|
onDismiss?: (outputId: string) => void;
|
|
21529
|
+
/**
|
|
21530
|
+
* Callback when the user chooses "Remind me later" (defer). When provided,
|
|
21531
|
+
* dismissible slots render a defer control; omit it and no defer control
|
|
21532
|
+
* appears (plan 167 REQ-7). Additive/opt-in.
|
|
21533
|
+
*/
|
|
21534
|
+
onRemindLater?: (outputId: string) => void;
|
|
21520
21535
|
/** Callback fired once when the placement is first rendered visible. */
|
|
21521
21536
|
onImpression?: (outputId: string) => void;
|
|
21522
21537
|
/** Whether the placement is visible. Default true. */
|
|
@@ -21539,7 +21554,7 @@ interface PlacementRendererProps {
|
|
|
21539
21554
|
* - UI path and promotion parsing
|
|
21540
21555
|
* - CTA and dismiss callback wiring
|
|
21541
21556
|
*/
|
|
21542
|
-
declare function PlacementRenderer({ placement, personalization, registry, ctaResolvers, onCtaClick, onSecondaryCtaClick, onDismiss, onImpression, visible, className, style, fallback, }: PlacementRendererProps): React__default.JSX.Element;
|
|
21557
|
+
declare function PlacementRenderer({ placement, personalization, registry, ctaResolvers, onCtaClick, onSecondaryCtaClick, onDismiss, onRemindLater, onImpression, visible, className, style, fallback, }: PlacementRendererProps): React__default.JSX.Element;
|
|
21543
21558
|
declare namespace PlacementRenderer {
|
|
21544
21559
|
var displayName: string;
|
|
21545
21560
|
}
|