@localazy/strapi-plugin 1.0.0-beta.3 → 1.0.0-beta.5

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.
Files changed (24) hide show
  1. package/dist/_chunks/{App-1cXVSnL0.mjs → App-CtS6CrNn.mjs} +4 -7
  2. package/dist/_chunks/{App-CU_T8iLT.js → App-NRmSxuW3.js} +4 -7
  3. package/dist/_chunks/{ContentTransferSetup-D2R15gJS.mjs → ContentTransferSetup-CeKXlzw_.mjs} +3 -3
  4. package/dist/_chunks/{ContentTransferSetup-DTcnul1w.js → ContentTransferSetup-DGs8MZPj.js} +3 -3
  5. package/dist/_chunks/{GlobalSettings-D_jeqPWF.js → GlobalSettings-CRMPRA3Y.js} +4 -4
  6. package/dist/_chunks/{GlobalSettings-7pI5vIna.mjs → GlobalSettings-rOwd0Y0E.mjs} +4 -4
  7. package/dist/_chunks/{LanguagesSelector-DU5YJVQa.js → LanguagesSelector-Bd8VFHib.js} +2 -2
  8. package/dist/_chunks/{LanguagesSelector-D2AP7FE0.mjs → LanguagesSelector-CeB7tVcb.mjs} +2 -2
  9. package/dist/_chunks/{has-model-changed-wAFZY5Ma.mjs → has-model-changed-DViUIQHk.mjs} +2 -2
  10. package/dist/_chunks/{has-model-changed-9PCipZvK.js → has-model-changed-gNSOSMBa.js} +2 -2
  11. package/dist/_chunks/{index-Ca5_8RSo.js → index-Bbwk3kp3.js} +8 -10
  12. package/dist/_chunks/{index-CT0CH6N8.mjs → index-Dj68Ixl2.mjs} +8 -10
  13. package/dist/_chunks/{isEqual--zmPN5yr.js → isEqual-0M0aSdTT.js} +1 -1
  14. package/dist/_chunks/{isEqual-DPUlu6B0.mjs → isEqual-CC-cEPwY.mjs} +1 -1
  15. package/dist/_chunks/{set-DDy9ZASU.js → set-Cbi1yYuW.js} +1 -3
  16. package/dist/_chunks/{set-BkLLlpnD.mjs → set-Dnhh_SyE.mjs} +1 -3
  17. package/dist/admin/index.js +1 -1
  18. package/dist/admin/index.mjs +1 -1
  19. package/dist/admin/src/modules/@common/utils/sort-by-model-name.d.ts +1 -1
  20. package/dist/admin/src/modules/overview/locale/en.d.ts +0 -2
  21. package/dist/server/index.js +2 -2
  22. package/dist/server/index.mjs +2 -2
  23. package/install/index.mjs +5 -1
  24. package/package.json +2 -2
@@ -1,11 +1,11 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import { useNavigate, useLocation, NavLink, Routes, Route } from "react-router-dom";
3
- import { u as useTranslation, F as ForwardRef$2H, a as ForwardRef$d, b as ForwardRef$3P, c as Flex, L as Loader, g as getDefaultExportFromCjs, B as Button, d as Box, T as Typography, e as Link, S as SubNav, f as SubNavHeader, h as SubNavSections, i as SubNavSection, j as SubNavLink, k as ForwardRef$L, G as Grid, D as Divider, P as PluginSettingsService, l as darkTheme, m as lightTheme, A as Alert, n as cloneDeep, s as set, o as DesignSystemProvider } from "./set-BkLLlpnD.mjs";
3
+ import { u as useTranslation, F as ForwardRef$2H, a as ForwardRef$d, b as ForwardRef$3P, c as Flex, L as Loader, g as getDefaultExportFromCjs, B as Button, d as Box, T as Typography, e as Link, S as SubNav, f as SubNavHeader, h as SubNavSections, i as SubNavSection, j as SubNavLink, k as ForwardRef$L, G as Grid, D as Divider, P as PluginSettingsService, l as darkTheme, m as lightTheme, A as Alert, n as cloneDeep, s as set, o as DesignSystemProvider } from "./set-Dnhh_SyE.mjs";
4
4
  import { useState, useEffect } from "react";
