Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

update packages

Steven Teyea49efe570d2
diff --git a/apps/web/package.json b/apps/web/package.json
index 628efe37e0..863ad1d51b 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -53,7 +53,6 @@
"html-escaper": "^3.0.3",
"js-cookie": "^3.0.5",
"linkify-react": "^4.1.3",
- "linkifyjs": "^4.1.3",
"lucide-react": "^0.299.0",
"nanoid": "^5.0.1",
"next": "14.0.4-canary.39",
diff --git a/packages/ui/package.json b/packages/ui/package.json
index 1705499354..f20bb6d75a 100644
--- a/packages/ui/package.json
+++ b/packages/ui/package.json
@@ -1,7 +1,7 @@
{
"name": "@dub/ui",
"description": "UI components for Dub.co",
- "version": "0.0.35",
+ "version": "0.0.37",
"sideEffects": false,
"main": "./dist/index.js",
"module": "./dist/index.mjs",
diff --git a/packages/ui/src/accordion.tsx b/packages/ui/src/accordion.tsx
index bad19c404d..dd21c63728 100644
--- a/packages/ui/src/accordion.tsx
+++ b/packages/ui/src/accordion.tsx
@@ -34,7 +34,7 @@ const AccordionTrigger = React.forwardRef<
{...props}
>
{children}
- <ChevronDown className="h-5 w-5 transition-transform duration-300" />
+ <ChevronDown className="h-5 w-5 flex-none transition-transform duration-300" />
</AccordionPrimitive.Trigger>
</AccordionPrimitive.Header>
));
diff --git a/packages/ui/src/nav.tsx b/packages/ui/src/nav.tsx
index a0bb0a6c2b..a384a985bc 100644
--- a/packages/ui/src/nav.tsx
+++ b/packages/ui/src/nav.tsx
@@ -1,6 +1,6 @@
"use client";
-import { APP_DOMAIN, SHOW_BACKGROUND_SEGMENTS, cn, fetcher } from "@dub/utils";
+import { APP_DOMAIN, HIDE_BACKGROUND_SEGMENTS, cn, fetcher } from "@dub/utils";
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
import va from "@vercel/analytics";
import { ChevronDown } from "lucide-react";
@@ -49,7 +49,7 @@ export function Nav() {
className={cn(`sticky inset-x-0 top-0 z-30 w-full transition-all`, {
"border-b border-gray-200 bg-white/75 backdrop-blur-lg": scrolled,
"border-b border-gray-200 bg-white":
- selectedLayout && !SHOW_BACKGROUND_SEGMENTS.includes(selectedLayout),
+ selectedLayout && HIDE_BACKGROUND_SEGMENTS.includes(selectedLayout),
})}
>
<MaxWidthWrapper
diff --git a/packages/utils/package.json b/packages/utils/package.json
index b1f52544b1..e4454fe0c7 100644
--- a/packages/utils/package.json
+++ b/packages/utils/package.json
@@ -1,7 +1,7 @@
{
"name": "@dub/utils",
"description": "Utility functions and constants for Dub.co",
- "version": "0.0.18",
+ "version": "0.0.19",
"sideEffects": false,
"main": "./dist/index.js",
"module": "./dist/index.mjs",
diff --git a/packages/utils/src/constants/index.ts b/packages/utils/src/constants/index.ts
index d771f5de06..d858df7674 100644
--- a/packages/utils/src/constants/index.ts
+++ b/packages/utils/src/constants/index.ts
@@ -105,18 +105,12 @@ export const DUB_LOGO = "https://d2vwwcvoksz7ty.cloudfront.net/logo.png";
export const DUB_THUMBNAIL =
"https://d2vwwcvoksz7ty.cloudfront.net/thumbnail.png";
-export const SHOW_BACKGROUND_SEGMENTS = [
- "tools",
- "pricing",
- "help",
- "features",
- "compare",
- "customers",
- "blog",
- "(blog-post)",
- "login",
- "register",
- "auth",
+export const HIDE_BACKGROUND_SEGMENTS = [
+ "stats",
+ "changelog",
+ "terms",
+ "privacy",
+ "abuse",
];
export const DUB_DOMAINS = [
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 0d21ef3633..ef6c062a81 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -157,9 +157,6 @@ importers:
linkify-react:
specifier: ^4.1.3
- linkifyjs:
- specifier: ^4.1.3
- version: 4.1.3
lucide-react:
specifier: ^0.299.0
version: 0.299.0([email protected])
@@ -653,7 +650,7 @@ importers:
'@radix-ui/react-dialog':
specifier: 1.0.5
'@radix-ui/react-navigation-menu':
specifier: ^1.1.2
@@ -766,7 +763,7 @@ importers:
version: link:../tsconfig
tsup:
specifier: ^6.1.3
- version: 6.1.3([email protected])
typescript:
specifier: ^5.1.6
version: 5.1.6
@@ -5421,11 +5418,11 @@ packages:
'@radix-ui/primitive': 1.0.1
'@radix-ui/react-compose-refs': 1.0.1(@types/[email protected])([email protected])
'@radix-ui/react-context': 1.0.1(@types/[email protected])([email protected])
- '@radix-ui/react-dismissable-layer': 1.0.5(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-dismissable-layer': 1.0.5(@types/[email protected])(@types/[email protected])([email protected])([email protected])
'@radix-ui/react-focus-guards': 1.0.1(@types/[email protected])([email protected])
- '@radix-ui/react-focus-scope': 1.0.4(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-focus-scope': 1.0.4(@types/[email protected])(@types/[email protected])([email protected])([email protected])
'@radix-ui/react-id': 1.0.1(@types/[email protected])([email protected])
- '@radix-ui/react-portal': 1.0.4(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-portal': 1.0.4(@types/[email protected])(@types/[email protected])([email protected])([email protected])
'@radix-ui/react-presence': 1.0.1(@types/[email protected])(@types/[email protected])([email protected])([email protected])
'@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])
'@radix-ui/react-slot': 1.0.2(@types/[email protected])([email protected])
@@ -5544,30 +5541,6 @@ packages:
react-dom: 18.2.0([email protected])
dev: false
- resolution: {integrity: sha512-aJeDjQhywg9LBu2t/At58hCvr7pEm0o2Ke1x33B+MhjNmmZ17sy4KImo0KPLgsnc/zN7GPdce8Cnn0SWvwZO7g==}
- peerDependencies:
- '@types/react': '*'
- '@types/react-dom': '*'
- react: ^16.8 || ^17.0 || ^18.0
- react-dom: ^16.8 || ^17.0 || ^18.0
- peerDependenciesMeta:
- '@types/react':
- optional: true
- '@types/react-dom':
- optional: true
- dependencies:
- '@babel/runtime': 7.23.2
- '@radix-ui/primitive': 1.0.1
- '@radix-ui/react-compose-refs': 1.0.1(@types/[email protected])([email protected])
- '@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])
- '@radix-ui/react-use-callback-ref': 1.0.1(@types/[email protected])([email protected])
- '@radix-ui/react-use-escape-keydown': 1.0.3(@types/[email protected])([email protected])
- '@types/react': 18.2.14
- react: 18.2.0
- react-dom: 18.2.0([email protected])
- dev: false
-
resolution: {integrity: sha512-UagjDk4ijOAnGu4WMUPj9ahi7/zJJqNZ9ZAiGPp7waUWJO0O1aWXi/udPphI0IUjvrhBsZJGSN66dR2dsueLWQ==}
peerDependencies:
@@ -5679,28 +5652,6 @@ packages:
react-dom: 18.2.0([email protected])
dev: false
- resolution: {integrity: sha512-sL04Mgvf+FmyvZeYfNu1EPAaaxD+aw7cYeIB9L9Fvq8+urhltTRaEo5ysKOpHuKPclsZcSUMKlN05x4u+CINpA==}
- peerDependencies:
- '@types/react': '*'
- '@types/react-dom': '*'
- react: ^16.8 || ^17.0 || ^18.0
- react-dom: ^16.8 || ^17.0 || ^18.0
- peerDependenciesMeta:
- '@types/react':
- optional: true
- '@types/react-dom':
- optional: true
- dependencies:
- '@babel/runtime': 7.23.2
- '@radix-ui/react-compose-refs': 1.0.1(@types/[email protected])([email protected])
- '@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])
- '@radix-ui/react-use-callback-ref': 1.0.1(@types/[email protected])([email protected])
- '@types/react': 18.2.14
- react: 18.2.0
- react-dom: 18.2.0([email protected])
- dev: false
-
resolution: {integrity: sha512-Q6iAB/U7Tq3NTolBBQbHTgclPmGWE3OlktGGqrClPozSw4vkQ1DfQAOtzgRPecKsMdJINE05iaoDUG8tRzCBjw==}
peerDependencies:
@@ -5811,12 +5762,12 @@ packages:
'@radix-ui/primitive': 1.0.1
'@radix-ui/react-compose-refs': 1.0.1(@types/[email protected])([email protected])
'@radix-ui/react-context': 1.0.1(@types/[email protected])([email protected])
- '@radix-ui/react-dismissable-layer': 1.0.5(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-dismissable-layer': 1.0.5(@types/[email protected])(@types/[email protected])([email protected])([email protected])
'@radix-ui/react-focus-guards': 1.0.1(@types/[email protected])([email protected])
- '@radix-ui/react-focus-scope': 1.0.4(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-focus-scope': 1.0.4(@types/[email protected])(@types/[email protected])([email protected])([email protected])
'@radix-ui/react-id': 1.0.1(@types/[email protected])([email protected])
'@radix-ui/react-popper': 1.1.3(@types/[email protected])([email protected])([email protected])
- '@radix-ui/react-portal': 1.0.4(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-portal': 1.0.4(@types/[email protected])(@types/[email protected])([email protected])([email protected])
'@radix-ui/react-presence': 1.0.1(@types/[email protected])(@types/[email protected])([email protected])([email protected])
'@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])
'@radix-ui/react-slot': 1.0.2(@types/[email protected])([email protected])
@@ -5945,26 +5896,6 @@ packages:
react-dom: 18.2.0([email protected])
dev: false
- resolution: {integrity: sha512-Qki+C/EuGUVCQTOTD5vzJzJuMUlewbzuKyUy+/iHM2uwGiru9gZeBJtHAPKAEkB5KWGi9mP/CHKcY0wt1aW45Q==}
- peerDependencies:
- '@types/react': '*'
- '@types/react-dom': '*'
- react: ^16.8 || ^17.0 || ^18.0
- react-dom: ^16.8 || ^17.0 || ^18.0
- peerDependenciesMeta:
- '@types/react':
- optional: true
- '@types/react-dom':
- optional: true
- dependencies:
- '@babel/runtime': 7.23.2
- '@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])
- '@types/react': 18.2.14
- react: 18.2.0
- react-dom: 18.2.0([email protected])
- dev: false
-
resolution: {integrity: sha512-A+6XEvN01NfVWiKu38ybawfHsBjWum42MRPnEuqPsBZ4eV7e/7K321B5VgYMPv3Xx5An6o1/l9ZuDBgmcmWK3w==}
peerDependencies:
@@ -6262,10 +6193,10 @@ packages:
'@radix-ui/primitive': 1.0.1
'@radix-ui/react-compose-refs': 1.0.1(@types/[email protected])([email protected])
'@radix-ui/react-context': 1.0.1(@types/[email protected])([email protected])
- '@radix-ui/react-dismissable-layer': 1.0.5(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-dismissable-layer': 1.0.5(@types/[email protected])(@types/[email protected])([email protected])([email protected])
'@radix-ui/react-id': 1.0.1(@types/[email protected])([email protected])
'@radix-ui/react-popper': 1.1.3(@types/[email protected])([email protected])([email protected])
- '@radix-ui/react-portal': 1.0.4(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-portal': 1.0.4(@types/[email protected])(@types/[email protected])([email protected])([email protected])
'@radix-ui/react-presence': 1.0.1(@types/[email protected])(@types/[email protected])([email protected])([email protected])
'@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])
'@radix-ui/react-slot': 1.0.2(@types/[email protected])([email protected])
@@ -16517,42 +16448,6 @@ packages:
- ts-node
dev: true
- resolution: {integrity: sha512-eRpBnbfpDFng+EJNTQ90N7QAf4HAGGC7O3buHIjroKWK7D1ibk9/YnR/3cS8HsMU5T+6Oi+cnF+yU5WmCnB//Q==}
- engines: {node: '>=14'}
- hasBin: true
- peerDependencies:
- '@swc/core': ^1
- postcss: ^8.4.12
- typescript: ^4.1.0
- peerDependenciesMeta:
- '@swc/core':
- optional: true
- postcss:
- optional: true
- typescript:
- optional: true
- dependencies:
- bundle-require: 3.1.2([email protected])
- cac: 6.7.14
- chokidar: 3.5.3
- debug: 4.3.4
- esbuild: 0.14.54
- execa: 5.1.1
- globby: 11.1.0
- joycon: 3.1.1
- postcss-load-config: 3.1.4([email protected])
- resolve-from: 5.0.0
- rollup: 2.79.1
- source-map: 0.8.0-beta.0
- sucrase: 3.34.0
- tree-kill: 1.2.2
- typescript: 5.1.6
- transitivePeerDependencies:
- - supports-color
- - ts-node
- dev: true
-
resolution: {integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==}
engines: {node: '>= 6'}