intlayer-editor 8.1.0 → 8.1.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.
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/vue-CWEOkb3q.js","assets/css-BtVcDqlU.js","assets/javascript-DLs729Nk.js","assets/typescript-Cju7JbYj.js","assets/json-D07AUpjp.js","assets/html-BOjX3v2Q.js","assets/html-derivative-Cswrtqyq.js","assets/bundle-web-DgWYRd8J.js","assets/index-DYnaAXNa.js","assets/index-DlEB8df_.css"])))=>i.map(i=>d[i]);
2
- import { r as reactExports, j as jsxRuntimeExports, C as CodeDefault, _ as __vitePreload } from "./index-DYnaAXNa.js";
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/vue-CWEOkb3q.js","assets/css-BtVcDqlU.js","assets/javascript-DLs729Nk.js","assets/typescript-Cju7JbYj.js","assets/json-D07AUpjp.js","assets/html-BOjX3v2Q.js","assets/html-derivative-Cswrtqyq.js","assets/bundle-web-Ds5WJwTR.js","assets/index--NVtNBE5.js","assets/index-DlEB8df_.css"])))=>i.map(i=>d[i]);
2
+ import { r as reactExports, j as jsxRuntimeExports, C as CodeDefault, _ as __vitePreload } from "./index--NVtNBE5.js";
3
3
  const languageCache = /* @__PURE__ */ new Map();
4
4
  const themeCache = /* @__PURE__ */ new Map();
5
5
  const loadLanguage = async (lang) => {
@@ -60,7 +60,7 @@ const loadTheme = async (themeName) => {
60
60
  const highlightCode = async (code, lang, isDarkMode) => {
61
61
  const themeName = isDarkMode ? "github-dark" : "github-light";
62
62
  const [{ codeToHtml }, languageModule, themeModule] = await Promise.all([
63
- __vitePreload(() => import("./bundle-web-DgWYRd8J.js"), true ? __vite__mapDeps([7,8,9]) : void 0),
63
+ __vitePreload(() => import("./bundle-web-Ds5WJwTR.js"), true ? __vite__mapDeps([7,8,9]) : void 0),
64
64
  loadLanguage(lang),
65
65
  loadTheme(themeName)
66
66
  ]);
@@ -1,5 +1,5 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-ChYFFmg7.js","assets/html-BOjX3v2Q.js","assets/javascript-DLs729Nk.js","assets/css-BtVcDqlU.js","assets/angular-ts-CpuGw9DZ.js","assets/scss-Dq-LbI_c.js","assets/astro-B0lt4qz0.js","assets/json-D07AUpjp.js","assets/typescript-Cju7JbYj.js","assets/postcss-kj1IbjVd.js","assets/tsx-B9RA6cgQ.js","assets/blade-DyeoExSN.js","assets/html-derivative-Cswrtqyq.js","assets/xml-BMzZeaqs.js","assets/java-BfXh-0uJ.js","assets/sql-DzUuSofg.js","assets/coffee-DJkIX6_2.js","assets/cpp-zh2ePAE_.js","assets/regexp-BxWeO75u.js","assets/glsl-CGsiYPcu.js","assets/c-C4VtT7JA.js","assets/graphql-oNSp8dGZ.js","assets/jsx-BPmvoin2.js","assets/haml-BJ44RGT2.js","assets/handlebars-DTnHNTeU.js","assets/yaml-B_vW5iTY.js","assets/http-B1QlEqj7.js","assets/bash-Bz2gZrDc.js","assets/hurl-Br_hZn4E.js","assets/csv-Ba84L8e5.js","assets/jinja-BAZ4h1JD.js","assets/jison-Bwp1bXaL.js","assets/julia-DijK_igD.js","assets/python-CrdIx4PZ.js","assets/r-Dpdc-Kyk.js","assets/marko-DdYN1N-r.js","assets/less-BAzLMJNR.js","assets/mdc-ucHOH9Vl.js","assets/markdown-F_EULe_G.js","assets/php-2B8X4n9S.js","assets/pug-C-LeC0-n.js","assets/svelte-CaHM8dOn.js","assets/ts-tags-DCkNjov3.js","assets/vue-CWEOkb3q.js","assets/vue-html-Df7OYD9X.js","assets/vue-vine-Bx34p5qN.js","assets/stylus-DXFa_2Jl.js"])))=>i.map(i=>d[i]);
2
- import { _ as __vitePreload } from "./index-DYnaAXNa.js";
2
+ import { _ as __vitePreload } from "./index--NVtNBE5.js";
3
3
  let ShikiError$2 = class ShikiError extends Error {
4
4
  constructor(message) {
5
5
  super(message);
@@ -36868,7 +36868,7 @@ const getAuthAPI = (intlayerConfig) => {
36868
36868
  deleteSSOProvider
36869
36869
  };
36870
36870
  };
36871
- function useSession(sessionProp, intlayerConfiguration) {
36871
+ const useSession = (sessionProp, intlayerConfiguration) => {
36872
36872
  const configuration$1 = useConfiguration();
36873
36873
  const config2 = intlayerConfiguration ?? configuration$1 ?? configuration;
36874
36874
  const queryClient = useQueryClient();
@@ -36897,7 +36897,7 @@ function useSession(sessionProp, intlayerConfiguration) {
36897
36897
  revalidateSession: fetchSession,
36898
36898
  setSession
36899
36899
  };
36900
- }
36900
+ };
36901
36901
  const useAuth = ({ session: sessionProp, intlayerConfiguration } = {}) => {
36902
36902
  const { session, fetchSession, revalidateSession, setSession } = useSession(sessionProp, intlayerConfiguration);
36903
36903
  const { oAuth2AccessToken } = useOAuth2(intlayerConfiguration);
@@ -39541,7 +39541,7 @@ const CodeDefault = ({ children }) => /* @__PURE__ */ jsxRuntimeExports.jsx("div
39541
39541
  }, `line-${index2}-${line.slice(0, 10)}`)) : children })
39542
39542
  })
