mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-10-03 02:21:23 +00:00
feat(web): bump @lobbyside/react to 0.6.0 and honor targeting
0.6.0 adds a `hidden` state to useLobbyside for visitors the host's active targeting cohort excludes. Render nothing on `hidden` (same as the script-tag embed) instead of falling through to the book-a-call card, which would have shown the widget to an excluded visitor. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
4e7a47896d
commit
d8ca27265d
3 changed files with 7 additions and 4 deletions
|
|
@ -151,7 +151,10 @@ export function NextAppResearchCta() {
|
|||
!mounted ||
|
||||
dismissed ||
|
||||
pathname.startsWith("/onboarding") ||
|
||||
widget.status === "loading"
|
||||
widget.status === "loading" ||
|
||||
// Host's targeting cohort excludes this visitor — render nothing, same
|
||||
// as the script-tag embed. (0.6.0+)
|
||||
widget.status === "hidden"
|
||||
) {
|
||||
return null
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
"@dnd-kit/sortable": "^10.0.0",
|
||||
"@dnd-kit/utilities": "^3.2.2",
|
||||
"@floating-ui/react": "^0.27.0",
|
||||
"@lobbyside/react": "0.5.1",
|
||||
"@lobbyside/react": "0.6.0",
|
||||
"@opennextjs/cloudflare": "^1.12.0",
|
||||
"@radix-ui/react-accordion": "^1.2.11",
|
||||
"@radix-ui/react-alert-dialog": "^1.1.14",
|
||||
|
|
|
|||
4
bun.lock
4
bun.lock
|
|
@ -153,7 +153,7 @@
|
|||
"@dnd-kit/sortable": "^10.0.0",
|
||||
"@dnd-kit/utilities": "^3.2.2",
|
||||
"@floating-ui/react": "^0.27.0",
|
||||
"@lobbyside/react": "0.5.1",
|
||||
"@lobbyside/react": "0.6.0",
|
||||
"@opennextjs/cloudflare": "^1.12.0",
|
||||
"@radix-ui/react-accordion": "^1.2.11",
|
||||
"@radix-ui/react-alert-dialog": "^1.1.14",
|
||||
|
|
@ -1026,7 +1026,7 @@
|
|||
|
||||
"@levischuck/tiny-cbor": ["@levischuck/tiny-cbor@0.2.11", "", {}, "sha512-llBRm4dT4Z89aRsm6u2oEZ8tfwL/2l6BwpZ7JcyieouniDECM5AqNgr/y08zalEIvW3RSK4upYyybDcmjXqAow=="],
|
||||
|
||||
"@lobbyside/react": ["@lobbyside/react@0.5.1", "", { "peerDependencies": { "@instantdb/core": ">=1.0.0", "react": ">=18.0.0" } }, "sha512-UHAIOC6VBxcuFSIfzUjf8Qe1tI6McGTVJk98k1d5tWLOOEdTx+f8rj23v7/46n9T6I8ZhdEQzQzPsB1SNiMKeg=="],
|
||||
"@lobbyside/react": ["@lobbyside/react@0.6.0", "", { "peerDependencies": { "@instantdb/core": ">=1.0.0", "react": ">=18.0.0" } }, "sha512-kCx4+0Y+cr+4XAQ/XMYhaZVM5p+N2TZQG01U4P9TZT2pM/czH2r7SqbmJkMWulDPQC3LUa20H9ceOvhLmCOI4g=="],
|
||||
|
||||
"@lukeed/csprng": ["@lukeed/csprng@1.1.0", "", {}, "sha512-Z7C/xXCiGWsg0KuKsHTKJxbWhpI3Vs5GwLfOean7MGyVFGqdRgBbAjOCh6u4bbjPc/8MJ2pZmK/0DLdCbivLDA=="],
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue