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.

Improve tags creation & management

Steven Tey0db530ce9ea0
diff --git a/components/app/links/link-card.tsx b/components/app/links/link-card.tsx
index 843d3f2fce..2139184377 100644
--- a/components/app/links/link-card.tsx
+++ b/components/app/links/link-card.tsx
@@ -3,7 +3,6 @@ import { useRouter } from "next/router";
import { useEffect, useMemo, useRef, useState } from "react";
import useSWR from "swr";
import { useAddEditLinkModal } from "@/components/app/modals/add-edit-link-modal";
-import { useTagLinkModal } from "@/components/app/modals/tag-link-modal";
import { useArchiveLinkModal } from "@/components/app/modals/archive-link-modal";
import { useDeleteLinkModal } from "@/components/app/modals/delete-link-modal";
import { useLinkQRModal } from "@/components/app/modals/link-qr-modal";
@@ -20,6 +19,7 @@ import {
getApexDomain,
linkConstructor,
nFormatter,
+ setQueryString,
timeAgo,
} from "#/lib/utils";
import useIntersectionObserver from "#/lib/hooks/use-intersection-observer";
@@ -84,9 +84,6 @@ export default function LinkCard({ props }: { props: LinkProps }) {
},
});
- const { setShowTagLinkModal, TagLinkModal } = useTagLinkModal({
- props,
- });
const { setShowArchiveLinkModal, ArchiveLinkModal } = useArchiveLinkModal({
props,
archived: !archived,
@@ -143,9 +140,6 @@ export default function LinkCard({ props }: { props: LinkProps }) {
case "d":
setShowDuplicateLinkModal(true);
break;
- case "t":
- setShowTagLinkModal(true);
- break;
case "a":
setShowArchiveLinkModal(true);
break;
@@ -173,7 +167,6 @@ export default function LinkCard({ props }: { props: LinkProps }) {
<LinkQRModal />
<AddEditLinkModal />
<DuplicateLinkModal />
- {slug && <TagLinkModal />}
<ArchiveLinkModal />
<DeleteLinkModal />
<li className="relative flex items-center justify-between">
@@ -265,7 +258,10 @@ export default function LinkCard({ props }: { props: LinkProps }) {
</Link>
{tag?.color && (
<button
- onClick={() => setShowTagLinkModal(true)}
+ onClick={(e) => {
+ e.stopPropagation();
+ setQueryString(router, "tagId", tag.id);
+ }}
className="hidden transition-all duration-75 hover:scale-105 active:scale-100 sm:block"
>
<TagBadge {...tag} withIcon />
@@ -362,20 +358,6 @@ export default function LinkCard({ props }: { props: LinkProps }) {
</kbd>
</button>
)}
- {slug && (
- <button
- onClick={() => {
- setOpenPopover(false);
- setShowTagLinkModal(true);
- }}
- className="group flex w-full items-center justify-between rounded-md p-2 text-left text-sm font-medium text-gray-500 transition-all duration-75 hover:bg-gray-100"
- >
- <IconMenu text="Tag" icon={<Tag className="h-4 w-4" />} />
- <kbd className="hidden rounded bg-gray-100 px-2 py-0.5 text-xs font-light text-gray-500 transition-all duration-75 group-hover:bg-gray-200 sm:inline-block">
- T
- </kbd>
- </button>
- )}
<button
onClick={() => {
setOpenPopover(false);
diff --git a/components/app/links/link-filters.tsx b/components/app/links/link-filters.tsx
index 7e19725c6a..53db44b2ba 100644
--- a/components/app/links/link-filters.tsx
+++ b/components/app/links/link-filters.tsx
@@ -24,7 +24,6 @@ import { ModalContext } from "#/ui/modal-provider";
import useTags from "#/lib/swr/use-tags";
import TagBadge from "@/components/app/links/tag-badge";
import { TagProps } from "#/lib/types";
-import Badge from "#/ui/badge";
export default function LinkFilters() {
const { primaryDomain } = useDomains();
@@ -34,22 +33,30 @@ export default function LinkFilters() {
const { data: tagsCount } = useLinksCount({ groupBy: "tagId" });
const router = useRouter();
- const { slug, sort, search, domain, userId, tagId } = router.query as {
- slug: string;
- sort?: string;
- search?: string;
- domain?: string;
- userId?: string;
- tagId?: string;
- };
+ const { slug, sort, search, domain, userId, tagId, showArchived } =
+ router.query as {
+ slug: string;
+ sort?: string;
+ search?: string;
+ domain?: string;
+ userId?: string;
+ tagId?: string;
+ showArchived?: string;
+ };
const searchInputRef = useRef(); // this is a hack to clear the search input when the clear button is clicked
+ useEffect(() => {
+ if (search) {
+ setQueryString(router, "showArchived", "true");
+ }
+ }, [search]);
+
return domains && tags && tagsCount ? (
<div className="grid w-full rounded-md bg-white px-5 lg:divide-y lg:divide-gray-300">
<div className="grid gap-3 py-6">
<div className="flex items-center justify-between">
<h3 className="ml-1 mt-2 font-semibold">Filter Links</h3>
- {(sort || search || domain || userId || tagId) && (
+ {(sort || search || domain || userId || tagId || showArchived) && (
<ClearButton searchInputRef={searchInputRef} />
)}
</div>
@@ -186,7 +193,7 @@ const DomainsFilter = ({ domains, primaryDomain }) => {
);
}
}}
- className="mr-2 rounded-md border border-gray-200 px-3 py-1 transition-all hover:border-gray-600 active:bg-gray-100"
+ className="rounded-md border border-gray-200 px-3 py-1 transition-all hover:border-gray-600 active:bg-gray-100"
>
<p className="text-sm text-gray-500">Add</p>
</button>
@@ -237,7 +244,7 @@ const TagsFilter = ({
}) => {
const router = useRouter();
const { slug } = router.query as { slug?: string };
- const [collapsed, setCollapsed] = useState(tags.length === 0 ? true : false);
+ const [collapsed, setCollapsed] = useState(true);
const [search, setSearch] = useState("");
const [showMore, setShowMore] = useState(false);
@@ -256,20 +263,6 @@ const TagsFilter = ({
: initialOptions;
}, [tagsCount, tags, search]);
- const { setShowTagLinkModal, setShowAddProjectModal } =
- useContext(ModalContext);
-
- const addTag = useCallback(() => {
- if (slug) {
- setShowTagLinkModal(true);
- } else {
- setShowAddProjectModal(true);
- toast.error(
- "You can only add a tag to a custom project. Please create a new project or navigate to an existing one.",
- );
- }
- }, [setShowTagLinkModal, setShowAddProjectModal, slug]);
-
return (
<fieldset className="overflow-hidden py-6">
<div className="flex h-8 items-center justify-between">
@@ -284,12 +277,6 @@ const TagsFilter = ({
/>
<h4 className="font-medium text-gray-900">Tags</h4>
</button>
- <button
- onClick={addTag}
- className="mr-2 rounded-md border border-gray-200 px-3 py-1 transition-all hover:border-gray-600 active:bg-gray-100"
- >
- <p className="text-sm text-gray-500">Add</p>
- </button>
</div>
<AnimatePresence initial={false}>
{!collapsed && (
@@ -298,15 +285,7 @@ const TagsFilter = ({
{...SWIPE_REVEAL_ANIMATION_SETTINGS}
>
{tags?.length === 0 ? ( // if the project has no tags
- <p className="text-center text-sm text-gray-500">
- No tags yet.{" "}
- <button
- className="font-medium underline underline-offset-4 transition-colors hover:text-black"
- onClick={addTag}
- >
- Add one.
- </button>
- </p>
+ <p className="text-center text-sm text-gray-500">No tags yet. </p>
) : (
<>
<div className="relative mb-1">
diff --git a/components/app/links/tag-badge.tsx b/components/app/links/tag-badge.tsx
index 808f00ea4b..e637c052b0 100644
--- a/components/app/links/tag-badge.tsx
+++ b/components/app/links/tag-badge.tsx
@@ -15,7 +15,7 @@ export default function TagBadge({
return (
<span
className={clsx(
- "whitespace-nowrap rounded-md px-2 py-0.5 text-sm",
+ "my-auto whitespace-nowrap rounded-md px-2 py-0.5 text-sm",
withIcon && "flex items-center space-x-1.5",
color === "red" && "bg-red-100 text-red-600",
color === "yellow" && "bg-yellow-100 text-yellow-600",
diff --git a/components/app/modals/add-edit-link-modal/expiration-section.tsx b/components/app/modals/add-edit-link-modal/expiration-section.tsx
index 668f8fba6e..e55b5daff8 100644
--- a/components/app/modals/add-edit-link-modal/expiration-section.tsx
+++ b/components/app/modals/add-edit-link-modal/expiration-section.tsx
@@ -36,7 +36,7 @@ export default function ExpirationSection({
<Switch fn={() => setEnabled(!enabled)} checked={enabled} />
</div>
{enabled && (
- <motion.div className="mt-3">
+ <motion.div className="mt-3" {...FADE_IN_ANIMATION_SETTINGS}>
<input
type="datetime-local"
id="expiresAt"
diff --git a/components/app/modals/add-edit-link-modal/index.tsx b/components/app/modals/add-edit-link-modal/index.tsx
index 3924cf3b3d..3f18039573 100644
--- a/components/app/modals/add-edit-link-modal/index.tsx
+++ b/components/app/modals/add-edit-link-modal/index.tsx
@@ -24,13 +24,14 @@ import {
linkConstructor,
truncate,
} from "#/lib/utils";
-import ExpirationSection from "./expiration-section";
+import TagsSection from "./tags-section";
import OGSection from "./og-section";
-import PasswordSection from "./password-section";
import UTMSection from "./utm-section";
+import PasswordSection from "./password-section";
+import ExpirationSection from "./expiration-section";
import IOSSection from "./ios-section";
-import Preview from "./preview";
import AndroidSection from "./android-section";
+import Preview from "./preview";
import { DEFAULT_LINK_PROPS, GOOGLE_FAVICON_URL } from "#/lib/constants";
import useDomains from "#/lib/swr/use-domains";
import { toast } from "sonner";
@@ -527,6 +528,7 @@ function AddEditLinkModal({
</div>
<div className="grid gap-5 px-4 md:px-16">
+ <TagsSection {...{ props, data, setData }} />
<OGSection
{...{ props, data, setData }}
generatingMetatags={generatingMetatags}
diff --git a/components/app/modals/add-edit-link-modal/tags-section.tsx b/components/app/modals/add-edit-link-modal/tags-section.tsx
new file mode 100644
index 0000000000..1fce0fc33e
--- /dev/null
+++ b/components/app/modals/add-edit-link-modal/tags-section.tsx
@@ -0,0 +1,280 @@
+import {
+ Dispatch,
+ KeyboardEvent,
+ SetStateAction,
+ useCallback,
+ useRef,
+ useState,
+} from "react";
+import { Check, Trash, X } from "lucide-react";
+import { Command } from "cmdk";
+import TagBadge, { COLORS_LIST } from "../../links/tag-badge";
+import { LinkProps, TagProps } from "#/lib/types";
+import Switch from "#/ui/switch";
+import { motion } from "framer-motion";
+import { FADE_IN_ANIMATION_SETTINGS } from "#/lib/constants";
+import useTags from "#/lib/swr/use-tags";
+import { useRouter } from "next/router";
+import { toast } from "sonner";
+import { mutate } from "swr";
+import { LoadingCircle } from "#/ui/icons";
+import Popover from "@/components/shared/popover";
+import IconMenu from "@/components/shared/icon-menu";
+import { ThreeDots } from "@/components/shared/icons";
+
+export default function TagsSection({
+ props,
+ data,
+ setData,
+}: {
+ props?: LinkProps;
+ data: LinkProps;
+ setData: Dispatch<SetStateAction<LinkProps>>;
+}) {
+ const { tagId } = data;
+ const { tags } = useTags();
+
+ const inputRef = useRef<HTMLInputElement>(null);
+ const [open, setOpen] = useState(false);
+ const [selected, setSelected] = useState<TagProps[]>(
+ tags?.filter((tag) => tag.id === tagId) || [],
+ );
+ const [inputValue, setInputValue] = useState("");
+
+ const handleUnselect = useCallback((tag: TagProps) => {
+ setSelected((prev) => prev.filter((s) => s.id !== tag.id));
+ }, []);
+
+ const handleKeyDown = useCallback((e: KeyboardEvent<HTMLDivElement>) => {
+ const input = inputRef.current;
+ if (input) {
+ if (e.key === "Delete" || e.key === "Backspace") {
+ if (input.value === "") {
+ setSelected((prev) => {
+ const newSelected = [...prev];
+ newSelected.pop();
+ return newSelected;
+ });
+ }
+ }
+ // This is not a default behaviour of the <input /> field
+ if (e.key === "Escape") {
+ input.blur();
+ }
+ }
+ }, []);
+
+ return (
+ <div className="border-b border-gray-200 pb-5">
+ <h2 className="text-sm font-medium text-gray-900">Tags</h2>
+ <Command
+ className="mt-3 overflow-visible bg-white"
+ loop
+ shouldFilter={
+ inputValue.length > 0 && !tags?.find((t) => t.name === inputValue)
+ }
+ >
+ <div className="group rounded-md border border-gray-300 px-1 focus-within:border-gray-500 focus-within:ring-1 focus-within:ring-gray-500">
+ <div className="flex flex-wrap gap-1">
+ {selected.map((tag) => {
+ return (
+ // <Badge key={framework.value} variant="secondary">
+ // {framework.label}
+ // <button
+ // className="ml-1 ring-offset-background rounded-full outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2"
+ // onKeyDown={(e) => {
+ // if (e.key === "Enter") {
+ // handleUnselect(framework);
+ // }
+ // }}
+ // onMouseDown={(e) => {
+ // e.preventDefault();
+ // e.stopPropagation();
+ // }}
+ // onClick={() => handleUnselect(framework)}
+ // >
+ // <X className="h-3 w-3 text-muted-foreground hover:text-foreground" />
+ // </button>
+ // </Badge>
+ <TagBadge key={tag.id} {...tag} />
+ );
+ })}
+ <Command.Input
+ ref={inputRef}
+ value={inputValue}
+ onValueChange={setInputValue}
+ onKeyDown={handleKeyDown}
+ onBlur={() => setOpen(false)}
+ onFocus={() => setOpen(true)}
+ placeholder="Choose tag"
+ className="flex-1 rounded-r-md border-none text-sm text-gray-900 placeholder-gray-300 focus:outline-none focus:ring-0"
+ />
+ </div>
+ </div>
+ <div className="relative">
+ {open && tags && tags.length > 0 ? (
+ <div
+ style={{
+ animationFillMode: "forwards", // to keep the last frame of the animation
+ }}
+ className="absolute z-10 h-[300px] w-full animate-input-select-slide-up overflow-auto rounded-md border border-gray-200 bg-white p-2 shadow-md transition-all sm:h-auto sm:max-h-[300px] sm:animate-input-select-slide-down"
+ >
+ <Command className="h-full overflow-auto">
+ {tags.map((tag) => {
+ return (
+ <Command.Item
+ key={tag.id}
+ onMouseDown={(e) => {
+ e.preventDefault();
+ e.stopPropagation();
+ }}
+ onSelect={() => {
+ setInputValue("");
+ setSelected((prev) => [...prev, tag]);
+ }}
+ className="group flex cursor-pointer items-center justify-between rounded-md px-4 py-2 text-sm text-gray-900 hover:bg-gray-100 hover:text-gray-900 active:bg-gray-200 aria-selected:bg-gray-100 aria-selected:text-gray-900"
+ >
+ <TagBadge key={tag.id} {...tag} />
+ <TagPopover key={tag.id} tag={tag} />
+ </Command.Item>
+ );
+ })}
+ </Command>
+ </div>
+ ) : null}
+ </div>
+ </Command>
+ </div>
+ );
+}
+
+const TagPopover = ({ tag }: { tag: TagProps }) => {
+ const router = useRouter();
+ const { slug } = router.query as { slug: string };
+ const [data, setData] = useState(tag);
+ const [openPopover, setOpenPopover] = useState(false);
+ const [processing, setProcessing] = useState(false);
+
+ const handleEdit = async (e) => {
+ e.stopPropagation();
+ e.preventDefault();
+ setProcessing(true);
+ fetch(`/api/projects/${slug}/tags/${tag.id}`, {
+ method: "PUT",
+ headers: {
+ "Content-Type": "application/json",
+ },
+ body: JSON.stringify(data),
+ }).then((res) => {
+ setProcessing(false);
+ if (res.ok) {
+ toast.success("Tag updated");
+ mutate(`/api/projects/${slug}/tags`);
+ } else {
+ toast.error("Something went wrong");
+ }
+ });
+ };
+
+ const handleDelete = async () => {
+ setProcessing(true);
+ fetch(`/api/projects/${slug}/tags/${tag.id}`, {
+ method: "DELETE",
+ }).then((res) => {
+ setProcessing(false);
+ if (res.ok) {
+ toast.success("Tag deleted");
+ mutate(`/api/projects/${slug}/tags`);
+ } else {
+ toast.error("Something went wrong");
+ }
+ });
+ };
+
+ return processing ? (
+ <LoadingCircle />
+ ) : (
+ <Popover
+ content={
+ <div
+ data-exclude-click
+ className="flex w-48 flex-col divide-y divide-gray-200"
+ >
+ <div className="p-2">
+ <form
+ onClick={(e) => e.stopPropagation()} // prevent triggering <Command.Item> onClick
+ onKeyDown={(e) => e.stopPropagation()} // prevent triggering <Command.Item> onKeyDown
+ onSubmit={handleEdit}
+ className="relative py-1"
+ >
+ <div className="my-2 flex items-center justify-between px-3">
+ <p className="text-xs text-gray-500">Edit Tag</p>
+ {data !== tag && (
+ <button className="text-xs text-gray-500">Save</button>
+ )}
+ </div>
+ <input
+ type="text"
+ autoFocus
+ required
+ value={data.name}
+ onChange={(e) => setData({ ...data, name: e.target.value })}
+ className="block w-full rounded-md border-gray-300 py-1 pr-7 text-sm text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500"
+ />
+ <div className="grid grid-cols-3 gap-3 p-3 pb-0">
+ {COLORS_LIST.map(({ color, css }) => (
+ <button
+ key={color}
+ type="button"
+ className={`mx-auto flex h-6 w-6 items-center justify-center rounded-full transition-all duration-75 hover:scale-110 active:scale-90 ${css}`}
+ onClick={(e) => {
+ e.stopPropagation();
+ setData({ ...data, color });
+ }}
+ >
+ {data.color === color && <Check className="h-4 w-4" />}
+ </button>
+ ))}
+ </div>
+ </form>
+ </div>
+ <div className="p-2">
+ <button
+ onClick={(e) => {
+ e.stopPropagation();
+ confirm(
+ "Are you sure you want to delete this tag? All tagged links will be untagged, but they won't be deleted.",
+ ) && handleDelete();
+ }}
+ className="flex w-full items-center space-x-2 rounded-md p-2 text-red-600 transition-colors hover:bg-red-100 active:bg-red-200"
+ >
+ <IconMenu
+ text="Delete Tag"
+ icon={<Trash className="h-4 w-4 text-red-600" />}
+ />
+ </button>
+ </div>
+ </div>
+ }
+ align="end"
+ desktopOnly
+ openPopover={openPopover}
+ setOpenPopover={setOpenPopover}
+ >
+ <button
+ type="button"
+ onClick={(e) => {
+ e.stopPropagation();
+ setOpenPopover(!openPopover);
+ }}
+ className={`${
+ openPopover
+ ? "bg-gray-200"
+ : "hidden hover:bg-gray-200 group-hover:block"
+ } rounded-md p-1 transition-colors`}
+ >
+ <ThreeDots className="h-4 w-4 text-gray-500" />
+ </button>
+ </Popover>
+ );
+};
diff --git a/lib/api/links.ts b/lib/api/links.ts
index 4882b93287..5aa814e20c 100644
--- a/lib/api/links.ts
+++ b/lib/api/links.ts
@@ -35,7 +35,7 @@ export async function getLinksForProject({
return await prisma.link.findMany({
where: {
projectId,
- archived: showArchived || search ? undefined : false,
+ archived: showArchived ? undefined : false,
...(domain && { domain }),
...(search && {
key: { search },
diff --git a/package.json b/package.json
index 591918d70f..577dbcc78c 100644
--- a/package.json
+++ b/package.json
@@ -53,7 +53,7 @@
"lucide-react": "^0.192.0",
"mailing-core": "^0.9.1",
"ms": "^2.1.3",
- "next": "^13.4.5-canary.8",
+ "next": "^13.4.8-canary.14",
"next-auth": "^4.22.1",
"next-contentlayer": "^0.3.3",
"node-html-parser": "^6.1.4",
diff --git a/pages/api/links/index.ts b/pages/api/links/index.ts
index 4b77d6445f..60ca99c92b 100644
--- a/pages/api/links/index.ts
+++ b/pages/api/links/index.ts
@@ -24,7 +24,7 @@ export default withLinksAuth(
search?: string;
sort?: "createdAt" | "clicks";
userId?: string;
- showArchived?: boolean;
+ showArchived?: string;
};
const response = await getLinksForProject({
projectId: project?.id || DUB_PROJECT_ID,
@@ -33,7 +33,7 @@ export default withLinksAuth(
search,
sort,
userId: project?.id ? userId : session.user.id,
- showArchived,
+ showArchived: showArchived === "true" ? true : false,
});
return res.status(200).json(response);
diff --git a/yarn.lock b/yarn.lock
index 784cfbb1ae..268d1d28d9 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -714,10 +714,10 @@
resolved "https://registry.yarnpkg.com/@next/env/-/env-13.1.6.tgz#c4925609f16142ded1a5cb833359ab17359b7a93"
integrity sha512-s+W9Fdqh5MFk6ECrbnVmmAOwxKQuhGMT7xXHrkYIBMBcTiOqNWhv5KbJIboKR5STXxNXl32hllnvKaffzFaWQg==
- version "13.4.5-canary.8"
- resolved "https://registry.yarnpkg.com/@next/env/-/env-13.4.5-canary.8.tgz#7c3f182cc5fa380bd79536bcb2b8adc02a733272"
- integrity sha512-45Vzn4eiKMEUraPLUFBXNvy+jW2DLGMF4HrehpqmwRzLqaKOaOamO5g0Ca135efyNUl7yE2PjwVkZfsH4cKWzQ==
+ version "13.4.8-canary.14"
+ resolved "https://registry.yarnpkg.com/@next/env/-/env-13.4.8-canary.14.tgz#37dfa9e13288b8181add117b2951596db213542c"
+ integrity sha512-av9eOV3L1FpoH3P67JnfOIZxNEWbp4xak52XXbR9I96XN0haCeBbyGXseBOpf9DWT9MZHh7zeCciiW+07MCf9Q==
version "13.1.6"
@@ -734,20 +734,20 @@
resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-13.1.6.tgz#ec1b90fd9bf809d8b81004c5182e254dced4ad96"
integrity sha512-KKRQH4DDE4kONXCvFMNBZGDb499Hs+xcFAwvj+rfSUssIDrZOlyfJNy55rH5t2Qxed1e4K80KEJgsxKQN1/fyw==
- version "13.4.5-canary.8"
- resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-13.4.5-canary.8.tgz#e1c22fb1cb356ff13f0b834c586fca1cfd94dd96"
- integrity sha512-MkoyJzuK5OKWR8/M8jqjKyADkCzaCIXhvMzhQoj2ITCzIf5bl73DpC0F4RUg3C42xket7f80WcN5VHg76VU3IA==
+ version "13.4.8-canary.14"
+ resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-13.4.8-canary.14.tgz#853d3b38caaf72e3de7fae2bc98ca004675f6b83"
+ integrity sha512-A/cp3mfSky9KaE883tWc0rM8Cvx/u/F/Fp15vYVrhtr0ZmFfF5Dz31yxN9hU846f+peZXZLKJYfz2g6vKjMtfg==
version "13.1.6"
resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-13.1.6.tgz#e869ac75d16995eee733a7d1550322d9051c1eb4"
integrity sha512-/uOky5PaZDoaU99ohjtNcDTJ6ks/gZ5ykTQDvNZDjIoCxFe3+t06bxsTPY6tAO6uEAw5f6vVFX5H5KLwhrkZCA==
- version "13.4.5-canary.8"
- resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-13.4.5-canary.8.tgz#a89fbfc2bd632c7b90fe49b4a63f6c0482b33b24"
- integrity sha512-FIUdZgjmgWB+pTfJWG8CjXGjg64ZHnzd/mjn9ox9Gx0Hb8CXursL7XpiQcbhl8IeCRLqwV4/f5QQ0F0FVkqSCQ==
+ version "13.4.8-canary.14"
+ resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-13.4.8-canary.14.tgz#bc8369044f653f9752abe1d7ae921acf4295daa7"
+ integrity sha512-TZVVp77rBFTRzM/ikhWtEcJSu0vdWoflNexiSRyM+IdGRO/p04zTHSshJTQYVwWlkJNULCmQefkvMwaOdWQlDw==
version "13.1.6"
@@ -764,70 +764,70 @@
resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-13.1.6.tgz#87a71db21cded3f7c63d1d19079845c59813c53d"
integrity sha512-yCH+yDr7/4FDuWv6+GiYrPI9kcTAO3y48UmaIbrKy8ZJpi7RehJe3vIBRUmLrLaNDH3rY1rwoHi471NvR5J5NQ==
- version "13.4.5-canary.8"
- resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-13.4.5-canary.8.tgz#f8e54e5d807f7dc03955907b13770649b579a8bf"
- integrity sha512-EVV90FrSvTaqr2azdWWeAY+HUj7ok+nAc+py0QwBnFyjoK9QTAth+AwWGkY09ekHAiJVna/YucKDZFE9EV4EEg==
+ version "13.4.8-canary.14"
+ resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-13.4.8-canary.14.tgz#66d61550f30da492f3e7dcb7e0b4cb40130c58ef"
+ integrity sha512-JmklSwdTFPRff5AE1Krw/M3KFi/SvqVi1+MdSI+tAFjTHp54DZGqOWIHFUJey9RrvE3B4ln3ySrKqolU3oBrjA==
version "13.1.6"
resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-13.1.6.tgz#c5aac8619331b9fd030603bbe2b36052011e11de"
integrity sha512-ECagB8LGX25P9Mrmlc7Q/TQBb9rGScxHbv/kLqqIWs2fIXy6Y/EiBBiM72NTwuXUFCNrWR4sjUPSooVBJJ3ESQ==
- version "13.4.5-canary.8"
- resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-13.4.5-canary.8.tgz#1cb2878cbfa29ac26d03f42c1714e5120d8c7ac8"
- integrity sha512-hqYwqrSVeS292St4fLHsZ15jOR53Uml7OSnfDtAYGzCIowAsIss4YJqyHtsIY7q+oSEwMS4tCWDNNECZPO6EPQ==
+ version "13.4.8-canary.14"
+ resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-13.4.8-canary.14.tgz#ab67f6ac6e1eca3e47851a0d0be246ee805ef2f7"
+ integrity sha512-fXaAnWqUtXevw6K70aW00hCYrTWngdmcqfLPrVTsoZaHZEUXROzeQxKmPHgNAshVhCywJKNPDBQgRvv0KBTU3w==
version "13.1.6"
resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-13.1.6.tgz#9513d36d540bbfea575576746736054c31aacdea"
integrity sha512-GT5w2mruk90V/I5g6ScuueE7fqj/d8Bui2qxdw6lFxmuTgMeol5rnzAv4uAoVQgClOUO/MULilzlODg9Ib3Y4Q==
- version "13.4.5-canary.8"
- resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-13.4.5-canary.8.tgz#81a88d1c383f30a8bd7e8d349baca0abe50feb57"
- integrity sha512-7XlhTzV8AS+3PM1ijlgdYShzdxXZDoHgfuQsDr1vIBe16Y198eCc9SfKbrjKVe3PdqRaJbolPMCWcQViIWAYAA==
+ version "13.4.8-canary.14"
+ resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-13.4.8-canary.14.tgz#bba5f000d14e21259a37605af3bb48fbf5b825b4"
+ integrity sha512-1cN3Ql5/o9oMRTOdcKZOnlXUfPLeHios7+fw3OEtoieYEAL3k+sw8QIj4DMDn8hSaWfjT+m8FNjZE6SxEqX+sQ==
version "13.1.6"
resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-13.1.6.tgz#d61fc6884899f5957251f4ce3f522e34a2c479b7"
integrity sha512-keFD6KvwOPzmat4TCnlnuxJCQepPN+8j3Nw876FtULxo8005Y9Ghcl7ACcR8GoiKoddAq8gxNBrpjoxjQRHeAQ==
- version "13.4.5-canary.8"
- resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-13.4.5-canary.8.tgz#9b2a732d2232c135a402187a0b0d3d5cda5a57c4"
- integrity sha512-a9K46D7pI3nNIA8ZbN+7XPWyAF2n1xLLbn4vIa46edn+M0Qdq0/qnF7uAvdRXWaQiBRAvIyRiOOznNPzIBXhkw==
+ version "13.4.8-canary.14"
+ resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-13.4.8-canary.14.tgz#434f4c0c80a214806ec8c219b12384aedc329b0a"
+ integrity sha512-+fRVjUquYmG5kpRPuCGhS65EWlFaPTPCL/SpmhkMRPCdgmZq5fq4L84TvMW4dj5KyFcIi6nckZ8RSi3NP8bCGg==
version "13.1.6"
resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-13.1.6.tgz#fac2077a8ae9768e31444c9ae90807e64117cda7"
integrity sha512-OwertslIiGQluFvHyRDzBCIB07qJjqabAmINlXUYt7/sY7Q7QPE8xVi5beBxX/rxTGPIbtyIe3faBE6Z2KywhQ==
- version "13.4.5-canary.8"
- resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-13.4.5-canary.8.tgz#40c13cd779508fdd40baec1291acdccdf1ddd62b"
- integrity sha512-bhOrlja/IfarpyEMg//ig6mn02kshW1M/Hl7dxrzsCukbdYPkELaR+fCZcxaKhwuSDp1QsQdL2JHokU4FIIWEw==
+ version "13.4.8-canary.14"
+ resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-13.4.8-canary.14.tgz#5353fe652b5a4c778db914b503387eca47220552"
+ integrity sha512-BE2HFOW0GJGnnNRhJ1whFDyLJeWWlJI6SZpU0qMgXxaAuS74cBmlBm8M2nKgc0kmBmCsJ+GjTASAU+ZGpGlMBA==
version "13.1.6"
resolved "https://registry.yarnpkg.com/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-13.1.6.tgz#498bc11c91b4c482a625bf4b978f98ae91111e46"
integrity sha512-g8zowiuP8FxUR9zslPmlju7qYbs2XBtTLVSxVikPtUDQedhcls39uKYLvOOd1JZg0ehyhopobRoH1q+MHlIN/w==
- version "13.4.5-canary.8"
- resolved "https://registry.yarnpkg.com/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-13.4.5-canary.8.tgz#149a4d70f484e325d04bab0204e078c897d0ce77"
- integrity sha512-HkWNlI6rf/DeUenwUF1XC5j09kP5pzcZjGSqo09/qdWERxXz7wdUGIcDyELD++fbCuB6gdwbz9A1A5RvMKi0QA==
+ version "13.4.8-canary.14"
+ resolved "https://registry.yarnpkg.com/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-13.4.8-canary.14.tgz#7b224329e6de8d49b7e4620bc567af3dc2610989"
+ integrity sha512-YbJ7PI5XRn5ybg8BUPICGnzr9YqaAFWlz0Nxl73Y84Xa1o4AXzylFh1mnjpaS/TSx2vWyPkhaNVU9MjcIxrx8A==
version "13.1.6"
resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-13.1.6.tgz#17ed919c723426b7d0ce1cd73d40ce3dcd342089"
integrity sha512-Ls2OL9hi3YlJKGNdKv8k3X/lLgc3VmLG3a/DeTkAd+lAituJp8ZHmRmm9f9SL84fT3CotlzcgbdaCDfFwFA6bA==
- version "13.4.5-canary.8"
- resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-13.4.5-canary.8.tgz#fee454c796f77ded95e487a7b27ab1c68dec8c5f"
- integrity sha512-CHdF7IqCv/LXKL/DiYOXReQfrgJyx9u/IEqcYk+R/k/F9czK8x9zc6jZaQqWiMKl7EYzlLZMUScoGZ2BTQ2Lbw==
+ version "13.4.8-canary.14"
+ resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-13.4.8-canary.14.tgz#e29c7aaf2b4d11a51a2a846671e08f7293cfe36b"
+ integrity sha512-mfZp/OIWP69UxBxgfFeFsSJYvIYBGYSePaoVXb/fTcNwkHEFyolCVZPeCAChM7GbOh2u3PJ9MMhPSEhQSDPIXg==
"@nodelib/[email protected]":
version "2.1.5"
@@ -6992,12 +6992,12 @@ [email protected]:
"@next/swc-win32-ia32-msvc" "13.1.6"
"@next/swc-win32-x64-msvc" "13.1.6"
-next@^13.4.5-canary.8:
- version "13.4.5-canary.8"
- resolved "https://registry.yarnpkg.com/next/-/next-13.4.5-canary.8.tgz#5753540f34168bfa520fcd0e7c0cc0b6be1856e7"
- integrity sha512-S37NTi8SgsqkoiFQvwmT17YdSZVvnr6mfVMbXgSIbUCY6P2Pcjh5pNyurjGGnxrxlRKSKd2Hj0XFaO7VR8A1oA==
+next@^13.4.8-canary.14:
+ version "13.4.8-canary.14"
+ resolved "https://registry.yarnpkg.com/next/-/next-13.4.8-canary.14.tgz#b1f31663ace5822beb26d6689c9ebeb5d8a1320f"
+ integrity sha512-9JYbuTAlcLp+pDAHJr4NYk5S7f13LH4RhH8WNrOA9i9je5sc50OlveInV6bUQdCALo4vYi13rFOEHlc9KmIddA==
dependencies:
- "@next/env" "13.4.5-canary.8"
+ "@next/env" "13.4.8-canary.14"
"@swc/helpers" "0.5.1"
busboy "1.6.0"
caniuse-lite "^1.0.30001406"
@@ -7006,15 +7006,15 @@ next@^13.4.5-canary.8:
watchpack "2.4.0"
zod "3.21.4"
optionalDependencies:
- "@next/swc-darwin-arm64" "13.4.5-canary.8"
- "@next/swc-darwin-x64" "13.4.5-canary.8"
- "@next/swc-linux-arm64-gnu" "13.4.5-canary.8"
- "@next/swc-linux-arm64-musl" "13.4.5-canary.8"
- "@next/swc-linux-x64-gnu" "13.4.5-canary.8"
- "@next/swc-linux-x64-musl" "13.4.5-canary.8"
- "@next/swc-win32-arm64-msvc" "13.4.5-canary.8"
- "@next/swc-win32-ia32-msvc" "13.4.5-canary.8"
- "@next/swc-win32-x64-msvc" "13.4.5-canary.8"
+ "@next/swc-darwin-arm64" "13.4.8-canary.14"
+ "@next/swc-darwin-x64" "13.4.8-canary.14"
+ "@next/swc-linux-arm64-gnu" "13.4.8-canary.14"
+ "@next/swc-linux-arm64-musl" "13.4.8-canary.14"
+ "@next/swc-linux-x64-gnu" "13.4.8-canary.14"
+ "@next/swc-linux-x64-musl" "13.4.8-canary.14"
+ "@next/swc-win32-arm64-msvc" "13.4.8-canary.14"
+ "@next/swc-win32-ia32-msvc" "13.4.8-canary.14"
+ "@next/swc-win32-x64-msvc" "13.4.8-canary.14"
no-case@^2.2.0:
version "2.3.2"