39543
39543
  });
39544
- const CodeBlockShiki = reactExports.lazy(() => __vitePreload(() => import("./CodeBlockShiki-BVmEayH4.js"), true ? [] : void 0).then((mod) => ({ default: mod.CodeBlockShiki })));
39544
+ const CodeBlockShiki = reactExports.lazy(() => __vitePreload(() => import("./CodeBlockShiki-CiqgD86t.js"), true ? [] : void 0).then((mod) => ({ default: mod.CodeBlockShiki })));
39545
39545
  const CodeBlock = ({ className, onChange, isEditable, children, lang, isDarkMode, ...props }) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
39546
39546
  className: cn$2("flex w-full min-w-0 max-w-full overflow-x-auto", className),
39547
39547
  ...props,
@@ -57693,7 +57693,8 @@ const RightDrawer = ({
57693
57693
  closeOnOutsideClick = true,
57694
57694
  backButton,
57695
57695
  isOpen: isOpenProp,
57696
- onClose
57696
+ onClose,
57697
+ container
57697
57698
  }) => {
57698
57699
  const content2 = useDictionary(_EKkiuSJM6rxgNFWrCvKv);
57699
57700
  const {
@@ -57701,6 +57702,7 @@ const RightDrawer = ({
57701
57702
  } = useDevice("md");
57702
57703
  const panelRef = reactExports.useRef(null);
57703
57704
  const childrenContainerRef = reactExports.useRef(null);
57705
+ const containerElement = useGetElementOrWindow(container);
57704
57706
  const {
57705
57707
  open: openDrawer,
57706
57708
  close: closeDrawer,
@@ -57761,7 +57763,8 @@ const RightDrawer = ({
57761
57763
  }
57762
57764
  }
57763
57765
  };
57764
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
57766
+ if (!containerElement) return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, {});
57767
+ return reactDomExports.createPortal(/* @__PURE__ */ jsxRuntimeExports.jsx("div", {
57765
57768
  className: "fixed top-0 right-0 z-50 flex h-full justify-end",
57766
57769
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(MaxWidthSmoother, {
57767
57770
  isHidden: !isOpen,
@@ -57837,7 +57840,7 @@ const RightDrawer = ({
57837
57840
  })]
57838
57841
  })
57839
57842
  })
57840
- });
57843
+ }), containerElement);
57841
57844
  };
