@intlayer/design-system 6.0.2 → 6.1.1
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/README.md +249 -56
- package/dist/.vite/manifest.json +42 -62
- package/dist/{better-auth.CMQ3rA-I-7umXOENE.js → better-auth.CiuwFiHM-7umXOENE.js} +1 -1
- package/dist/better-auth.CiuwFiHM-7umXOENE.js.map +1 -0
- package/dist/{better-auth.CMQ3rA-I-C2nBKRMa.cjs → better-auth.CiuwFiHM-C2nBKRMa.cjs} +1 -1
- package/dist/better-auth.CiuwFiHM-C2nBKRMa.cjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.cjs +1 -1
- package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.mjs +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.cjs +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.cjs +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.mjs +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.cjs +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.mjs +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.cjs +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs +1 -1
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.cjs +1 -1
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs +1 -1
- package/dist/components/DictionaryFieldEditor/StructureView/StructureView.cjs +1 -1
- package/dist/components/DictionaryFieldEditor/StructureView/StructureView.mjs +1 -1
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.cjs +1 -1
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.mjs +1 -1
- package/dist/components/EditableField/EditableFieldTextArea.cjs +1 -1
- package/dist/components/EditableField/EditableFieldTextArea.mjs +1 -1
- package/dist/components/Form/FormBase.cjs +1 -1
- package/dist/components/Form/FormBase.mjs +1 -1
- package/dist/components/Form/elements/FormElementWrapper.cjs +2 -2
- package/dist/components/Form/elements/FormElementWrapper.mjs +2 -2
- package/dist/components/IDE/CodeContext.cjs +1 -1
- package/dist/components/IDE/CodeContext.mjs +1 -1
- package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.cjs +1 -1
- package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.mjs +1 -1
- package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.cjs +1 -1
- package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.mjs +1 -1
- package/dist/components/MarkDownRender/index.cjs +1 -1
- package/dist/components/MarkDownRender/index.cjs.map +1 -1
- package/dist/components/MarkDownRender/index.mjs +1 -1
- package/dist/components/MarkDownRender/index.mjs.map +1 -1
- package/dist/components/Modal/Modal.cjs +1 -1
- package/dist/components/Modal/Modal.mjs +1 -1
- package/dist/components/Navbar/DesktopNavbar.cjs +14 -16
- package/dist/components/Navbar/DesktopNavbar.cjs.map +1 -1
- package/dist/components/Navbar/DesktopNavbar.d.ts.map +1 -1
- package/dist/components/Navbar/DesktopNavbar.mjs +14 -16
- package/dist/components/Navbar/DesktopNavbar.mjs.map +1 -1
- package/dist/components/Navbar/MobileNavbar.cjs +1 -1
- package/dist/components/Navbar/MobileNavbar.mjs +1 -1
- package/dist/components/Navbar/index.cjs +1 -1
- package/dist/components/Navbar/index.mjs +1 -1
- package/dist/components/SwitchSelector/index.cjs +1 -1
- package/dist/components/SwitchSelector/index.mjs +1 -1
- package/dist/components/TabSelector/TabSelector.cjs +1 -1
- package/dist/components/TabSelector/TabSelector.mjs +1 -1
- package/dist/hooks/auth.cjs +13 -7
- package/dist/hooks/auth.cjs.map +1 -1
- package/dist/hooks/auth.mjs +12 -6
- package/dist/hooks/auth.mjs.map +1 -1
- package/dist/hooks/reactQuery.cjs +1 -1
- package/dist/hooks/reactQuery.d.ts +111 -43
- package/dist/hooks/reactQuery.d.ts.map +1 -1
- package/dist/hooks/reactQuery.mjs +1 -1
- package/dist/hooks/useAuth/useAuth.cjs.map +1 -1
- package/dist/hooks/useAuth/useAuth.d.ts +1 -0
- package/dist/hooks/useAuth/useAuth.d.ts.map +1 -1
- package/dist/hooks/useAuth/useAuth.mjs.map +1 -1
- package/dist/hooks/useAuth/useOAuth2.d.ts +1 -1
- package/dist/hooks/useAuth/useSession.d.ts +88 -1
- package/dist/hooks/useAuth/useSession.d.ts.map +1 -1
- package/dist/hooks/useUser/index.cjs +1 -1
- package/dist/hooks/useUser/index.d.ts +18 -2
- package/dist/hooks/useUser/index.d.ts.map +1 -1
- package/dist/hooks/useUser/index.mjs +1 -1
- package/dist/index-BCuMWKyy.js.map +1 -1
- package/dist/index-BYzBot7l.cjs.map +1 -1
- package/dist/{schemas-lh5OFOvX.cjs → schemas-0lUZlFWF.cjs} +703 -240
- package/dist/schemas-0lUZlFWF.cjs.map +1 -0
- package/dist/{schemas-DEXdAbCK.js → schemas-BG_GIt-j.js} +465 -2
- package/dist/schemas-BG_GIt-j.js.map +1 -0
- package/dist/zod-CCm3hUBS.js +210 -0
- package/dist/zod-CCm3hUBS.js.map +1 -0
- package/dist/zod-CvjrdkEg.cjs +209 -0
- package/dist/zod-CvjrdkEg.cjs.map +1 -0
- package/package.json +45 -43
- package/dist/better-auth.CMQ3rA-I-7umXOENE.js.map +0 -1
- package/dist/better-auth.CMQ3rA-I-C2nBKRMa.cjs.map +0 -1
- package/dist/parse-Ltyyb1op.cjs +0 -509
- package/dist/parse-Ltyyb1op.cjs.map +0 -1
- package/dist/parse-Vrm0h1r9.js +0 -510
- package/dist/parse-Vrm0h1r9.js.map +0 -1
- package/dist/schemas-DEXdAbCK.js.map +0 -1
- package/dist/schemas-lh5OFOvX.cjs.map +0 -1
- package/dist/zod-BvUVjPTw.cjs +0 -91
- package/dist/zod-BvUVjPTw.cjs.map +0 -1
- package/dist/zod-CJrbzxwg.js +0 -92
- package/dist/zod-CJrbzxwg.js.map +0 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
4
|
const jsxRuntime = require("react/jsx-runtime");
|
|
5
5
|
require("@intlayer/config/built");
|
|
6
|
-
require("../../better-auth.
|
|
6
|
+
require("../../better-auth.CiuwFiHM-C2nBKRMa.cjs");
|
|
7
7
|
require("@intlayer/editor-react");
|
|
8
8
|
require("@tanstack/react-query");
|
|
9
9
|
require("@intlayer/api");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, Fragment } from "react/jsx-runtime";
|
|
3
3
|
import "@intlayer/config/built";
|
|
4
|
-
import "../../better-auth.
|
|
4
|
+
import "../../better-auth.CiuwFiHM-7umXOENE.js";
|
|
5
5
|
import "@intlayer/editor-react";
|
|
6
6
|
import "@tanstack/react-query";
|
|
7
7
|
import "@intlayer/api";
|
|
@@ -5,7 +5,7 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
5
5
|
const ReactExports = require("react");
|
|
6
6
|
const classVarianceAuthority = require("class-variance-authority");
|
|
7
7
|
require("@intlayer/config/built");
|
|
8
|
-
require("../../better-auth.
|
|
8
|
+
require("../../better-auth.CiuwFiHM-C2nBKRMa.cjs");
|
|
9
9
|
require("@intlayer/editor-react");
|
|
10
10
|
require("@tanstack/react-query");
|
|
11
11
|
require("@intlayer/api");
|
|
@@ -3,7 +3,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { useState, useRef, useEffect, createElement } from "react";
|
|
4
4
|
import { cva } from "class-variance-authority";
|
|
5
5
|
import "@intlayer/config/built";
|
|
6
|
-
import "../../better-auth.
|
|
6
|
+
import "../../better-auth.CiuwFiHM-7umXOENE.js";
|
|
7
7
|
import "@intlayer/editor-react";
|
|
8
8
|
import "@tanstack/react-query";
|
|
9
9
|
import "@intlayer/api";
|
|
@@ -5,7 +5,7 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
5
5
|
const classVarianceAuthority = require("class-variance-authority");
|
|
6
6
|
const ReactExports = require("react");
|
|
7
7
|
require("@intlayer/config/built");
|
|
8
|
-
require("../../better-auth.
|
|
8
|
+
require("../../better-auth.CiuwFiHM-C2nBKRMa.cjs");
|
|
9
9
|
require("@intlayer/editor-react");
|
|
10
10
|
require("@tanstack/react-query");
|
|
11
11
|
require("@intlayer/api");
|
|
@@ -3,7 +3,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import { cva } from "class-variance-authority";
|
|
4
4
|
import { useRef, cloneElement } from "react";
|
|
5
5
|
import "@intlayer/config/built";
|
|
6
|
-
import "../../better-auth.
|
|
6
|
+
import "../../better-auth.CiuwFiHM-7umXOENE.js";
|
|
7
7
|
import "@intlayer/editor-react";
|
|
8
8
|
import "@tanstack/react-query";
|
|
9
9
|
import "@intlayer/api";
|
package/dist/hooks/auth.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const configuration = require("@intlayer/config/built");
|
|
4
|
-
const
|
|
4
|
+
const betterAuth_CiuwFiHM = require("../better-auth.CiuwFiHM-C2nBKRMa.cjs");
|
|
5
5
|
var __defProp = Object.defineProperty;
|
|
6
6
|
var __defProps = Object.defineProperties;
|
|
7
7
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
@@ -593,7 +593,7 @@ function getBaseURL(url, path, request) {
|
|
|
593
593
|
if (url) {
|
|
594
594
|
return withPath(url, path);
|
|
595
595
|
}
|
|
596
|
-
const fromEnv =
|
|
596
|
+
const fromEnv = betterAuth_CiuwFiHM.env.BETTER_AUTH_URL || betterAuth_CiuwFiHM.env.NEXT_PUBLIC_BETTER_AUTH_URL || betterAuth_CiuwFiHM.env.PUBLIC_BETTER_AUTH_URL || betterAuth_CiuwFiHM.env.NUXT_PUBLIC_BETTER_AUTH_URL || betterAuth_CiuwFiHM.env.NUXT_PUBLIC_AUTH_URL || (betterAuth_CiuwFiHM.env.BASE_URL !== "/" ? betterAuth_CiuwFiHM.env.BASE_URL : void 0);
|
|
597
597
|
if (fromEnv) {
|
|
598
598
|
return withPath(fromEnv, path);
|
|
599
599
|
}
|
|
@@ -1286,13 +1286,16 @@ const useAuthQuery = (initializedAtom, path, $fetch, options) => {
|
|
|
1286
1286
|
fn();
|
|
1287
1287
|
} else {
|
|
1288
1288
|
distExports.onMount(value, () => {
|
|
1289
|
-
setTimeout(() => {
|
|
1290
|
-
|
|
1289
|
+
const timeoutId = setTimeout(() => {
|
|
1290
|
+
if (!isMounted) {
|
|
1291
|
+
fn();
|
|
1292
|
+
isMounted = true;
|
|
1293
|
+
}
|
|
1291
1294
|
}, 0);
|
|
1292
|
-
isMounted = true;
|
|
1293
1295
|
return () => {
|
|
1294
1296
|
value.off();
|
|
1295
1297
|
initAtom.off();
|
|
1298
|
+
clearTimeout(timeoutId);
|
|
1296
1299
|
};
|
|
1297
1300
|
});
|
|
1298
1301
|
}
|
|
@@ -1364,7 +1367,7 @@ function betterJSONParse(value, options = {}) {
|
|
|
1364
1367
|
return value;
|
|
1365
1368
|
}
|
|
1366
1369
|
const trimmed = value.trim();
|
|
1367
|
-
if (trimmed[0] === '"' && trimmed.endsWith('"') && !trimmed.slice(1, -1).includes('"')) {
|
|
1370
|
+
if (trimmed.length > 0 && trimmed[0] === '"' && trimmed.endsWith('"') && !trimmed.slice(1, -1).includes('"')) {
|
|
1368
1371
|
return trimmed.slice(1, -1);
|
|
1369
1372
|
}
|
|
1370
1373
|
const lowerValue = trimmed.toLowerCase();
|
|
@@ -1452,7 +1455,7 @@ function getSessionAtom($fetch) {
|
|
|
1452
1455
|
}
|
|
1453
1456
|
const getClientConfig = (options) => {
|
|
1454
1457
|
const isCredentialsSupported = "credentials" in Request.prototype;
|
|
1455
|
-
const baseURL = getBaseURL(options?.baseURL, options?.basePath);
|
|
1458
|
+
const baseURL = getBaseURL(options?.baseURL, options?.basePath) ?? "/api/auth";
|
|
1456
1459
|
const pluginsFetchPlugins = options?.plugins?.flatMap((plugin) => plugin.fetchPlugins).filter((pl) => pl !== void 0) || [];
|
|
1457
1460
|
const lifeCyclePlugin = {
|
|
1458
1461
|
id: "lifecycle-hooks",
|
|
@@ -1538,6 +1541,9 @@ const getClientConfig = (options) => {
|
|
|
1538
1541
|
}
|
|
1539
1542
|
}
|
|
1540
1543
|
return {
|
|
1544
|
+
get baseURL() {
|
|
1545
|
+
return baseURL;
|
|
1546
|
+
},
|
|
1541
1547
|
pluginsActions,
|
|
1542
1548
|
pluginsAtoms,
|
|
1543
1549
|
pluginPathMethods,
|