@intlayer/design-system 9.0.0 → 9.0.2
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/useAuth/useOAuth2.mjs +1 -1
- package/dist/esm/api/useAuth/useSession.mjs +1 -1
- package/dist/esm/components/Form/elements/OTPElement.mjs +1 -1
- package/dist/esm/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.mjs +1 -1
- package/dist/esm/components/Modal/Modal.mjs +2 -2
- package/dist/esm/components/Navbar/MobileNavbar.mjs +1 -1
- package/dist/esm/components/Pagination/Pagination.mjs +1 -1
- package/dist/esm/components/RightDrawer/RightDrawer.mjs +3 -3
- package/dist/esm/components/Tab/Tab.mjs +1 -1
- package/dist/esm/hooks/index.mjs +8 -8
- package/package.json +21 -21
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { useQuery } from "@tanstack/react-query";
|
|
4
3
|
import { editor } from "@intlayer/config/built";
|
|
4
|
+
import { useQuery } from "@tanstack/react-query";
|
|
5
5
|
import { getOAuthAPI } from "@intlayer/api";
|
|
6
6
|
import { useConfiguration } from "@intlayer/editor-react";
|
|
7
7
|
import { defu } from "defu";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { getAuthAPI } from "../../libs/auth.mjs";
|
|
4
|
-
import { useQuery, useQueryClient } from "@tanstack/react-query";
|
|
5
4
|
import { editor } from "@intlayer/config/built";
|
|
5
|
+
import { useQuery, useQueryClient } from "@tanstack/react-query";
|
|
6
6
|
import { useConfiguration } from "@intlayer/editor-react";
|
|
7
7
|
|
|
8
8
|
//#region src/api/useAuth/useSession.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { InputIndicator, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot } from "../../Input/OTPInput.mjs";
|
|
4
3
|
import { useItemSelector } from "../../../hooks/useItemSelector.mjs";
|
|
4
|
+
import { InputIndicator, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot } from "../../Input/OTPInput.mjs";
|
|
5
5
|
import { FormField, useFormField } from "../FormField.mjs";
|
|
6
6
|
import { FormItemLayout } from "../layout/FormItemLayout.mjs";
|
|
7
7
|
import { useEffect, useRef } from "react";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import { usePersistedStore } from "../../hooks/usePersistedStore.mjs";
|
|
3
4
|
import { Button } from "../Button/Button.mjs";
|
|
4
5
|
import { Container } from "../Container/index.mjs";
|
|
5
6
|
import { DropDown } from "../DropDown/index.mjs";
|
|
6
7
|
import { Input } from "../Input/Input.mjs";
|
|
7
8
|
import { SwitchSelector } from "../SwitchSelector/SwitchSelector.mjs";
|
|
8
|
-
import { usePersistedStore } from "../../hooks/usePersistedStore.mjs";
|
|
9
9
|
import { useLocaleSwitcherContent } from "./LocaleSwitcherContentContext.mjs";
|
|
10
10
|
import { useMemo, useRef, useState } from "react";
|
|
11
11
|
import { Check, Globe, MoveVertical } from "lucide-react";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { cn } from "../../utils/cn.mjs";
|
|
4
|
-
import { Button } from "../Button/Button.mjs";
|
|
5
|
-
import { Container } from "../Container/index.mjs";
|
|
6
4
|
import { useGetElementOrWindow } from "../../hooks/useGetElementOrWindow.mjs";
|
|
7
5
|
import { useScrollBlockage } from "../../hooks/useScrollBlockage/index.mjs";
|
|
6
|
+
import { Button } from "../Button/Button.mjs";
|
|
7
|
+
import { Container } from "../Container/index.mjs";
|
|
8
8
|
import { H3 } from "../Headers/index.mjs";
|
|
9
9
|
import { useEffect } from "react";
|
|
10
10
|
import { cva } from "class-variance-authority";
|
|
@@ -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";
|
|
5
4
|
import { useScrollBlockage } from "../../hooks/useScrollBlockage/index.mjs";
|
|
6
5
|
import { useScrollDetection } from "../../hooks/useScrollDetection.mjs";
|
|
6
|
+
import { MaxHeightSmoother } from "../MaxHeightSmoother/index.mjs";
|
|
7
7
|
import { Burger } from "./Burger.mjs";
|
|
8
8
|
import { useRef, useState } from "react";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { cn } from "../../utils/cn.mjs";
|
|
4
|
-
import { Button } from "../Button/Button.mjs";
|
|
5
4
|
import { useItemSelector } from "../../hooks/useItemSelector.mjs";
|
|
5
|
+
import { Button } from "../Button/Button.mjs";
|
|
6
6
|
import { useEffect, useRef } from "react";
|
|
7
7
|
import { cva } from "class-variance-authority";
|
|
8
8
|
import { ChevronLeft, ChevronRight, MoreHorizontal } from "lucide-react";
|
|
@@ -1,12 +1,12 @@
|
|
|
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";
|
|
3
6
|
import { Button } from "../Button/Button.mjs";
|
|
4
7
|
import { Container } from "../Container/index.mjs";
|
|
5
|
-
import { useDevice } from "../../hooks/useDevice.mjs";
|
|
6
8
|
import { KeyboardShortcut } from "../KeyboardShortcut/KeyboardShortcut.mjs";
|
|
7
9
|
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 { useRightDrawer } from "./useRightDrawer.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { cn } from "../../utils/cn.mjs";
|
|
4
|
-
import { TabSelector } from "../TabSelector/TabSelector.mjs";
|
|
5
4
|
import { useHorizontalSwipe } from "../../hooks/useHorizontalSwipe.mjs";
|
|
5
|
+
import { TabSelector } from "../TabSelector/TabSelector.mjs";
|
|
6
6
|
import { useTabContext } from "./TabContext.mjs";
|
|
7
7
|
import { Children, createContext, isValidElement, useState } from "react";
|
|
8
8
|
import { cva } from "class-variance-authority";
|
package/dist/esm/hooks/index.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useItemSelector } from "./useItemSelector.mjs";
|
|
3
|
-
import { usePersistedStore } from "./usePersistedStore.mjs";
|
|
4
|
-
import { useGetElementById } from "./useGetElementById.mjs";
|
|
1
|
+
import { useKeyboardDetector } from "./useKeyboardDetector.mjs";
|
|
5
2
|
import { useGetElementOrWindow } from "./useGetElementOrWindow.mjs";
|
|
3
|
+
import { useScrollY } from "./useScrollY.mjs";
|
|
4
|
+
import { usePersistedStore } from "./usePersistedStore.mjs";
|
|
6
5
|
import { useHorizontalSwipe } from "./useHorizontalSwipe.mjs";
|
|
7
|
-
import {
|
|
6
|
+
import { useItemSelector } from "./useItemSelector.mjs";
|
|
7
|
+
import { calculateIsMobile, checkIsIOS, checkIsIphoneOrSafariDevice, checkIsMac, checkIsMobileScreen, checkIsMobileUserAgent, getBreakpointFromSize, useDevice } from "./useDevice.mjs";
|
|
8
|
+
import { useSearch } from "./useSearch.mjs";
|
|
8
9
|
import { useIsMounted } from "./useIsMounted.mjs";
|
|
9
|
-
import {
|
|
10
|
+
import { useGetElementById } from "./useGetElementById.mjs";
|
|
11
|
+
import { useIsDarkMode } from "./useIsDarkMode.mjs";
|
|
10
12
|
import { useScreenWidth } from "./useScreenWidth.mjs";
|
|
11
13
|
import { useScrollBlockage } from "./useScrollBlockage/index.mjs";
|
|
12
14
|
import { useScrollDetection } from "./useScrollDetection.mjs";
|
|
13
|
-
import { useScrollY } from "./useScrollY.mjs";
|
|
14
|
-
import { useSearch } from "./useSearch.mjs";
|
|
15
15
|
|
|
16
16
|
export { calculateIsMobile, checkIsIOS, checkIsIphoneOrSafariDevice, checkIsMac, checkIsMobileScreen, checkIsMobileUserAgent, getBreakpointFromSize, useDevice, useGetElementById, useGetElementOrWindow, useHorizontalSwipe, useIsDarkMode, useIsMounted, useItemSelector, useKeyboardDetector, usePersistedStore, useScreenWidth, useScrollBlockage, useScrollDetection, useScrollY, useSearch };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/design-system",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.2",
|
|
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": [
|
|
@@ -440,15 +440,15 @@
|
|
|
440
440
|
"typecheck_": "tsc --noEmit --project tsconfig.types.json"
|
|
441
441
|
},
|
|
442
442
|
"dependencies": {
|
|
443
|
-
"@better-auth/passkey": "1.6.
|
|
444
|
-
"@better-auth/sso": "1.6.
|
|
445
|
-
"@intlayer/api": "9.0.
|
|
446
|
-
"@intlayer/config": "9.0.
|
|
447
|
-
"@intlayer/core": "9.0.
|
|
448
|
-
"@intlayer/dictionaries-entry": "9.0.
|
|
449
|
-
"@intlayer/editor-react": "9.0.
|
|
450
|
-
"@intlayer/engine": "9.0.
|
|
451
|
-
"@intlayer/types": "9.0.
|
|
443
|
+
"@better-auth/passkey": "1.6.25",
|
|
444
|
+
"@better-auth/sso": "1.6.25",
|
|
445
|
+
"@intlayer/api": "9.0.2",
|
|
446
|
+
"@intlayer/config": "9.0.2",
|
|
447
|
+
"@intlayer/core": "9.0.2",
|
|
448
|
+
"@intlayer/dictionaries-entry": "9.0.2",
|
|
449
|
+
"@intlayer/editor-react": "9.0.2",
|
|
450
|
+
"@intlayer/engine": "9.0.2",
|
|
451
|
+
"@intlayer/types": "9.0.2",
|
|
452
452
|
"@radix-ui/react-dialog": "1.1.20",
|
|
453
453
|
"@radix-ui/react-select": "2.3.4",
|
|
454
454
|
"@radix-ui/react-slot": "1.3.0",
|
|
@@ -456,7 +456,7 @@
|
|
|
456
456
|
"@tailwindcss/aspect-ratio": "0.4.2",
|
|
457
457
|
"@tanstack/query-async-storage-persister": "5.101.4",
|
|
458
458
|
"@tanstack/react-query-persist-client": "5.101.4",
|
|
459
|
-
"@tanstack/react-virtual": "3.14.
|
|
459
|
+
"@tanstack/react-virtual": "3.14.8",
|
|
460
460
|
"@tiptap/core": "3.28.0",
|
|
461
461
|
"@tiptap/extension-character-count": "3.28.0",
|
|
462
462
|
"@tiptap/extension-color": "3.28.0",
|
|
@@ -474,14 +474,14 @@
|
|
|
474
474
|
"@tiptap/react": "3.28.0",
|
|
475
475
|
"@tiptap/starter-kit": "3.28.0",
|
|
476
476
|
"@tiptap/suggestion": "3.28.0",
|
|
477
|
-
"better-auth": "1.6.
|
|
477
|
+
"better-auth": "1.6.25",
|
|
478
478
|
"class-variance-authority": "0.7.1",
|
|
479
479
|
"cmdk": "1.1.1",
|
|
480
480
|
"cnfast": "^0.0.8",
|
|
481
481
|
"defu": "6.1.7",
|
|
482
482
|
"dompurify": "3.4.12",
|
|
483
483
|
"isomorphic-dompurify": "3.19.0",
|
|
484
|
-
"react-intlayer": "9.0.
|
|
484
|
+
"react-intlayer": "9.0.2",
|
|
485
485
|
"rollup-preserve-directives": "1.1.3",
|
|
486
486
|
"tiptap-extension-code-block-shiki": "^1.2.0",
|
|
487
487
|
"tiptap-extension-global-drag-handle": "^0.1.18",
|
|
@@ -490,7 +490,7 @@
|
|
|
490
490
|
"zod": "4.4.3"
|
|
491
491
|
},
|
|
492
492
|
"devDependencies": {
|
|
493
|
-
"@intlayer/backend": "9.0.
|
|
493
|
+
"@intlayer/backend": "9.0.2",
|
|
494
494
|
"@shikijs/transformers": "4.3.1",
|
|
495
495
|
"@storybook/addon-a11y": "8.6.14",
|
|
496
496
|
"@storybook/addon-essentials": "8.6.14",
|
|
@@ -520,33 +520,33 @@
|
|
|
520
520
|
"@utils/ts-config": "1.0.4",
|
|
521
521
|
"@utils/ts-config-types": "1.0.4",
|
|
522
522
|
"fast-glob": "3.3.3",
|
|
523
|
-
"intlayer": "9.0.
|
|
523
|
+
"intlayer": "9.0.2",
|
|
524
524
|
"rimraf": "6.1.3",
|
|
525
525
|
"shiki": "4.3.1",
|
|
526
526
|
"storybook": "8.6.17",
|
|
527
|
-
"tsdown": "0.22.
|
|
527
|
+
"tsdown": "0.22.14",
|
|
528
528
|
"typescript": "7.0.2",
|
|
529
529
|
"vite": "8.1.5",
|
|
530
|
-
"vite-intlayer": "9.0.
|
|
530
|
+
"vite-intlayer": "9.0.2",
|
|
531
531
|
"vite-plugin-dts": "5.0.3",
|
|
532
532
|
"vitest": "4.1.10"
|
|
533
533
|
},
|
|
534
534
|
"peerDependencies": {
|
|
535
535
|
"@better-fetch/fetch": "1.3.1",
|
|
536
536
|
"@hookform/resolvers": "5.4.0",
|
|
537
|
-
"@intlayer/backend": "9.0.
|
|
537
|
+
"@intlayer/backend": "9.0.2",
|
|
538
538
|
"@monaco-editor/react": "4.7.0",
|
|
539
539
|
"@shikijs/transformers": "4.3.1",
|
|
540
540
|
"@tanstack/react-query": "5.101.4",
|
|
541
541
|
"@tanstack/react-query-devtools": "5.101.4",
|
|
542
542
|
"framer-motion": "12.42.2",
|
|
543
543
|
"fuse.js": "7.5.0",
|
|
544
|
-
"intlayer": "9.0.
|
|
545
|
-
"lucide-react": "1.
|
|
544
|
+
"intlayer": "9.0.2",
|
|
545
|
+
"lucide-react": "1.26.0",
|
|
546
546
|
"react": ">=16.0.0",
|
|
547
547
|
"react-dom": ">=16.0.0",
|
|
548
548
|
"react-hook-form": "7.82.0",
|
|
549
|
-
"react-intlayer": "9.0.
|
|
549
|
+
"react-intlayer": "9.0.2",
|
|
550
550
|
"shiki": "4.3.1",
|
|
551
551
|
"tailwindcss": "4.3.3"
|
|
552
552
|
},
|