57842
57845
  let TagRoundedSize = /* @__PURE__ */ (function(TagRoundedSize2) {
57843
57846
  TagRoundedSize2["NONE"] = "none";
@@ -5,7 +5,7 @@
5
5
  <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>Intlayer Editor</title>
8
- <script type="module" crossorigin src="/assets/index-DYnaAXNa.js"></script>
8
+ <script type="module" crossorigin src="/assets/index--NVtNBE5.js"></script>
9
9
  <link rel="stylesheet" crossorigin href="/assets/index-DlEB8df_.css">
10
10
  </head>
11
11
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intlayer-editor",
3
- "version": "8.1.0",
3
+ "version": "8.1.2",
4
4
  "private": false,
5
5
  "description": "Integrate the Intlayer visual editor into your Intlayer projects, enabling CMS-like content management with multilingual support.",
6
6
  "keywords": [
@@ -91,17 +91,17 @@
91
91
  "@fastify/formbody": "8.0.2",
92
92
  "@fastify/helmet": "13.0.2",
93
93
  "@fastify/static": "9.0.0",
94
- "@intlayer/chokidar": "8.1.0",
95
- "@intlayer/config": "8.1.0",
96
- "@intlayer/unmerged-dictionaries-entry": "8.1.0",
94
+ "@intlayer/chokidar": "8.1.2",
95
+ "@intlayer/config": "8.1.2",
96
+ "@intlayer/unmerged-dictionaries-entry": "8.1.2",
97
97
  "fastify": "5.7.4",
98
- "fastify-intlayer": "8.1.0",
98
+ "fastify-intlayer": "8.1.2",
99
99
  "mime": "4.1.0"
100
100
  },
101
101
  "devDependencies": {
102
- "@intlayer/design-system": "8.1.0",
103
- "@intlayer/editor-react": "8.1.0",
104
- "@intlayer/types": "8.1.0",
102
+ "@intlayer/design-system": "8.1.2",
103
+ "@intlayer/editor-react": "8.1.2",
104
+ "@intlayer/types": "8.1.2",
105
105
  "@tailwindcss/vite": "4.1.18",
106
106
  "@tanstack/react-query": "5.90.21",
107
107
  "@types/node": "25.2.3",
@@ -115,18 +115,18 @@
115
115
  "framer-motion": "12.34.0",
116
116
  "fuse.js": "7.1.0",
117
117
  "globals": "16.5.0",
118
- "intlayer": "8.1.0",
119
- "lucide-react": "0.563.0",
118
+ "intlayer": "8.1.2",
119
+ "lucide-react": "0.566.0",
120
120
  "react": "19.2.4",
121
121
  "react-dom": "19.2.4",
122
- "react-intlayer": "8.1.0",
122
+ "react-intlayer": "8.1.2",
123
123
  "react-router-dom": "7.12.0",
124
- "tailwind-merge": "3.4.0",
124
+ "tailwind-merge": "3.4.1",
125
125
  "tailwindcss": "4.1.18",
126
126
  "tsdown": "0.20.3",
127
127
  "typescript": "5.9.3",
128
128
  "vite": "7.3.1",
129
- "vite-intlayer": "8.1.0",
129
+ "vite-intlayer": "8.1.2",
130
130
  "vitest": "4.0.18"
131
131
  },
132
132
  "engines": {