@localazy/strapi-plugin 1.0.0-beta.4 → 1.0.0
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/LICENSE +21 -0
- package/README.md +32 -10
- package/dist/_chunks/{App-B-eJcuyt.mjs → App-CtS6CrNn.mjs} +4 -4
- package/dist/_chunks/{App-CZwW3YTd.js → App-NRmSxuW3.js} +4 -4
- package/dist/_chunks/{ContentTransferSetup-UJY9VRZa.mjs → ContentTransferSetup-CeKXlzw_.mjs} +3 -3
- package/dist/_chunks/{ContentTransferSetup-Dr_mJJgz.js → ContentTransferSetup-DGs8MZPj.js} +3 -3
- package/dist/_chunks/{GlobalSettings-fOqWFCaw.js → GlobalSettings-CRMPRA3Y.js} +4 -4
- package/dist/_chunks/{GlobalSettings-Zw4Rx2kW.mjs → GlobalSettings-rOwd0Y0E.mjs} +4 -4
- package/dist/_chunks/{LanguagesSelector-BCdGJ78t.js → LanguagesSelector-Bd8VFHib.js} +2 -2
- package/dist/_chunks/{LanguagesSelector-BuLqcCj3.mjs → LanguagesSelector-CeB7tVcb.mjs} +2 -2
- package/dist/_chunks/{has-model-changed-3odhT9AD.mjs → has-model-changed-DViUIQHk.mjs} +2 -2
- package/dist/_chunks/{has-model-changed-DWtqhgC5.js → has-model-changed-gNSOSMBa.js} +2 -2
- package/dist/_chunks/{index-A4sI66xq.js → index-Bbwk3kp3.js} +7 -9
- package/dist/_chunks/{index-ejNxZTDx.mjs → index-Dj68Ixl2.mjs} +7 -9
- package/dist/_chunks/{isEqual-CrFRsMew.js → isEqual-0M0aSdTT.js} +1 -1
- package/dist/_chunks/{isEqual-C5fQrX8H.mjs → isEqual-CC-cEPwY.mjs} +1 -1
- package/dist/_chunks/{set-B9_zNm2J.js → set-Cbi1yYuW.js} +1 -1
- package/dist/_chunks/{set-DetVznhF.mjs → set-Dnhh_SyE.mjs} +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/modules/@common/utils/sort-by-model-name.d.ts +1 -1
- package/dist/server/index.js +9 -2
- package/dist/server/index.mjs +9 -2
- package/package.json +9 -2
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025-present, Localazy s.r.o.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,10 +1,27 @@
|
|
|
1
|
-
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+
[<img src="https://localazy.com/directus9/assets/9fc36b9c-81b7-4dbf-bd82-b64cd984090f" width="285" height="50" alt="Localazy" >](https://localazy.com)
|
|
4
|
+
|
|
5
|
+
### 📦 `@localazy/strapi-plugin`
|
|
6
|
+
|
|
7
|
+
[**Documentation**](https://localazy.com/docs/strapi/strapi-plugin-introduction-installation) |
|
|
8
|
+
[**Blog Articles**](https://localazy.com/tags/strapi)
|
|
9
|
+
|
|
10
|
+
_The official Strapi Plugin by Localazy_
|
|
11
|
+
|
|
12
|
+
[](https://www.npmjs.com/package/@localazy/strapi-plugin)
|
|
13
|
+
|
|
14
|
+
</div>
|
|
15
|
+
|
|
16
|
+
## 🚀 Quick Start
|
|
17
|
+
|
|
18
|
+
This is a README for Strapi v5. For Strapi v4, please refer to the [Strapi v4 README](https://github.com/localazy/strapi-plugin/tree/strapi-v4#readme) file.
|
|
2
19
|
|
|
3
20
|
```
|
|
4
21
|
npm install @localazy/strapi-plugin@latest && npx @localazy/strapi-plugin
|
|
5
22
|
```
|
|
6
23
|
|
|
7
|
-
## The Official Strapi Localization Plugin by Localazy
|
|
24
|
+
## ✨ The Official Strapi Localization Plugin by Localazy
|
|
8
25
|
|
|
9
26
|
Strapi localization doesn't have to be a headache! Install the Strapi localization plugin and seamlessly translate your content into multiple languages with [Localazy](https://localazy.com).
|
|
10
27
|
|
|
@@ -16,7 +33,7 @@ Strapi localization doesn't have to be a headache! Install the Strapi localizati
|
|
|
16
33
|
|
|
17
34
|
📰 Learn more in the [Strapi + Localazy tutorial](https://localazy.com/blog/how-to-strapi-localization-with-localazy#getting-started-with-strapi-localization).
|
|
18
35
|
|
|
19
|
-
## Installation & Setup
|
|
36
|
+
## 🔧 Installation & Setup
|
|
20
37
|
|
|
21
38
|
The plugin is available on [NPM](https://www.npmjs.com/package/@localazy/strapi-plugin).
|
|
22
39
|
You can also follow the installation commands located in your Strapi project Marketplace or [Strapi Marketplace > Localazy](https://market.strapi.io/plugins/@localazy-strapi-plugin) itself. This is the recommended approach.
|
|
@@ -35,7 +52,7 @@ Due to the changes in Strapi core code it's also necessary to add an environment
|
|
|
35
52
|
STRAPI_ADMIN_LOCALAZY_ENV=
|
|
36
53
|
```
|
|
37
54
|
|
|
38
|
-
## Configuration
|
|
55
|
+
## ⚙️ Configuration
|
|
39
56
|
|
|
40
57
|
Additional configuration object may be provided in the `plugins.js` file. The following options are available:
|
|
41
58
|
|
|
@@ -52,12 +69,17 @@ localazy: {
|
|
|
52
69
|
},
|
|
53
70
|
```
|
|
54
71
|
|
|
55
|
-
##
|
|
72
|
+
## 🛟 Support
|
|
73
|
+
|
|
74
|
+
If you encounter any issues or have questions, feel free to contact us through whichever channel suits you best:
|
|
75
|
+
|
|
76
|
+
- [Intercom chat](https://localazy.com)
|
|
77
|
+
- [GitHub issues](https://github.com/localazy/strapi-plugin/issues)
|
|
78
|
+
- [Discussion forum](https://discuss.localazy.com/)
|
|
79
|
+
- [team@localazy.com](mailto:team@localazy.com)
|
|
56
80
|
|
|
57
|
-
|
|
58
|
-
- Localazy Blog: [Articles about the Strapi plugin](https://localazy.com/tags/strapi)
|
|
81
|
+
## 📜 License
|
|
59
82
|
|
|
60
|
-
|
|
83
|
+
This project is licensed under the MIT License.
|
|
61
84
|
|
|
62
|
-
|
|
63
|
-
- Join the [Localazy Discussion Forum](https://discuss.localazy.com/) to discuss all things localization.
|
|
85
|
+
See [LICENSE](LICENSE) for details.
|
|
@@ -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-
|
|
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-
|
|
6
|
-
import { P as ProjectService, L as LanguagesSelector } from "./LanguagesSelector-
|
|
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-
|
|
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";
|
|
@@ -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-
|
|
5
|
+
const set = require("./set-Cbi1yYuW.js");
|
|
6
6
|
const React = require("react");
|
|
7
|
-
const index = require("./index-
|
|
8
|
-
const LanguagesSelector = require("./LanguagesSelector-
|
|
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-
|
|
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";
|
package/dist/_chunks/{ContentTransferSetup-UJY9VRZa.mjs → ContentTransferSetup-CeKXlzw_.mjs}
RENAMED
|
@@ -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-
|
|
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-
|
|
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-
|
|
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-
|
|
6
|
-
const set = require("./set-
|
|
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-
|
|
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-
|
|
5
|
+
const set = require("./set-Cbi1yYuW.js");
|
|
6
6
|
const admin = require("@strapi/strapi/admin");
|
|
7
|
-
const isEqual = require("./isEqual-
|
|
8
|
-
const LanguagesSelector = require("./LanguagesSelector-
|
|
9
|
-
const index = require("./index-
|
|
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-
|
|
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-
|
|
6
|
-
import { L as LanguagesSelector, P as ProjectService } from "./LanguagesSelector-
|
|
7
|
-
import { c as createStrapiApiAxiosInstance } from "./index-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
2
|
-
import { c as createStrapiApiAxiosInstance } from "./index-
|
|
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-
|
|
3
|
-
const index = require("./index-
|
|
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;
|
|
@@ -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
|
|
2466
|
-
|
|
2467
|
-
|
|
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-
|
|
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-
|
|
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-
|
|
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, {}, [
|
|
@@ -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
|
|
2463
|
-
|
|
2464
|
-
|
|
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-
|
|
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-
|
|
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-
|
|
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,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-
|
|
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-
|
|
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" } });
|
|
@@ -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-
|
|
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(() => {
|
package/dist/admin/index.js
CHANGED
package/dist/admin/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: (a: Record<string, any>, b: Record<string, any>) =>
|
|
1
|
+
declare const _default: (a: Record<string, any>, b: Record<string, any>) => 1 | 0 | -1;
|
|
2
2
|
export default _default;
|
package/dist/server/index.js
CHANGED
|
@@ -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
|
|
814
|
+
const version$1 = "1.0.0";
|
|
815
815
|
const description = "The official Strapi Plugin by Localazy.";
|
|
816
816
|
const keywords = [
|
|
817
817
|
"strapi",
|
|
@@ -848,7 +848,9 @@ const exports$1 = {
|
|
|
848
848
|
"default": "./dist/server/index.js"
|
|
849
849
|
}
|
|
850
850
|
};
|
|
851
|
-
const bin =
|
|
851
|
+
const bin = {
|
|
852
|
+
"strapi-plugin": "install/index.mjs"
|
|
853
|
+
};
|
|
852
854
|
const files = [
|
|
853
855
|
"dist",
|
|
854
856
|
"install"
|
|
@@ -875,6 +877,7 @@ const dependencies = {
|
|
|
875
877
|
const devDependencies = {
|
|
876
878
|
"@david-vaclavek/deep-keys": "^0.5.0",
|
|
877
879
|
"@localazy/api-client": "^2.1.6",
|
|
880
|
+
"@localazy/conventional-changelog-preset": "^1.2.9",
|
|
878
881
|
"@localazy/generic-connector-client": "^0.3.0",
|
|
879
882
|
"@strapi/design-system": "^2.0.0-rc.14",
|
|
880
883
|
"@strapi/icons": "^2.0.0-rc.14",
|
|
@@ -888,6 +891,10 @@ const devDependencies = {
|
|
|
888
891
|
"@typescript-eslint/parser": "^8.21.0",
|
|
889
892
|
axios: "^1.7.9",
|
|
890
893
|
chalk: "^5.4.1",
|
|
894
|
+
"conventional-changelog": "^5.1.0",
|
|
895
|
+
"conventional-changelog-cli": "^4.1.0",
|
|
896
|
+
"conventional-changelog-writer": "github:localazy/conventional-changelog-writer",
|
|
897
|
+
"conventional-recommended-bump": "^9.0.0",
|
|
891
898
|
eslint: "^9.18.0",
|
|
892
899
|
"eslint-config-prettier": "^10.0.1",
|
|
893
900
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
package/dist/server/index.mjs
CHANGED
|
@@ -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
|
|
801
|
+
const version$1 = "1.0.0";
|
|
802
802
|
const description = "The official Strapi Plugin by Localazy.";
|
|
803
803
|
const keywords = [
|
|
804
804
|
"strapi",
|
|
@@ -835,7 +835,9 @@ const exports$1 = {
|
|
|
835
835
|
"default": "./dist/server/index.js"
|
|
836
836
|
}
|
|
837
837
|
};
|
|
838
|
-
const bin =
|
|
838
|
+
const bin = {
|
|
839
|
+
"strapi-plugin": "install/index.mjs"
|
|
840
|
+
};
|
|
839
841
|
const files = [
|
|
840
842
|
"dist",
|
|
841
843
|
"install"
|
|
@@ -862,6 +864,7 @@ const dependencies = {
|
|
|
862
864
|
const devDependencies = {
|
|
863
865
|
"@david-vaclavek/deep-keys": "^0.5.0",
|
|
864
866
|
"@localazy/api-client": "^2.1.6",
|
|
867
|
+
"@localazy/conventional-changelog-preset": "^1.2.9",
|
|
865
868
|
"@localazy/generic-connector-client": "^0.3.0",
|
|
866
869
|
"@strapi/design-system": "^2.0.0-rc.14",
|
|
867
870
|
"@strapi/icons": "^2.0.0-rc.14",
|
|
@@ -875,6 +878,10 @@ const devDependencies = {
|
|
|
875
878
|
"@typescript-eslint/parser": "^8.21.0",
|
|
876
879
|
axios: "^1.7.9",
|
|
877
880
|
chalk: "^5.4.1",
|
|
881
|
+
"conventional-changelog": "^5.1.0",
|
|
882
|
+
"conventional-changelog-cli": "^4.1.0",
|
|
883
|
+
"conventional-changelog-writer": "github:localazy/conventional-changelog-writer",
|
|
884
|
+
"conventional-recommended-bump": "^9.0.0",
|
|
878
885
|
eslint: "^9.18.0",
|
|
879
886
|
"eslint-config-prettier": "^10.0.1",
|
|
880
887
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@localazy/strapi-plugin",
|
|
3
|
-
"version": "1.0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "The official Strapi Plugin by Localazy.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"strapi",
|
|
@@ -37,7 +37,9 @@
|
|
|
37
37
|
"default": "./dist/server/index.js"
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
|
-
"bin":
|
|
40
|
+
"bin": {
|
|
41
|
+
"strapi-plugin": "install/index.mjs"
|
|
42
|
+
},
|
|
41
43
|
"files": [
|
|
42
44
|
"dist",
|
|
43
45
|
"install"
|
|
@@ -70,6 +72,7 @@
|
|
|
70
72
|
"devDependencies": {
|
|
71
73
|
"@david-vaclavek/deep-keys": "^0.5.0",
|
|
72
74
|
"@localazy/api-client": "^2.1.6",
|
|
75
|
+
"@localazy/conventional-changelog-preset": "^1.2.9",
|
|
73
76
|
"@localazy/generic-connector-client": "^0.3.0",
|
|
74
77
|
"@strapi/design-system": "^2.0.0-rc.14",
|
|
75
78
|
"@strapi/icons": "^2.0.0-rc.14",
|
|
@@ -83,6 +86,10 @@
|
|
|
83
86
|
"@typescript-eslint/parser": "^8.21.0",
|
|
84
87
|
"axios": "^1.7.9",
|
|
85
88
|
"chalk": "^5.4.1",
|
|
89
|
+
"conventional-changelog": "^5.1.0",
|
|
90
|
+
"conventional-changelog-cli": "^4.1.0",
|
|
91
|
+
"conventional-changelog-writer": "github:localazy/conventional-changelog-writer",
|
|
92
|
+
"conventional-recommended-bump": "^9.0.0",
|
|
86
93
|
"eslint": "^9.18.0",
|
|
87
94
|
"eslint-config-prettier": "^10.0.1",
|
|
88
95
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|