@intlayer/design-system 9.5.9-canary.0 → 9.5.9
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/esm/api/index.mjs +2 -2
- package/dist/esm/api/useAuth/useOAuth2.mjs +2 -2
- package/dist/esm/api/useAuth/useSession.mjs +1 -1
- package/dist/esm/api/useUser/index.mjs +1 -1
- package/dist/esm/components/Accordion/Accordion.mjs +1 -1
- package/dist/esm/components/Avatar/index.mjs +1 -1
- package/dist/esm/components/Badge/index.mjs +1 -1
- package/dist/esm/components/Breadcrumb/index.mjs +2 -2
- package/dist/esm/components/Browser/Browser.mjs +1 -1
- package/dist/esm/components/Button/Button.mjs +1 -1
- package/dist/esm/components/Carousel/index.mjs +1 -1
- package/dist/esm/components/CollapsibleTable/CollapsibleTable.mjs +2 -2
- package/dist/esm/components/Command/index.mjs +1 -1
- package/dist/esm/components/Container/index.mjs +1 -1
- package/dist/esm/components/ContentEditor/ContentEditor.mjs +1 -1
- package/dist/esm/components/ContentEditor/ContentEditorInput.mjs +1 -1
- package/dist/esm/components/ContentEditor/ContentEditorTextArea.mjs +2 -2
- package/dist/esm/components/CopyButton/index.mjs +1 -1
- package/dist/esm/components/CopyToClipboard/index.mjs +1 -1
- package/dist/esm/components/DictionaryFieldEditor/ContentEditorView/TextEditor.mjs +3 -3
- package/dist/esm/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs +1 -1
- package/dist/esm/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs +7 -7
- package/dist/esm/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs +2 -2
- package/dist/esm/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.mjs +2 -2
- package/dist/esm/components/DictionaryFieldEditor/NodeEditor.mjs +2 -2
- package/dist/esm/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs +3 -3
- package/dist/esm/components/DictionaryFieldEditor/StructureView/StructureView.mjs +2 -2
- package/dist/esm/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcher.mjs +1 -1
- package/dist/esm/components/EditableField/EditableFieldLayout.mjs +1 -1
- package/dist/esm/components/Form/elements/OTPElement.mjs +1 -1
- package/dist/esm/components/HideShow/index.mjs +1 -1
- package/dist/esm/components/IDE/FileTree.mjs +1 -1
- package/dist/esm/components/IDE/MarkDownRender.mjs +1 -1
- package/dist/esm/components/Input/Checkbox.mjs +1 -1
- package/dist/esm/components/Input/Input.mjs +1 -1
- package/dist/esm/components/Input/InputPassword.mjs +1 -1
- package/dist/esm/components/Input/OTPInput.mjs +2 -2
- package/dist/esm/components/Input/Radio.mjs +1 -1
- package/dist/esm/components/Input/SearchInput.mjs +1 -1
- package/dist/esm/components/Link/Link.mjs +2 -2
- package/dist/esm/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.mjs +2 -2
- package/dist/esm/components/LocaleSwitcherDropDown/LocaleSwitcher.mjs +1 -1
- package/dist/esm/components/MarkDownRender/MarkDownIframe.mjs +1 -1
- package/dist/esm/components/MarkdownEditor/generative/AICompletionCommands.mjs +1 -1
- package/dist/esm/components/MarkdownEditor/generative/AISelector.mjs +2 -2
- package/dist/esm/components/MarkdownEditor/generative/AISelectorCommands.mjs +1 -1
- package/dist/esm/components/MarkdownEditor/generative/GenerativeMenuSwitch.mjs +1 -1
- package/dist/esm/components/MarkdownEditor/selectors/ColorSelector.mjs +1 -1
- package/dist/esm/components/MarkdownEditor/selectors/LinkSelector.mjs +1 -1
- package/dist/esm/components/MarkdownEditor/selectors/NodeSelector.mjs +1 -1
- package/dist/esm/components/MarkdownEditor/selectors/TextButtons.mjs +1 -1
- package/dist/esm/components/MarkdownEditor/slashCommand.mjs +1 -1
- package/dist/esm/components/Modal/Modal.mjs +4 -4
- package/dist/esm/components/Navbar/MobileNavbar.mjs +1 -1
- package/dist/esm/components/Pagination/Pagination.mjs +3 -3
- package/dist/esm/components/Pattern/GridDistortionPattern.mjs +1 -1
- package/dist/esm/components/RightDrawer/RightDrawer.mjs +4 -4
- package/dist/esm/components/Select/Multiselect.mjs +1 -1
- package/dist/esm/components/Select/Select.mjs +1 -1
- package/dist/esm/components/Status/index.mjs +1 -1
- package/dist/esm/components/SwitchSelector/SwitchSelector.mjs +1 -1
- package/dist/esm/components/SwitchSelector/VerticalSwitchSelector.mjs +1 -1
- package/dist/esm/components/Tab/Tab.mjs +2 -2
- package/dist/esm/components/TabSelector/TabSelector.mjs +1 -1
- package/dist/esm/components/Table/ExpandButton.mjs +1 -1
- package/dist/esm/components/Tag/index.mjs +1 -1
- package/dist/esm/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.mjs +1 -1
- package/dist/esm/components/ThemeSwitcherDropDown/MobileThemeSwitcher.mjs +1 -1
- package/dist/esm/components/Toaster/Toast.mjs +2 -2
- package/dist/esm/components/index.mjs +3 -3
- package/dist/esm/hooks/index.mjs +9 -9
- package/dist/esm/hooks/useRemoteMcpTools.mjs +1 -1
- package/dist/esm/hooks/useScrollDetection.mjs +1 -1
- package/dist/esm/hooks/useScrollY.mjs +1 -1
- package/dist/esm/libs/auth.mjs +1 -1
- package/dist/esm/providers/ReactQueryProvider.mjs +1 -1
- package/dist/esm/providers/index.mjs +1 -1
- package/dist/esm/structured-data/index.mjs +5 -5
- package/dist/esm/utils/index.mjs +1 -1
- package/dist/esm/webmcp/index.mjs +1 -1
- package/package.json +15 -15
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { toast } from "../../Toaster/useToast.mjs";
|
|
4
3
|
import { Loader } from "../../Loader/index.mjs";
|
|
5
4
|
import { Button } from "../../Button/Button.mjs";
|
|
6
5
|
import { Command, CommandRoot } from "../../Command/index.mjs";
|
|
7
6
|
import { MarkdownRenderer } from "../../MarkDownRender/MarkDownRender.mjs";
|
|
8
7
|
import { useEditor } from "../novel/components/index.mjs";
|
|
9
8
|
import { addAIHighlight } from "../novel/extensions/ai-highlight.mjs";
|
|
9
|
+
import { toast } from "../../Toaster/useToast.mjs";
|
|
10
10
|
import { AICompletionCommands } from "./AICompletionCommands.mjs";
|
|
11
11
|
import { AISelectorCommands } from "./AISelectorCommands.mjs";
|
|
12
12
|
import { useAICompletion } from "./useAICompletion.mjs";
|
|
13
|
+
import { ArrowUp, Sparkles } from "lucide-react";
|
|
13
14
|
import { useState } from "react";
|
|
14
15
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
-
import { ArrowUp, Sparkles } from "lucide-react";
|
|
16
16
|
import { useIntlayer } from "react-intlayer";
|
|
17
17
|
|
|
18
18
|
//#region src/components/MarkdownEditor/generative/AISelector.tsx
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { Command } from "../../Command/index.mjs";
|
|
4
4
|
import { useEditor } from "../novel/components/index.mjs";
|
|
5
5
|
import { getPrevText } from "../novel/utils/index.mjs";
|
|
6
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
6
|
import { ArrowDownWideNarrow, CheckCheck, RefreshCcwDot, StepForward, WrapText } from "lucide-react";
|
|
7
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { useIntlayer } from "react-intlayer";
|
|
9
9
|
|
|
10
10
|
//#region src/components/MarkdownEditor/generative/AISelectorCommands.tsx
|
|
@@ -5,9 +5,9 @@ import { EditorBubble } from "../novel/components/editor-bubble.mjs";
|
|
|
5
5
|
import { useEditor } from "../novel/components/index.mjs";
|
|
6
6
|
import { removeAIHighlight } from "../novel/extensions/ai-highlight.mjs";
|
|
7
7
|
import { AISelector } from "./AISelector.mjs";
|
|
8
|
+
import { Sparkles } from "lucide-react";
|
|
8
9
|
import { Fragment, useEffect } from "react";
|
|
9
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
-
import { Sparkles } from "lucide-react";
|
|
11
11
|
import { useIntlayer } from "react-intlayer";
|
|
12
12
|
|
|
13
13
|
//#region src/components/MarkdownEditor/generative/GenerativeMenuSwitch.tsx
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { useEditor } from "../novel/components/index.mjs";
|
|
4
|
+
import { Check, ChevronDown } from "lucide-react";
|
|
4
5
|
import { useEffect, useRef, useState } from "react";
|
|
5
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
import { Check, ChevronDown } from "lucide-react";
|
|
7
7
|
import { useIntlayer } from "react-intlayer";
|
|
8
8
|
|
|
9
9
|
//#region src/components/MarkdownEditor/selectors/ColorSelector.tsx
|
|
@@ -4,9 +4,9 @@ import { cn } from "../../../utils/cn.mjs";
|
|
|
4
4
|
import { Button } from "../../Button/Button.mjs";
|
|
5
5
|
import { useEditor } from "../novel/components/index.mjs";
|
|
6
6
|
import { getUrlFromString } from "../novel/utils/index.mjs";
|
|
7
|
+
import { Check, Link2, Trash } from "lucide-react";
|
|
7
8
|
import { useEffect, useRef, useState } from "react";
|
|
8
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
-
import { Check, Link2, Trash } from "lucide-react";
|
|
10
10
|
import { useIntlayer } from "react-intlayer";
|
|
11
11
|
|
|
12
12
|
//#region src/components/MarkdownEditor/selectors/LinkSelector.tsx
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
import { cn } from "../../../utils/cn.mjs";
|
|
4
4
|
import { useEditor } from "../novel/components/index.mjs";
|
|
5
|
+
import { Check, CheckSquare, ChevronDown, Code, Heading1, Heading2, Heading3, ListOrdered, TextIcon, TextQuote } from "lucide-react";
|
|
5
6
|
import { useEffect, useRef, useState } from "react";
|
|
6
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
import { Check, CheckSquare, ChevronDown, Code, Heading1, Heading2, Heading3, ListOrdered, TextIcon, TextQuote } from "lucide-react";
|
|
8
8
|
import { useIntlayer } from "react-intlayer";
|
|
9
9
|
|
|
10
10
|
//#region src/components/MarkdownEditor/selectors/NodeSelector.tsx
|
|
@@ -4,8 +4,8 @@ import { cn } from "../../../utils/cn.mjs";
|
|
|
4
4
|
import { Button } from "../../Button/Button.mjs";
|
|
5
5
|
import { EditorBubbleItem } from "../novel/components/editor-bubble-item.mjs";
|
|
6
6
|
import { useEditor } from "../novel/components/index.mjs";
|
|
7
|
-
import { jsx } from "react/jsx-runtime";
|
|
8
7
|
import { BoldIcon, CodeIcon, ItalicIcon, StrikethroughIcon, UnderlineIcon } from "lucide-react";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
import { useIntlayer } from "react-intlayer";
|
|
10
10
|
|
|
11
11
|
//#region src/components/MarkdownEditor/selectors/TextButtons.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { YoutubeLogo } from "../SocialNetworks/YoutubeLogo.mjs";
|
|
2
2
|
import { Command, createSuggestionItems, renderItems } from "./novel/extensions/slash-command.mjs";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
3
|
import { CheckSquare, Code, Heading1, Heading2, Heading3, ImageIcon, List, ListOrdered, Text, TextQuote } from "lucide-react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/MarkdownEditor/slashCommand.tsx
|
|
7
7
|
/**
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { cn } from "../../utils/cn.mjs";
|
|
4
|
-
import { useGetElementOrWindow } from "../../hooks/useGetElementOrWindow.mjs";
|
|
5
|
-
import { useScrollBlockage } from "../../hooks/useScrollBlockage/index.mjs";
|
|
6
4
|
import { Button } from "../Button/Button.mjs";
|
|
7
5
|
import { Container } from "../Container/index.mjs";
|
|
6
|
+
import { useGetElementOrWindow } from "../../hooks/useGetElementOrWindow.mjs";
|
|
7
|
+
import { useScrollBlockage } from "../../hooks/useScrollBlockage/index.mjs";
|
|
8
8
|
import { H3 } from "../Headers/index.mjs";
|
|
9
|
+
import { X } from "lucide-react";
|
|
9
10
|
import { useEffect } from "react";
|
|
10
|
-
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
import { cva } from "class-variance-authority";
|
|
12
|
-
import {
|
|
12
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { motion } from "framer-motion";
|
|
14
14
|
import { createPortal } from "react-dom";
|
|
15
15
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { cn } from "../../utils/cn.mjs";
|
|
4
|
+
import { MaxHeightSmoother } from "../MaxHeightSmoother/index.mjs";
|
|
4
5
|
import { useScrollBlockage } from "../../hooks/useScrollBlockage/index.mjs";
|
|
5
6
|
import { useScrollDetection } from "../../hooks/useScrollDetection.mjs";
|
|
6
|
-
import { MaxHeightSmoother } from "../MaxHeightSmoother/index.mjs";
|
|
7
7
|
import { Burger } from "./Burger.mjs";
|
|
8
8
|
import { useEffect, useRef, useState } from "react";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { cn } from "../../utils/cn.mjs";
|
|
4
|
-
import { useItemSelector } from "../../hooks/useItemSelector.mjs";
|
|
5
4
|
import { Button } from "../Button/Button.mjs";
|
|
5
|
+
import { useItemSelector } from "../../hooks/useItemSelector.mjs";
|
|
6
|
+
import { ChevronLeft, ChevronRight, MoreHorizontal } from "lucide-react";
|
|
6
7
|
import { useEffect, useRef } from "react";
|
|
7
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { cva } from "class-variance-authority";
|
|
9
|
-
import {
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { useIntlayer } from "react-intlayer";
|
|
11
11
|
|
|
12
12
|
//#region src/components/Pagination/Pagination.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { useTheme } from "../../providers/ThemeProvider.mjs";
|
|
4
3
|
import { cn } from "../../utils/cn.mjs";
|
|
4
|
+
import { useTheme } from "../../providers/ThemeProvider.mjs";
|
|
5
5
|
import { useEffect, useRef } from "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { useGetElementOrWindow } from "../../hooks/useGetElementOrWindow.mjs";
|
|
4
|
-
import { useDevice } from "../../hooks/useDevice.mjs";
|
|
5
|
-
import { useScrollBlockage } from "../../hooks/useScrollBlockage/index.mjs";
|
|
6
3
|
import { Button } from "../Button/Button.mjs";
|
|
7
4
|
import { Container } from "../Container/index.mjs";
|
|
5
|
+
import { useDevice } from "../../hooks/useDevice.mjs";
|
|
8
6
|
import { KeyboardShortcut } from "../KeyboardShortcut/KeyboardShortcut.mjs";
|
|
9
7
|
import { Popover } from "../Popover/dynamic.mjs";
|
|
8
|
+
import { useGetElementOrWindow } from "../../hooks/useGetElementOrWindow.mjs";
|
|
9
|
+
import { useScrollBlockage } from "../../hooks/useScrollBlockage/index.mjs";
|
|
10
10
|
import { MaxWidthSmoother } from "../MaxWidthSmoother/index.mjs";
|
|
11
11
|
import { isElementAtTopAndNotCovered } from "./isElementAtTopAndNotCovered.mjs";
|
|
12
12
|
import { useIsRightDrawerOpen, useRightDrawerActions } from "./useRightDrawer.mjs";
|
|
13
|
+
import { ChevronLeft, X } from "lucide-react";
|
|
13
14
|
import { useEffect, useRef, useState } from "react";
|
|
14
15
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
-
import { ChevronLeft, X } from "lucide-react";
|
|
16
16
|
import { useIntlayer } from "react-intlayer";
|
|
17
17
|
import { createPortal } from "react-dom";
|
|
18
18
|
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
import { cn } from "../../utils/cn.mjs";
|
|
4
4
|
import { Badge } from "../Badge/index.mjs";
|
|
5
5
|
import { Command, CommandRoot } from "../Command/index.mjs";
|
|
6
|
+
import { Check, X } from "lucide-react";
|
|
6
7
|
import { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
7
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
import { Check, X } from "lucide-react";
|
|
9
9
|
|
|
10
10
|
//#region src/components/Select/Multiselect.tsx
|
|
11
11
|
const MultiSelectContext = createContext(null);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { cn } from "../../utils/cn.mjs";
|
|
4
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { CheckIcon, ChevronDownIcon, ChevronUpIcon, ChevronsUpDown } from "lucide-react";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
7
7
|
|
|
8
8
|
//#region src/components/Select/Select.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useTheme } from "../../providers/ThemeProvider.mjs";
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
2
|
import cn from "cnfast";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/Status/index.tsx
|
|
6
6
|
const Status = ({ className, ...props }) => {
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { cn } from "../../utils/cn.mjs";
|
|
4
4
|
import { useSwitchSelector } from "./useSwitchSelector.mjs";
|
|
5
5
|
import { createElement } from "react";
|
|
6
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
6
|
import { cva } from "class-variance-authority";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
|
|
9
9
|
//#region src/components/SwitchSelector/SwitchSelector.tsx
|
|
10
10
|
const defaultChoices = [{
|
|
@@ -4,8 +4,8 @@ import { cn } from "../../utils/cn.mjs";
|
|
|
4
4
|
import { useSwitchSelector } from "./useSwitchSelector.mjs";
|
|
5
5
|
import { defaultChoices } from "./SwitchSelector.mjs";
|
|
6
6
|
import { createElement } from "react";
|
|
7
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
7
|
import { cva } from "class-variance-authority";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
|
|
10
10
|
//#region src/components/SwitchSelector/VerticalSwitchSelector.tsx
|
|
11
11
|
const verticalSwitchSelectorVariant = cva("flex h-fit w-fit cursor-pointer flex-col gap-2 rounded-2xl border-[1.3px] p-1", {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { cn } from "../../utils/cn.mjs";
|
|
4
|
-
import { useHorizontalSwipe } from "../../hooks/useHorizontalSwipe.mjs";
|
|
5
4
|
import { TabSelector } from "../TabSelector/TabSelector.mjs";
|
|
5
|
+
import { useHorizontalSwipe } from "../../hooks/useHorizontalSwipe.mjs";
|
|
6
6
|
import { useTabContext } from "./TabContext.mjs";
|
|
7
7
|
import { Children, createContext, isValidElement, useState } from "react";
|
|
8
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
8
|
import { cva } from "class-variance-authority";
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
|
|
11
11
|
//#region src/components/Tab/Tab.tsx
|
|
12
12
|
/**
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { cn } from "../../utils/cn.mjs";
|
|
4
4
|
import { useItemSelector } from "../../hooks/useItemSelector.mjs";
|
|
5
5
|
import { cloneElement, useEffect, useRef } from "react";
|
|
6
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
6
|
import { cva } from "class-variance-authority";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
|
|
9
9
|
//#region src/components/TabSelector/TabSelector.tsx
|
|
10
10
|
const tabSelectorVariant = cva("relative z-0 flex size-full flex-row items-center gap-2", {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Button } from "../Button/Button.mjs";
|
|
2
2
|
import { Popover } from "../Popover/dynamic.mjs";
|
|
3
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
3
|
import { MoveDiagonal } from "lucide-react";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { useIntlayer } from "react-intlayer";
|
|
6
6
|
|
|
7
7
|
//#region src/components/Table/ExpandButton.tsx
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { Button } from "../Button/Button.mjs";
|
|
4
4
|
import { Container } from "../Container/index.mjs";
|
|
5
5
|
import { DropDown } from "../DropDown/index.mjs";
|
|
6
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
6
|
import { CircleDashed, Moon, Sun } from "lucide-react";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
|
|
9
9
|
//#region src/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.tsx
|
|
10
10
|
const ButtonItem = ({ Icon, children, ...props }) => /* @__PURE__ */ jsx("div", {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { cn } from "../../utils/cn.mjs";
|
|
4
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { CircleDashed, Moon, Sun } from "lucide-react";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
|
|
7
7
|
//#region src/components/ThemeSwitcherDropDown/MobileThemeSwitcher.tsx
|
|
8
8
|
/** Order a tap cycles through. */
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { cn } from "../../utils/cn.mjs";
|
|
4
|
+
import { X } from "lucide-react";
|
|
5
|
+
import { cva } from "class-variance-authority";
|
|
4
6
|
import { jsx } from "react/jsx-runtime";
|
|
5
7
|
import * as ToastPrimitives from "@radix-ui/react-toast";
|
|
6
|
-
import { cva } from "class-variance-authority";
|
|
7
|
-
import { X } from "lucide-react";
|
|
8
8
|
|
|
9
9
|
//#region src/components/Toaster/Toast.tsx
|
|
10
10
|
const ToastProvider = ToastPrimitives;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { Toast, ToastAction, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport, toastVariants } from "./Toaster/Toast.mjs";
|
|
2
|
-
import { reducer, toast, useToast } from "./Toaster/useToast.mjs";
|
|
3
|
-
import { Toaster } from "./Toaster/Toaster.mjs";
|
|
4
1
|
import { Loader } from "./Loader/index.mjs";
|
|
5
2
|
import { Button, buttonVariants } from "./Button/Button.mjs";
|
|
6
3
|
import { MaxHeightSmoother } from "./MaxHeightSmoother/index.mjs";
|
|
@@ -124,6 +121,9 @@ import { SmartTable } from "./Table/SmartTable.mjs";
|
|
|
124
121
|
import { Hr, Td, Th, Tr } from "./Table/TableElements.mjs";
|
|
125
122
|
import { MarkdownRenderer, baseMarkdownComponents, getIntlayerMarkdownOptions } from "./MarkDownRender/MarkDownRender.mjs";
|
|
126
123
|
import { createEditorUploadFn } from "./MarkdownEditor/imageUpload.mjs";
|
|
124
|
+
import { Toast, ToastAction, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport, toastVariants } from "./Toaster/Toast.mjs";
|
|
125
|
+
import { reducer, toast, useToast } from "./Toaster/useToast.mjs";
|
|
126
|
+
import { Toaster } from "./Toaster/Toaster.mjs";
|
|
127
127
|
import { MarkdownEditor } from "./MarkdownEditor/MarkdownEditor.mjs";
|
|
128
128
|
import { MaxWidthSmoother } from "./MaxWidthSmoother/index.mjs";
|
|
129
129
|
import { DesktopNavbar } from "./Navbar/DesktopNavbar.mjs";
|
package/dist/esm/hooks/index.mjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { useStickToBottom } from "./useStickToBottom.mjs";
|
|
2
|
-
import { useWebMCPTools } from "./useWebMCPTools.mjs";
|
|
3
|
-
import { useSearch } from "./useSearch.mjs";
|
|
4
|
-
import { useGetElementOrWindow } from "./useGetElementOrWindow.mjs";
|
|
5
|
-
import { useScrollY } from "./useScrollY.mjs";
|
|
6
|
-
import { NO_HIGHLIGHTED_INDEX, useListKeyboardNavigation } from "./useListKeyboardNavigation.mjs";
|
|
7
|
-
import { useGetElementById } from "./useGetElementById.mjs";
|
|
8
1
|
import { calculateIsMobile, checkIsIOS, checkIsIphoneOrSafariDevice, checkIsMac, checkIsMobileScreen, checkIsMobileUserAgent, getBreakpointFromSize, useDevice } from "./useDevice.mjs";
|
|
2
|
+
import { useItemSelector } from "./useItemSelector.mjs";
|
|
3
|
+
import { usePersistedStore } from "./usePersistedStore.mjs";
|
|
4
|
+
import { useGetElementById } from "./useGetElementById.mjs";
|
|
5
|
+
import { useGetElementOrWindow } from "./useGetElementOrWindow.mjs";
|
|
9
6
|
import { useHorizontalSwipe } from "./useHorizontalSwipe.mjs";
|
|
10
7
|
import { useIsMounted } from "./useIsMounted.mjs";
|
|
11
|
-
import { useItemSelector } from "./useItemSelector.mjs";
|
|
12
8
|
import { useKeyboardDetector } from "./useKeyboardDetector.mjs";
|
|
13
|
-
import {
|
|
9
|
+
import { NO_HIGHLIGHTED_INDEX, useListKeyboardNavigation } from "./useListKeyboardNavigation.mjs";
|
|
14
10
|
import { useRemoteMcpTools } from "./useRemoteMcpTools.mjs";
|
|
15
11
|
import { useScreenWidth } from "./useScreenWidth.mjs";
|
|
16
12
|
import { useScrollBlockage } from "./useScrollBlockage/index.mjs";
|
|
17
13
|
import { useScrollDetection } from "./useScrollDetection.mjs";
|
|
14
|
+
import { useScrollY } from "./useScrollY.mjs";
|
|
15
|
+
import { useSearch } from "./useSearch.mjs";
|
|
16
|
+
import { useStickToBottom } from "./useStickToBottom.mjs";
|
|
17
|
+
import { useWebMCPTools } from "./useWebMCPTools.mjs";
|
|
18
18
|
|
|
19
19
|
export { NO_HIGHLIGHTED_INDEX, calculateIsMobile, checkIsIOS, checkIsIphoneOrSafariDevice, checkIsMac, checkIsMobileScreen, checkIsMobileUserAgent, getBreakpointFromSize, useDevice, useGetElementById, useGetElementOrWindow, useHorizontalSwipe, useIsMounted, useItemSelector, useKeyboardDetector, useListKeyboardNavigation, usePersistedStore, useRemoteMcpTools, useScreenWidth, useScrollBlockage, useScrollDetection, useScrollY, useSearch, useStickToBottom, useWebMCPTools };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { Mcp_Root } from "../routes.mjs";
|
|
4
|
-
import { isWebMCPAvailable } from "../webmcp/getModelContext.mjs";
|
|
5
4
|
import { createRemoteMcpTools } from "../webmcp/createRemoteMcpTools.mjs";
|
|
5
|
+
import { isWebMCPAvailable } from "../webmcp/getModelContext.mjs";
|
|
6
6
|
import { useEffect, useRef, useState } from "react";
|
|
7
7
|
|
|
8
8
|
//#region src/hooks/useRemoteMcpTools.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { observeScrollExtent } from "../utils/observeScrollExtent.mjs";
|
|
4
3
|
import { useGetElementOrWindow } from "./useGetElementOrWindow.mjs";
|
|
5
4
|
import { useScrollBlockage } from "./useScrollBlockage/index.mjs";
|
|
5
|
+
import { observeScrollExtent } from "../utils/observeScrollExtent.mjs";
|
|
6
6
|
import { useCallback, useEffect, useState } from "react";
|
|
7
7
|
|
|
8
8
|
//#region src/hooks/useScrollDetection.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { observeScrollExtent } from "../utils/observeScrollExtent.mjs";
|
|
4
3
|
import { scheduleFrameTask } from "../utils/scheduleFrameTask.mjs";
|
|
5
4
|
import { useGetElementOrWindow } from "./useGetElementOrWindow.mjs";
|
|
5
|
+
import { observeScrollExtent } from "../utils/observeScrollExtent.mjs";
|
|
6
6
|
import { useEffect, useState } from "react";
|
|
7
7
|
|
|
8
8
|
//#region src/hooks/useScrollY.ts
|
package/dist/esm/libs/auth.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { resolveInternalBackendUrl } from "@intlayer/api";
|
|
1
2
|
import { passkeyClient } from "@better-auth/passkey/client";
|
|
2
3
|
import { ssoClient } from "@better-auth/sso/client";
|
|
3
|
-
import { resolveInternalBackendUrl } from "@intlayer/api";
|
|
4
4
|
import { editor } from "@intlayer/config/built";
|
|
5
5
|
import { BACKEND_URL } from "@intlayer/config/defaultValues";
|
|
6
6
|
import { createAuthClient } from "better-auth/client";
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { useToast } from "../components/Toaster/useToast.mjs";
|
|
4
4
|
import { useRef } from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
import { createAsyncStoragePersister } from "@tanstack/query-async-storage-persister";
|
|
7
6
|
import { MutationCache, QueryClient, QueryClientProvider, timeoutManager } from "@tanstack/react-query";
|
|
7
|
+
import { createAsyncStoragePersister } from "@tanstack/query-async-storage-persister";
|
|
8
8
|
import { PersistQueryClientProvider } from "@tanstack/react-query-persist-client";
|
|
9
9
|
|
|
10
10
|
//#region src/providers/ReactQueryProvider.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { DeferredAuthProvider, useIsAuthFetchEnabled } from "./DeferredAuthProvider.mjs";
|
|
1
2
|
import { ThemeProvider, useTheme } from "./ThemeProvider.mjs";
|
|
2
3
|
import { ReactQueryProvider, getQueryClient } from "./ReactQueryProvider.mjs";
|
|
3
|
-
import { DeferredAuthProvider, useIsAuthFetchEnabled } from "./DeferredAuthProvider.mjs";
|
|
4
4
|
import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
|
|
5
5
|
|
|
6
6
|
export { DeferredAuthProvider, ReactQueryDevtools, ReactQueryProvider, ThemeProvider, getQueryClient, useIsAuthFetchEnabled, useTheme };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import { buildItemListJsonLd } from "./buildItemListJsonLd.mjs";
|
|
1
2
|
import { normalizeJsonLdUrl, normalizeJsonLdUrls } from "./normalizeJsonLdUrl.mjs";
|
|
2
|
-
import { buildProductJsonLd } from "./buildProductJsonLd.mjs";
|
|
3
|
-
import { buildAuthorJsonLd } from "./buildAuthorJsonLd.mjs";
|
|
4
3
|
import { buildBreadcrumbsJsonLd } from "./buildBreadcrumbsJsonLd.mjs";
|
|
5
|
-
import { buildCreativeWorkJsonLd } from "./buildCreativeWorkJsonLd.mjs";
|
|
6
4
|
import { buildFAQPageJsonLd } from "./buildFAQPageJsonLd.mjs";
|
|
7
|
-
import {
|
|
5
|
+
import { buildCreativeWorkJsonLd } from "./buildCreativeWorkJsonLd.mjs";
|
|
6
|
+
import { buildWebsiteJsonLd } from "./buildWebsiteJsonLd.mjs";
|
|
7
|
+
import { buildAuthorJsonLd } from "./buildAuthorJsonLd.mjs";
|
|
8
8
|
import { buildOrganizationJsonLd } from "./buildOrganizationJsonLd.mjs";
|
|
9
|
+
import { buildProductJsonLd } from "./buildProductJsonLd.mjs";
|
|
9
10
|
import { buildSoftwareApplicationJsonLd } from "./buildSoftwareApplicationJsonLd.mjs";
|
|
10
|
-
import { buildWebsiteJsonLd } from "./buildWebsiteJsonLd.mjs";
|
|
11
11
|
|
|
12
12
|
export { buildAuthorJsonLd, buildBreadcrumbsJsonLd, buildCreativeWorkJsonLd, buildFAQPageJsonLd, buildItemListJsonLd, buildOrganizationJsonLd, buildProductJsonLd, buildSoftwareApplicationJsonLd, buildWebsiteJsonLd, normalizeJsonLdUrl, normalizeJsonLdUrls };
|
package/dist/esm/utils/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cn } from "./cn.mjs";
|
|
2
|
-
import { observeScrollExtent } from "./observeScrollExtent.mjs";
|
|
3
2
|
import { scheduleFrameTask } from "./scheduleFrameTask.mjs";
|
|
3
|
+
import { observeScrollExtent } from "./observeScrollExtent.mjs";
|
|
4
4
|
|
|
5
5
|
export { cn, observeScrollExtent, scheduleFrameTask };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { createRemoteMcpTools, formatRemoteMcpResult } from "./createRemoteMcpTools.mjs";
|
|
1
2
|
import { getModelContext, isWebMCPAvailable } from "./getModelContext.mjs";
|
|
2
3
|
import { formatToolResult, registerWebMCPTools } from "./registerWebMCPTools.mjs";
|
|
3
|
-
import { createRemoteMcpTools, formatRemoteMcpResult } from "./createRemoteMcpTools.mjs";
|
|
4
4
|
|
|
5
5
|
export { createRemoteMcpTools, formatRemoteMcpResult, formatToolResult, getModelContext, isWebMCPAvailable, registerWebMCPTools };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/design-system",
|
|
3
|
-
"version": "9.5.9
|
|
3
|
+
"version": "9.5.9",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Intlayer design system, including UI components used in the Intlayer editor, website, and visual editor/CMS.",
|
|
6
6
|
"keywords": [
|
|
@@ -463,13 +463,13 @@
|
|
|
463
463
|
"dependencies": {
|
|
464
464
|
"@better-auth/passkey": "1.7.5",
|
|
465
465
|
"@better-auth/sso": "1.7.5",
|
|
466
|
-
"@intlayer/api": "9.5.
|
|
467
|
-
"@intlayer/config": "9.5.
|
|
468
|
-
"@intlayer/core": "9.5.
|
|
469
|
-
"@intlayer/dictionaries-entry": "9.5.
|
|
470
|
-
"@intlayer/editor-react": "9.5.
|
|
471
|
-
"@intlayer/engine": "9.5.
|
|
472
|
-
"@intlayer/types": "9.5.
|
|
466
|
+
"@intlayer/api": "9.5.9",
|
|
467
|
+
"@intlayer/config": "9.5.9",
|
|
468
|
+
"@intlayer/core": "9.5.9",
|
|
469
|
+
"@intlayer/dictionaries-entry": "9.5.9",
|
|
470
|
+
"@intlayer/editor-react": "9.5.9",
|
|
471
|
+
"@intlayer/engine": "9.5.9",
|
|
472
|
+
"@intlayer/types": "9.5.9",
|
|
473
473
|
"@radix-ui/react-dialog": "1.1.23",
|
|
474
474
|
"@radix-ui/react-select": "2.3.7",
|
|
475
475
|
"@radix-ui/react-slot": "1.3.3",
|
|
@@ -503,7 +503,7 @@
|
|
|
503
503
|
"defu": "6.1.7",
|
|
504
504
|
"dompurify": "3.4.16",
|
|
505
505
|
"isomorphic-dompurify": "4.3.0",
|
|
506
|
-
"react-intlayer": "9.5.
|
|
506
|
+
"react-intlayer": "9.5.9",
|
|
507
507
|
"rollup-preserve-directives": "1.1.3",
|
|
508
508
|
"tiptap-extension-global-drag-handle": "^0.1.18",
|
|
509
509
|
"tiptap-markdown": "^0.9.0",
|
|
@@ -511,7 +511,7 @@
|
|
|
511
511
|
"zod": "4.6.5"
|
|
512
512
|
},
|
|
513
513
|
"devDependencies": {
|
|
514
|
-
"@intlayer/backend": "9.5.
|
|
514
|
+
"@intlayer/backend": "9.5.9",
|
|
515
515
|
"@shikijs/core": "4.4.3",
|
|
516
516
|
"@shikijs/engine-oniguruma": "4.4.3",
|
|
517
517
|
"@shikijs/transformers": "4.4.3",
|
|
@@ -538,19 +538,19 @@
|
|
|
538
538
|
"@utils/ts-config": "1.0.4",
|
|
539
539
|
"@utils/ts-config-types": "1.0.4",
|
|
540
540
|
"fast-glob": "3.3.3",
|
|
541
|
-
"intlayer": "9.5.
|
|
541
|
+
"intlayer": "9.5.9",
|
|
542
542
|
"rimraf": "6.1.3",
|
|
543
543
|
"shiki": "4.4.3",
|
|
544
544
|
"storybook": "10.6.0",
|
|
545
545
|
"tsdown": "0.23.0",
|
|
546
546
|
"typescript": "7.0.2",
|
|
547
547
|
"vite": "8.3.0",
|
|
548
|
-
"vite-intlayer": "9.5.
|
|
548
|
+
"vite-intlayer": "9.5.9",
|
|
549
549
|
"vitest": "5.0.1"
|
|
550
550
|
},
|
|
551
551
|
"peerDependencies": {
|
|
552
552
|
"@hookform/resolvers": "5.9.1",
|
|
553
|
-
"@intlayer/backend": "9.5.
|
|
553
|
+
"@intlayer/backend": "9.5.9",
|
|
554
554
|
"@monaco-editor/react": "4.7.0",
|
|
555
555
|
"@shikijs/core": "4.4.3",
|
|
556
556
|
"@shikijs/engine-oniguruma": "4.4.3",
|
|
@@ -559,12 +559,12 @@
|
|
|
559
559
|
"@tanstack/react-query-devtools": "5.103.2",
|
|
560
560
|
"framer-motion": "13.4.2",
|
|
561
561
|
"fuse.js": "7.5.0",
|
|
562
|
-
"intlayer": "9.5.
|
|
562
|
+
"intlayer": "9.5.9",
|
|
563
563
|
"lucide-react": "1.47.0",
|
|
564
564
|
"react": ">=16.0.0",
|
|
565
565
|
"react-dom": ">=16.0.0",
|
|
566
566
|
"react-hook-form": "7.88.0",
|
|
567
|
-
"react-intlayer": "9.5.
|
|
567
|
+
"react-intlayer": "9.5.9",
|
|
568
568
|
"shiki": "4.4.3",
|
|
569
569
|
"tailwindcss": "4.3.3"
|
|
570
570
|
},
|