5
- import { P as PLUGIN_ID, c as createStrapiApiAxiosInstance, u as useLocalazyIdentity, L as LocalazyUserService, e as emptyIdentity } from "./index-CT0CH6N8.mjs";
6
- import { P as ProjectService, L as LanguagesSelector } from "./LanguagesSelector-D2AP7FE0.mjs";
5
+ import { P as PLUGIN_ID, c as createStrapiApiAxiosInstance, u as useLocalazyIdentity, L as LocalazyUserService, e as emptyIdentity } from "./index-Dj68Ixl2.mjs";
6
+ import { P as ProjectService, L as LanguagesSelector } from "./LanguagesSelector-CeB7tVcb.mjs";
7
7
  import { Layouts, Page } from "@strapi/strapi/admin";
8
- import { h as hasModelChanged } from "./has-model-changed-wAFZY5Ma.mjs";
8
+ import { h as hasModelChanged } from "./has-model-changed-DViUIQHk.mjs";
9
9
  var PLUGIN_ROUTES = /* @__PURE__ */ ((PLUGIN_ROUTES2) => {
10
10
  PLUGIN_ROUTES2["ROOT"] = "";
11
11
  PLUGIN_ROUTES2["LOGIN"] = "login";
@@ -1441,9 +1441,6 @@ const OverviewItemLink = (props) => {
1441
1441
  const PrerequisitiesInfo = () => {
1442
1442
  const { t: t2 } = useTranslation();
1443
1443
  return /* @__PURE__ */ jsxs(Box, { children: [
1444
- /* @__PURE__ */ jsx(Typography, { variant: "omega", fontWeight: "semiBold", children: t2("overview.internationalization_plugin") }),
1445
- /* @__PURE__ */ jsx(Typography, { variant: "omega", children: t2("overview.has_to_be_installed") }),
1446
- /* @__PURE__ */ jsx("br", {}),
1447
1444
  /* @__PURE__ */ jsx(Typography, { variant: "omega", children: t2("overview.transfer_setup_message_a") }),
1448
1445
  /* @__PURE__ */ jsx(Typography, { variant: "omega", fontWeight: "semiBold", children: t2("overview.transfer_setup_message_b") })
1449
1446
  ] });
@@ -2,12 +2,12 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
4
  const reactRouterDom = require("react-router-dom");
5
- const set = require("./set-DDy9ZASU.js");
5
+ const set = require("./set-Cbi1yYuW.js");
6
6
  const React = require("react");
7
- const index = require("./index-Ca5_8RSo.js");
8
- const LanguagesSelector = require("./LanguagesSelector-DU5YJVQa.js");
7
+ const index = require("./index-Bbwk3kp3.js");
8
+ const LanguagesSelector = require("./LanguagesSelector-Bd8VFHib.js");
9
9
  const admin = require("@strapi/strapi/admin");
10
- const hasModelChanged = require("./has-model-changed-9PCipZvK.js");
10
+ const hasModelChanged = require("./has-model-changed-gNSOSMBa.js");
11
11
  var PLUGIN_ROUTES = /* @__PURE__ */ ((PLUGIN_ROUTES2) => {
12
12
  PLUGIN_ROUTES2["ROOT"] = "";
13
13
  PLUGIN_ROUTES2["LOGIN"] = "login";
@@ -1443,9 +1443,6 @@ const OverviewItemLink = (props) => {
1443
1443
  const PrerequisitiesInfo = () => {
1444
1444
  const { t: t2 } = set.useTranslation();
1445
1445
  return /* @__PURE__ */ jsxRuntime.jsxs(set.Box, { children: [
1446
- /* @__PURE__ */ jsxRuntime.jsx(set.Typography, { variant: "omega", fontWeight: "semiBold", children: t2("overview.internationalization_plugin") }),
1447
- /* @__PURE__ */ jsxRuntime.jsx(set.Typography, { variant: "omega", children: t2("overview.has_to_be_installed") }),
1448
- /* @__PURE__ */ jsxRuntime.jsx("br", {}),
1449
1446
  /* @__PURE__ */ jsxRuntime.jsx(set.Typography, { variant: "omega", children: t2("overview.transfer_setup_message_a") }),
1450
1447
  /* @__PURE__ */ jsxRuntime.jsx(set.Typography, { variant: "omega", fontWeight: "semiBold", children: t2("overview.transfer_setup_message_b") })
1451
1448
  ] });
@@ -1,9 +1,9 @@
1
1
  import { jsxs, jsx, Fragment as Fragment$1 } from "react/jsx-runtime";
2
2
  import { createElement, isValidElement, cloneElement, Children, Fragment, useContext, forwardRef, useState, useEffect } from "react";
3
- import { i as isEqual } from "./isEqual-DPUlu6B0.mjs";
4
- import { g as getDefaultExportFromCjs, x as warnOnce, y as getI18n, z as getDefaults, C as isString, E as warn, H as isObject, I as I18nContext, s as set, J as CheckboxImpl, K as keys, N as isArrayLike, O as arrayEach, Q as isArray, R as isObject$1, u as useTranslation, d as Box, U as Accordion, c as Flex, V as SwitchImpl, T as Typography, B as Button, p as ForwardRef$4z, A as Alert, D as Divider, P as PluginSettingsService, n as cloneDeep } from "./set-BkLLlpnD.mjs";
3
+ import { i as isEqual } from "./isEqual-CC-cEPwY.mjs";
4
+ import { g as getDefaultExportFromCjs, x as warnOnce, y as getI18n, z as getDefaults, C as isString, E as warn, H as isObject, I as I18nContext, s as set, J as CheckboxImpl, K as keys, N as isArrayLike, O as arrayEach, Q as isArray, R as isObject$1, u as useTranslation, d as Box, U as Accordion, c as Flex, V as SwitchImpl, T as Typography, B as Button, p as ForwardRef$4z, A as Alert, D as Divider, P as PluginSettingsService, n as cloneDeep } from "./set-Dnhh_SyE.mjs";
5
5
  import { Layouts } from "@strapi/strapi/admin";
6
- import { S as SUPPORTED_CONTENT_TYPE_FIELDS, a as SUPPORTED_CUSTOM_FIELD_PLUGINS, g as getContentTransferSetupKeysSets, b as get, f as findModelValueByKey, c as StrapiModelService, d as getModelsTree, h as hasModelChanged } from "./has-model-changed-wAFZY5Ma.mjs";
6
+ import { S as SUPPORTED_CONTENT_TYPE_FIELDS, a as SUPPORTED_CUSTOM_FIELD_PLUGINS, g as getContentTransferSetupKeysSets, b as get, f as findModelValueByKey, c as StrapiModelService, d as getModelsTree, h as hasModelChanged } from "./has-model-changed-DViUIQHk.mjs";
7
7
  import styled from "styled-components";
8
8
  var voidElements = {
9
9
  "area": true,
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
- const isEqual = require("./isEqual--zmPN5yr.js");
6
- const set = require("./set-DDy9ZASU.js");
5
+ const isEqual = require("./isEqual-0M0aSdTT.js");
6
+ const set = require("./set-Cbi1yYuW.js");
7
7
  const admin = require("@strapi/strapi/admin");
8
- const hasModelChanged = require("./has-model-changed-9PCipZvK.js");
8
+ const hasModelChanged = require("./has-model-changed-gNSOSMBa.js");
9
9
  const styled = require("styled-components");
10
10
  const _interopDefault = (e2) => e2 && e2.__esModule ? e2 : { default: e2 };
11
11
  const styled__default = /* @__PURE__ */ _interopDefault(styled);
@@ -2,11 +2,11 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
- const set = require("./set-DDy9ZASU.js");
5
+ const set = require("./set-Cbi1yYuW.js");
6
6
  const admin = require("@strapi/strapi/admin");
7
- const isEqual = require("./isEqual--zmPN5yr.js");
8
- const LanguagesSelector = require("./LanguagesSelector-DU5YJVQa.js");
9
- const index = require("./index-Ca5_8RSo.js");
7
+ const isEqual = require("./isEqual-0M0aSdTT.js");
8
+ const LanguagesSelector = require("./LanguagesSelector-Bd8VFHib.js");
9
+ const index = require("./index-Bbwk3kp3.js");
10
10
  class PluginSettingsService {
11
11
  static async getAdminPanelUsers() {
12
12
  try {
@@ -1,10 +1,10 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
2
  import { useState, useEffect } from "react";
3
- import { u as useTranslation, c as Flex, B as Button, p as ForwardRef$4z, d as Box, A as Alert, T as Typography, q as Field, r as Toggle, M as MultiSelect, t as MultiSelectOption, D as Divider, v as SingleSelect, w as SingleSelectOption, P as PluginSettingsService$1, n as cloneDeep, s as set } from "./set-BkLLlpnD.mjs";
3
+ import { u as useTranslation, c as Flex, B as Button, p as ForwardRef$4z, d as Box, A as Alert, T as Typography, q as Field, r as Toggle, M as MultiSelect, t as MultiSelectOption, D as Divider, v as SingleSelect, w as SingleSelectOption, P as PluginSettingsService$1, n as cloneDeep, s as set } from "./set-Dnhh_SyE.mjs";
4
4
  import { Layouts } from "@strapi/strapi/admin";
5
- import { i as isEqual } from "./isEqual-DPUlu6B0.mjs";
6
- import { L as LanguagesSelector, P as ProjectService } from "./LanguagesSelector-D2AP7FE0.mjs";
7
- import { c as createStrapiApiAxiosInstance } from "./index-CT0CH6N8.mjs";
5
+ import { i as isEqual } from "./isEqual-CC-cEPwY.mjs";
6
+ import { L as LanguagesSelector, P as ProjectService } from "./LanguagesSelector-CeB7tVcb.mjs";
7
+ import { c as createStrapiApiAxiosInstance } from "./index-Dj68Ixl2.mjs";
8
8
  class PluginSettingsService {
9
9
  static async getAdminPanelUsers() {
10
10
  try {
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
- const index = require("./index-Ca5_8RSo.js");
2
+ const index = require("./index-Bbwk3kp3.js");
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
- const set = require("./set-DDy9ZASU.js");
5
+ const set = require("./set-Cbi1yYuW.js");
6
6
  const strapiApiInstance = index.createStrapiApiAxiosInstance();
7
7
  class ProjectService {
8
8
  static async getConnectedProject() {
@@ -1,7 +1,7 @@
1
- import { c as createStrapiApiAxiosInstance } from "./index-CT0CH6N8.mjs";
1
+ import { c as createStrapiApiAxiosInstance } from "./index-Dj68Ixl2.mjs";
2
2
  import { jsxs, jsx } from "react/jsx-runtime";
3
3
  import { useState, useEffect } from "react";
4
- import { u as useTranslation, q as Field, M as MultiSelect, t as MultiSelectOption, n as cloneDeep } from "./set-BkLLlpnD.mjs";
4
+ import { u as useTranslation, q as Field, M as MultiSelect, t as MultiSelectOption, n as cloneDeep } from "./set-Dnhh_SyE.mjs";
5
5
  const strapiApiInstance = createStrapiApiAxiosInstance();
6
6
  class ProjectService {
7
7
  static async getConnectedProject() {
@@ -1,5 +1,5 @@
1
- import { W as castPath, X as toKey, Y as Set, Z as setToArray, _ as SetCache, $ as cacheHas, g as getDefaultExportFromCjs, P as PluginSettingsService } from "./set-BkLLlpnD.mjs";
2
- import { c as createStrapiApiAxiosInstance } from "./index-CT0CH6N8.mjs";
1
+ import { W as castPath, X as toKey, Y as Set, Z as setToArray, _ as SetCache, $ as cacheHas, g as getDefaultExportFromCjs, P as PluginSettingsService } from "./set-Dnhh_SyE.mjs";
2
+ import { c as createStrapiApiAxiosInstance } from "./index-Dj68Ixl2.mjs";
3
3
  function baseGet(object, path) {
4
4
  path = castPath(path, object);
5
5
  var index = 0, length = path.length;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
- const set = require("./set-DDy9ZASU.js");
3
- const index = require("./index-Ca5_8RSo.js");
2
+ const set = require("./set-Cbi1yYuW.js");
3
+ const index = require("./index-Bbwk3kp3.js");
4
4
  function baseGet(object, path) {
5
5
  path = set.castPath(path, object);
6
6
  var index2 = 0, length = path.length;
@@ -20,7 +20,7 @@ const __variableDynamicImportRuntimeHelper = (glob, path, segs) => {
20
20
  });
21
21
  };
22
22
  const strapi = {
23
- name: "strapi-plugin-v5"
23
+ name: "localazy"
24
24
  };
25
25
  const pluginPkg = {
26
26
  strapi
@@ -2461,13 +2461,11 @@ const {
2461
2461
  mergeConfig
2462
2462
  } = axios;
2463
2463
  const BASE_PLUGIN_PATH = `/${PLUGIN_ID}`;
2464
+ const JWT_TOKEN_NAME = "jwtToken";
2464
2465
  const getToken = () => {
2465
- const token = localStorage.getItem("jwtToken") || sessionStorage.getItem("jwtToken") || "";
2466
- if (!token) {
2467
- return "";
2468
- }
2469
- const parsedToken = JSON.parse(token);
2470
- return parsedToken;
2466
+ const jwtTokenCookie = document.cookie.split("; ").find((row) => row.startsWith(`${JWT_TOKEN_NAME}=`));
2467
+ const jwtToken = jwtTokenCookie ? jwtTokenCookie.split("=")[1] : "";
2468
+ return jwtToken || localStorage.getItem(JWT_TOKEN_NAME) || sessionStorage.getItem(JWT_TOKEN_NAME) || "";
2471
2469
  };
2472
2470
  const createStrapiApiAxiosInstance = (baseUrl = null) => {
2473
2471
  const token = getToken();
@@ -2577,7 +2575,7 @@ const addMenuLink = (app) => {
2577
2575
  defaultMessage: getTranslation("name")
2578
2576
  },
2579
2577
  Component: async () => {
2580
- const { App } = await Promise.resolve().then(() => require("./App-CU_T8iLT.js"));
2578
+ const { App } = await Promise.resolve().then(() => require("./App-NRmSxuW3.js"));
2581
2579
  const { LocalazyIdentityProvider: LocalazyIdentityProvider2 } = await Promise.resolve().then(() => localazyIdentity);
2582
2580
  const WrappedApp = () => React__default.default.createElement(LocalazyIdentityProvider2, {
2583
2581
  children: React__default.default.createElement(React__default.default.Fragment, {}, [
@@ -2608,7 +2606,7 @@ const addSettingsSection = (app) => {
2608
2606
  },
2609
2607
  to: `/settings/${PLUGIN_ID}/global-settings`,
2610
2608
  Component: async () => {
2611
- const { GlobalSettings } = await Promise.resolve().then(() => require("./GlobalSettings-D_jeqPWF.js"));
2609
+ const { GlobalSettings } = await Promise.resolve().then(() => require("./GlobalSettings-CRMPRA3Y.js"));
2612
2610
  const { LocalazyIdentityProvider: LocalazyIdentityProvider2 } = await Promise.resolve().then(() => localazyIdentity);
2613
2611
  const WrappedGlobalSettings = () => React__default.default.createElement(LocalazyIdentityProvider2, { children: React__default.default.createElement(GlobalSettings, {}) });
2614
2612
  return WrappedGlobalSettings;
@@ -2624,7 +2622,7 @@ const addSettingsSection = (app) => {
2624
2622
  },
2625
2623
  to: `/settings/${PLUGIN_ID}/content-transfer-setup`,
2626
2624
  Component: async () => {
2627
- const { ContentTransferSetup } = await Promise.resolve().then(() => require("./ContentTransferSetup-DTcnul1w.js"));
2625
+ const { ContentTransferSetup } = await Promise.resolve().then(() => require("./ContentTransferSetup-DGs8MZPj.js"));
2628
2626
  const { LocalazyIdentityProvider: LocalazyIdentityProvider2 } = await Promise.resolve().then(() => localazyIdentity);
2629
2627
  const WrappedContentTransferSetup = () => React__default.default.createElement(LocalazyIdentityProvider2, {
2630
2628
  children: React__default.default.createElement(React__default.default.Fragment, {}, [
@@ -17,7 +17,7 @@ const __variableDynamicImportRuntimeHelper = (glob, path, segs) => {
17
17
  });
18
18
  };
19
19
  const strapi = {
20
- name: "strapi-plugin-v5"
20
+ name: "localazy"
21
21
  };
22
22
  const pluginPkg = {
23
23
  strapi
@@ -2458,13 +2458,11 @@ const {
2458
2458
  mergeConfig
2459
2459
  } = axios;
2460
2460
  const BASE_PLUGIN_PATH = `/${PLUGIN_ID}`;
2461
+ const JWT_TOKEN_NAME = "jwtToken";
2461
2462
  const getToken = () => {
2462
- const token = localStorage.getItem("jwtToken") || sessionStorage.getItem("jwtToken") || "";
2463
- if (!token) {
2464
- return "";
2465
- }
2466
- const parsedToken = JSON.parse(token);
2467
- return parsedToken;
2463
+ const jwtTokenCookie = document.cookie.split("; ").find((row) => row.startsWith(`${JWT_TOKEN_NAME}=`));
2464
+ const jwtToken = jwtTokenCookie ? jwtTokenCookie.split("=")[1] : "";
2465
+ return jwtToken || localStorage.getItem(JWT_TOKEN_NAME) || sessionStorage.getItem(JWT_TOKEN_NAME) || "";
2468
2466
  };
2469
2467
  const createStrapiApiAxiosInstance = (baseUrl = null) => {
2470
2468
  const token = getToken();
@@ -2574,7 +2572,7 @@ const addMenuLink = (app) => {
2574
2572
  defaultMessage: getTranslation("name")
2575
2573
  },
2576
2574
  Component: async () => {
2577
- const { App } = await import("./App-1cXVSnL0.mjs");
2575
+ const { App } = await import("./App-CtS6CrNn.mjs");
2578
2576
  const { LocalazyIdentityProvider: LocalazyIdentityProvider2 } = await Promise.resolve().then(() => localazyIdentity);
2579
2577
  const WrappedApp = () => React__default.createElement(LocalazyIdentityProvider2, {
2580
2578
  children: React__default.createElement(React__default.Fragment, {}, [
@@ -2605,7 +2603,7 @@ const addSettingsSection = (app) => {
2605
2603
  },
2606
2604
  to: `/settings/${PLUGIN_ID}/global-settings`,
2607
2605
  Component: async () => {
2608
- const { GlobalSettings } = await import("./GlobalSettings-7pI5vIna.mjs");
2606
+ const { GlobalSettings } = await import("./GlobalSettings-rOwd0Y0E.mjs");
2609
2607
  const { LocalazyIdentityProvider: LocalazyIdentityProvider2 } = await Promise.resolve().then(() => localazyIdentity);
2610
2608
  const WrappedGlobalSettings = () => React__default.createElement(LocalazyIdentityProvider2, { children: React__default.createElement(GlobalSettings, {}) });
2611
2609
  return WrappedGlobalSettings;
@@ -2621,7 +2619,7 @@ const addSettingsSection = (app) => {
2621
2619
  },
2622
2620
  to: `/settings/${PLUGIN_ID}/content-transfer-setup`,
2623
2621
  Component: async () => {
2624
- const { ContentTransferSetup } = await import("./ContentTransferSetup-D2R15gJS.mjs");
2622
+ const { ContentTransferSetup } = await import("./ContentTransferSetup-CeKXlzw_.mjs");
2625
2623
  const { LocalazyIdentityProvider: LocalazyIdentityProvider2 } = await Promise.resolve().then(() => localazyIdentity);
2626
2624
  const WrappedContentTransferSetup = () => React__default.createElement(LocalazyIdentityProvider2, {
2627
2625
  children: React__default.createElement(React__default.Fragment, {}, [
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const set = require("./set-DDy9ZASU.js");
2
+ const set = require("./set-Cbi1yYuW.js");
3
3
  function arraySome(array, predicate) {
4
4
  var index = -1, length = array == null ? 0 : array.length;
5
5
  while (++index < length) {
@@ -1,4 +1,4 @@
1
- import { _ as SetCache, $ as cacheHas, a0 as Symbol$1, a1 as eq, a2 as Uint8Array, Z as setToArray, a3 as getAllKeys, a4 as getTag, a5 as isBuffer, a6 as Stack, a7 as isTypedArray, Q as isArray, a8 as isObjectLike } from "./set-BkLLlpnD.mjs";
1
+ import { _ as SetCache, $ as cacheHas, a0 as Symbol$1, a1 as eq, a2 as Uint8Array, Z as setToArray, a3 as getAllKeys, a4 as getTag, a5 as isBuffer, a6 as Stack, a7 as isTypedArray, Q as isArray, a8 as isObjectLike } from "./set-Dnhh_SyE.mjs";
2
2
  function arraySome(array, predicate) {
3
3
  var index = -1, length = array == null ? 0 : array.length;
4
4
  while (++index < length) {
@@ -3,7 +3,7 @@ const React = require("react");
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
4
  const ReactDOM = require("react-dom");
5
5
  const styled = require("styled-components");
6
- const index$1 = require("./index-Ca5_8RSo.js");
6
+ const index$1 = require("./index-Bbwk3kp3.js");
7
7
  function _interopNamespace(e) {
8
8
  if (e && e.__esModule) return e;
9
9
  const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
@@ -53542,8 +53542,6 @@ const en_overview = {
53542
53542
  connected_organization: "Connected Organization",
53543
53543
  remaining_organization_keys: "Remaining Organization Keys",
53544
53544
  open_project_in_localazy: "Open project in Localazy",
53545
- internationalization_plugin: "Internationalization Plugin ",
53546
- has_to_be_installed: "has to be installed.",
53547
53545
  transfer_setup_message_a: "Select which parts of your project you want to upload in ",
53548
53546
  transfer_setup_message_b: "Settings > Localazy Settings > Content Transfer Setup."
53549
53547
  };
@@ -4,7 +4,7 @@ import { jsxs, Fragment as Fragment$1, jsx } from "react/jsx-runtime";
4
4
  import * as ReactDOM from "react-dom";
5
5
  import ReactDOM__default, { flushSync, createPortal } from "react-dom";
6
6
  import { useTheme, ThemeProvider, createGlobalStyle, css, styled, keyframes } from "styled-components";
7
- import { c as createStrapiApiAxiosInstance } from "./index-CT0CH6N8.mjs";
7
+ import { c as createStrapiApiAxiosInstance } from "./index-Dj68Ixl2.mjs";
8
8
  function $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(callback) {
9
9
  const callbackRef = useRef(callback);
10
10
  useEffect(() => {
@@ -53524,8 +53524,6 @@ const en_overview = {
53524
53524
  connected_organization: "Connected Organization",
53525
53525
  remaining_organization_keys: "Remaining Organization Keys",
53526
53526
  open_project_in_localazy: "Open project in Localazy",
53527
- internationalization_plugin: "Internationalization Plugin ",
53528
- has_to_be_installed: "has to be installed.",
53529
53527
  transfer_setup_message_a: "Select which parts of your project you want to upload in ",
53530
53528
  transfer_setup_message_b: "Settings > Localazy Settings > Content Transfer Setup."
53531
53529
  };
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
- const index = require("../_chunks/index-Ca5_8RSo.js");
2
+ const index = require("../_chunks/index-Bbwk3kp3.js");
3
3
  require("react");
4
4
  module.exports = index.index;
@@ -1,4 +1,4 @@
1
- import { i } from "../_chunks/index-CT0CH6N8.mjs";
1
+ import { i } from "../_chunks/index-Dj68Ixl2.mjs";
2
2
  import "react";
3
3
  export {
4
4
  i as default
@@ -1,2 +1,2 @@
1
- declare const _default: (a: Record<string, any>, b: Record<string, any>) => 0 | 1 | -1;
1
+ declare const _default: (a: Record<string, any>, b: Record<string, any>) => 1 | 0 | -1;
2
2
  export default _default;
@@ -6,8 +6,6 @@ declare const _default: {
6
6
  connected_organization: string;
7
7
  remaining_organization_keys: string;
8
8
  open_project_in_localazy: string;
9
- internationalization_plugin: string;
10
- has_to_be_installed: string;
11
9
  transfer_setup_message_a: string;
12
10
  transfer_setup_message_b: string;
13
11
  };
@@ -811,7 +811,7 @@ var merge = createAssigner(function(object, source, srcIndex) {
811
811
  baseMerge(object, source, srcIndex);
812
812
  });
813
813
  const name = "@localazy/strapi-plugin";
814
- const version$1 = "1.0.0-beta.2";
814
+ const version$1 = "1.0.0-beta.4";
815
815
  const description = "The official Strapi Plugin by Localazy.";
816
816
  const keywords = [
817
817
  "strapi",
@@ -925,7 +925,7 @@ const peerDependencies = {
925
925
  };
926
926
  const strapi$1 = {
927
927
  kind: "plugin",
928
- name: "strapi-plugin-v5",
928
+ name: "localazy",
929
929
  displayName: "Localazy Strapi Plugin",
930
930
  description: "The official Strapi Plugin by Localazy"
931
931
  };
@@ -798,7 +798,7 @@ var merge = createAssigner(function(object, source, srcIndex) {
798
798
  baseMerge(object, source, srcIndex);
799
799
  });
800
800
  const name = "@localazy/strapi-plugin";
801
- const version$1 = "1.0.0-beta.2";
801
+ const version$1 = "1.0.0-beta.4";
802
802
  const description = "The official Strapi Plugin by Localazy.";
803
803
  const keywords = [
804
804
  "strapi",
@@ -912,7 +912,7 @@ const peerDependencies = {
912
912
  };
913
913
  const strapi$1 = {
914
914
  kind: "plugin",
915
- name: "strapi-plugin-v5",
915
+ name: "localazy",
916
916
  displayName: "Localazy Strapi Plugin",
917
917
  description: "The official Strapi Plugin by Localazy"
918
918
  };
package/install/index.mjs CHANGED
@@ -40,6 +40,10 @@ const exampleFileName =
40
40
  type === 'vite'
41
41
  ? `vite.config.localazy-strapi-plugin.example.${extension}`
42
42
  : `webpack.config.localazy-strapi-plugin.example.${extension}`;
43
+ const existingFile =
44
+ type === 'vite'
45
+ ? path.join(process.cwd(), `vite.config.${extension}`)
46
+ : path.join(process.cwd(), `webpack.config.${extension}`);
43
47
  const template =
44
48
  type === 'vite'
45
49
  ? await fs.readFile(path.join(__dirname, `vite.config.example.${extension}`))
@@ -124,6 +128,6 @@ installSpinner.start(
124
128
  await updateEnvConfig();
125
129
  installSpinner.succeed();
126
130
  installSpinner.succeed(
127
- `To run the plugin, you need to update your webpack config in ${chalk.bold.green('src/admin/webpack.config.js')} file`
131
+ `To run the plugin, you need to update your webpack config in ${chalk.bold.green(`src/admin/${existingFile}`)} file`
128
132
  );
129
133
  installSpinner.succeed(`Don't forget to build the admin panel with ${chalk.bold.green('npm run build')} command`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@localazy/strapi-plugin",
3
- "version": "1.0.0-beta.3",
3
+ "version": "1.0.0-beta.5",
4
4
  "description": "The official Strapi Plugin by Localazy.",
5
5
  "keywords": [
6
6
  "strapi",
@@ -120,7 +120,7 @@
120
120
  },
121
121
  "strapi": {
122
122
  "kind": "plugin",
123
- "name": "strapi-plugin-v5",
123
+ "name": "localazy",
124
124
  "displayName": "Localazy Strapi Plugin",
125
125
  "description": "The official Strapi Plugin by Localazy"
126
126
  }