@localazy/strapi-plugin 1.0.9 → 1.0.10
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/_chunks/{FetchIdentity-BWSQAXt-.mjs → FetchIdentity-B9hYlR1E.mjs} +1 -1
- package/dist/_chunks/{FetchIdentity-4kkW9N7Y.js → FetchIdentity-W-xq7F8q.js} +1 -1
- package/dist/_chunks/{LanguagesSelector-yWC_Yb_S.js → LanguagesSelector-Cq9JuASq.js} +2 -2
- package/dist/_chunks/{LanguagesSelector-DwAGgpcR.mjs → LanguagesSelector-zGN0icsS.mjs} +2 -2
- package/dist/_chunks/{LocalazyApp-DnaA768k.js → LocalazyApp-CTMwUa44.js} +16 -8
- package/dist/_chunks/{LocalazyApp-zySanVTu.mjs → LocalazyApp-CxQTCwbi.mjs} +16 -8
- package/dist/_chunks/{LocalazyContentTransferSetup-C7qVIeix.mjs → LocalazyContentTransferSetup-DOHIserI.mjs} +3 -3
- package/dist/_chunks/{LocalazyContentTransferSetup-CeOM6bYA.js → LocalazyContentTransferSetup-DhSv2HJo.js} +3 -3
- package/dist/_chunks/{LocalazyGlobalSettings-ewETL3oG.js → LocalazyGlobalSettings-D7fyS9ih.js} +4 -4
- package/dist/_chunks/{LocalazyGlobalSettings-QvuLdsLe.mjs → LocalazyGlobalSettings-DCFs8AA1.mjs} +4 -4
- package/dist/_chunks/{LocalazyPanel-BXVLvFgD.js → LocalazyPanel-CDgAmxqx.js} +1 -1
- package/dist/_chunks/{LocalazyPanel-BotUsX-y.mjs → LocalazyPanel-N7__R7p9.mjs} +1 -1
- package/dist/_chunks/{LocalazyStatusColumn-Dt96YcGQ.js → LocalazyStatusColumn-CTjBaBqb.js} +1 -1
- package/dist/_chunks/{LocalazyStatusColumn-C81HewMg.mjs → LocalazyStatusColumn-CuGDwwZ8.mjs} +1 -1
- package/dist/_chunks/{RequireLocalazyAuth-CWBWETzC.js → RequireLocalazyAuth-BDtwyPLH.js} +3 -3
- package/dist/_chunks/{RequireLocalazyAuth-CDuyGCrT.mjs → RequireLocalazyAuth-BmimcHYI.mjs} +3 -3
- package/dist/_chunks/{entry-exclusion-service-CGV6iOkB.js → entry-exclusion-service-BZkbrd3B.js} +1 -1
- package/dist/_chunks/{entry-exclusion-service-BVPICve2.mjs → entry-exclusion-service-COp5ZXUY.mjs} +1 -1
- package/dist/_chunks/{has-model-changed-DVYRxVhM.js → has-model-changed-BXqyvCRA.js} +2 -2
- package/dist/_chunks/{has-model-changed-DZL36gWh.mjs → has-model-changed-K3Z8BNhV.mjs} +2 -2
- package/dist/_chunks/{index-DsrYI6aB.mjs → index-B_KJR1Xk.mjs} +8 -8
- package/dist/_chunks/{index-CCxXsn7Z.js → index-BtofOkFA.js} +8 -8
- package/dist/_chunks/{strapi-api-base-DjeKGUw7.mjs → strapi-api-base-BfIxEUh2.mjs} +1 -1
- package/dist/_chunks/{strapi-api-base-BE8VMlaA.js → strapi-api-base-S2_cFlNu.js} +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/server/index.js +1 -1
- package/dist/server/index.mjs +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as createStrapiApiAxiosInstance } from "./strapi-api-base-
|
|
1
|
+
import { c as createStrapiApiAxiosInstance } from "./strapi-api-base-BfIxEUh2.mjs";
|
|
2
2
|
import { useState, useMemo, createContext, useContext, useEffect } from "react";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
const emptyIdentity = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const strapiApiBase = require("./strapi-api-base-
|
|
2
|
+
const strapiApiBase = require("./strapi-api-base-S2_cFlNu.js");
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const React = require("react");
|
|
5
|
-
const FetchIdentity = require("./FetchIdentity-
|
|
5
|
+
const FetchIdentity = require("./FetchIdentity-W-xq7F8q.js");
|
|
6
6
|
const index = require("./index-CaY3BYnQ.js");
|
|
7
7
|
const useTranslation = require("./useTranslation-BdIl-aLe.js");
|
|
8
8
|
const strapiApiInstance = strapiApiBase.createStrapiApiAxiosInstance();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as createStrapiApiAxiosInstance } from "./strapi-api-base-
|
|
1
|
+
import { c as createStrapiApiAxiosInstance } from "./strapi-api-base-BfIxEUh2.mjs";
|
|
2
2
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useState, useEffect } from "react";
|
|
4
|
-
import { c as cloneDeep } from "./FetchIdentity-
|
|
4
|
+
import { c as cloneDeep } from "./FetchIdentity-B9hYlR1E.mjs";
|
|
5
5
|
import { F as Field, M as MultiSelect, b as MultiSelectOption } from "./index-CgI_aKe_.mjs";
|
|
6
6
|
import { u as useTranslation } from "./useTranslation-CZQ4lU1m.mjs";
|
|
7
7
|
const strapiApiInstance = createStrapiApiAxiosInstance();
|
|
@@ -4,15 +4,15 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const reactRouterDom = require("react-router-dom");
|
|
5
5
|
const index$1 = require("./index-CaY3BYnQ.js");
|
|
6
6
|
const React = require("react");
|
|
7
|
-
const FetchIdentity = require("./FetchIdentity-
|
|
8
|
-
const index = require("./index-
|
|
7
|
+
const FetchIdentity = require("./FetchIdentity-W-xq7F8q.js");
|
|
8
|
+
const index = require("./index-BtofOkFA.js");
|
|
9
9
|
const useTranslation = require("./useTranslation-BdIl-aLe.js");
|
|
10
10
|
const _commonjsHelpers = require("./_commonjsHelpers-Bc2YnDe1.js");
|
|
11
|
-
const strapiApiBase = require("./strapi-api-base-
|
|
12
|
-
const LanguagesSelector = require("./LanguagesSelector-
|
|
11
|
+
const strapiApiBase = require("./strapi-api-base-S2_cFlNu.js");
|
|
12
|
+
const LanguagesSelector = require("./LanguagesSelector-Cq9JuASq.js");
|
|
13
13
|
const admin = require("@strapi/strapi/admin");
|
|
14
14
|
require("./i18n-0dV2P-Hm.js");
|
|
15
|
-
const hasModelChanged = require("./has-model-changed-
|
|
15
|
+
const hasModelChanged = require("./has-model-changed-BXqyvCRA.js");
|
|
16
16
|
var PLUGIN_ROUTES = /* @__PURE__ */ ((PLUGIN_ROUTES2) => {
|
|
17
17
|
PLUGIN_ROUTES2["ROOT"] = "";
|
|
18
18
|
PLUGIN_ROUTES2["LOGIN"] = "login";
|
|
@@ -5280,23 +5280,31 @@ const Download = (props) => {
|
|
|
5280
5280
|
};
|
|
5281
5281
|
const App = () => {
|
|
5282
5282
|
const { navigateToPluginRoute } = useRedirectToPluginRoute();
|
|
5283
|
+
const location2 = reactRouterDom.useLocation();
|
|
5283
5284
|
const { isLoggedIn, isFetchingIdentity } = FetchIdentity.useLocalazyIdentity();
|
|
5284
5285
|
const headerTitle = useHeaderTitle();
|
|
5285
5286
|
const headerSubtitle = useHeaderSubtitle();
|
|
5287
|
+
const normalizedPath = location2.pathname.replace(/\/+$/, "");
|
|
5288
|
+
const pluginRoot = `/plugins/${index.PLUGIN_ID}`;
|
|
5289
|
+
const isAtPluginRoot = normalizedPath === pluginRoot;
|
|
5290
|
+
const isAtLoginRoute = normalizedPath === `${pluginRoot}/login`;
|
|
5291
|
+
const shouldRedirect = isAtPluginRoot || isAtLoginRoute;
|
|
5286
5292
|
React.useEffect(() => {
|
|
5287
5293
|
const fetchData = async () => {
|
|
5288
5294
|
if (isFetchingIdentity) {
|
|
5289
5295
|
return;
|
|
5290
5296
|
}
|
|
5291
5297
|
if (!isLoggedIn) {
|
|
5292
|
-
|
|
5293
|
-
|
|
5298
|
+
if (!isAtLoginRoute) {
|
|
5299
|
+
navigateToPluginRoute(PLUGIN_ROUTES.LOGIN);
|
|
5300
|
+
}
|
|
5301
|
+
} else if (shouldRedirect) {
|
|
5294
5302
|
const lastRoute = (await FetchIdentity.PluginSettingsService.getPluginSettings()).defaultRoute || PLUGIN_ROUTES.UPLOAD;
|
|
5295
5303
|
navigateToPluginRoute(lastRoute);
|
|
5296
5304
|
}
|
|
5297
5305
|
};
|
|
5298
5306
|
fetchData();
|
|
5299
|
-
}, [isLoggedIn, isFetchingIdentity]);
|
|
5307
|
+
}, [isLoggedIn, isFetchingIdentity, normalizedPath]);
|
|
5300
5308
|
return /* @__PURE__ */ jsxRuntime.jsx(index$1.DesignSystemProvider, { theme: getDefaultTheme(), children: /* @__PURE__ */ jsxRuntime.jsx(index$1.Box, { background: "neutral100", children: /* @__PURE__ */ jsxRuntime.jsxs(admin.Layouts.Root, { sideNav: isLoggedIn && /* @__PURE__ */ jsxRuntime.jsx(SideNav, {}), children: [
|
|
5301
5309
|
isFetchingIdentity && /* @__PURE__ */ jsxRuntime.jsx(PluginPageLoader, {}),
|
|
5302
5310
|
/* @__PURE__ */ jsxRuntime.jsxs(reactRouterDom.Routes, { children: [
|
|
@@ -2,15 +2,15 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
|
2
2
|
import { useNavigate, useLocation, NavLink, Routes, Route } from "react-router-dom";
|
|
3
3
|
import { i as ForwardRef$2H, j as ForwardRef$d, k as ForwardRef$3P, c as Flex, L as Loader, B as Button, e as Box, T as Typography, l as Link, m as SubNav, n as SubNavHeader, o as SubNavSections, p as SubNavSection, q as SubNavLink, r as ForwardRef$L, G as Grid, D as Divider, s as darkTheme, t as lightTheme, A as Alert, u as DesignSystemProvider } from "./index-CgI_aKe_.mjs";
|
|
4
4
|
import { useState, useEffect } from "react";
|
|
5
|
-
import { u as useLocalazyIdentity, v as LocalazyUserService, w as emptyIdentity, P as PluginSettingsService, c as cloneDeep, s as set, L as LocalazyIdentityProvider, F as FetchIdentity } from "./FetchIdentity-
|
|
6
|
-
import { P as PLUGIN_ID } from "./index-
|
|
5
|
+
import { u as useLocalazyIdentity, v as LocalazyUserService, w as emptyIdentity, P as PluginSettingsService, c as cloneDeep, s as set, L as LocalazyIdentityProvider, F as FetchIdentity } from "./FetchIdentity-B9hYlR1E.mjs";
|
|
6
|
+
import { P as PLUGIN_ID } from "./index-B_KJR1Xk.mjs";
|
|
7
7
|
import { u as useTranslation } from "./useTranslation-CZQ4lU1m.mjs";
|
|
8
8
|
import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-DWwsNxpa.mjs";
|
|
9
|
-
import { c as createStrapiApiAxiosInstance } from "./strapi-api-base-
|
|
10
|
-
import { P as ProjectService, L as LanguagesSelector } from "./LanguagesSelector-
|
|
9
|
+
import { c as createStrapiApiAxiosInstance } from "./strapi-api-base-BfIxEUh2.mjs";
|
|
10
|
+
import { P as ProjectService, L as LanguagesSelector } from "./LanguagesSelector-zGN0icsS.mjs";
|
|
11
11
|
import { Layouts, Page } from "@strapi/strapi/admin";
|
|
12
12
|
import "./i18n-RoETLXdU.mjs";
|
|
13
|
-
import { h as hasModelChanged } from "./has-model-changed-
|
|
13
|
+
import { h as hasModelChanged } from "./has-model-changed-K3Z8BNhV.mjs";
|
|
14
14
|
var PLUGIN_ROUTES = /* @__PURE__ */ ((PLUGIN_ROUTES2) => {
|
|
15
15
|
PLUGIN_ROUTES2["ROOT"] = "";
|
|
16
16
|
PLUGIN_ROUTES2["LOGIN"] = "login";
|
|
@@ -5278,23 +5278,31 @@ const Download = (props) => {
|
|
|
5278
5278
|
};
|
|
5279
5279
|
const App = () => {
|
|
5280
5280
|
const { navigateToPluginRoute } = useRedirectToPluginRoute();
|
|
5281
|
+
const location2 = useLocation();
|
|
5281
5282
|
const { isLoggedIn, isFetchingIdentity } = useLocalazyIdentity();
|
|
5282
5283
|
const headerTitle = useHeaderTitle();
|
|
5283
5284
|
const headerSubtitle = useHeaderSubtitle();
|
|
5285
|
+
const normalizedPath = location2.pathname.replace(/\/+$/, "");
|
|
5286
|
+
const pluginRoot = `/plugins/${PLUGIN_ID}`;
|
|
5287
|
+
const isAtPluginRoot = normalizedPath === pluginRoot;
|
|
5288
|
+
const isAtLoginRoute = normalizedPath === `${pluginRoot}/login`;
|
|
5289
|
+
const shouldRedirect = isAtPluginRoot || isAtLoginRoute;
|
|
5284
5290
|
useEffect(() => {
|
|
5285
5291
|
const fetchData = async () => {
|
|
5286
5292
|
if (isFetchingIdentity) {
|
|
5287
5293
|
return;
|
|
5288
5294
|
}
|
|
5289
5295
|
if (!isLoggedIn) {
|
|
5290
|
-
|
|
5291
|
-
|
|
5296
|
+
if (!isAtLoginRoute) {
|
|
5297
|
+
navigateToPluginRoute(PLUGIN_ROUTES.LOGIN);
|
|
5298
|
+
}
|
|
5299
|
+
} else if (shouldRedirect) {
|
|
5292
5300
|
const lastRoute = (await PluginSettingsService.getPluginSettings()).defaultRoute || PLUGIN_ROUTES.UPLOAD;
|
|
5293
5301
|
navigateToPluginRoute(lastRoute);
|
|
5294
5302
|
}
|
|
5295
5303
|
};
|
|
5296
5304
|
fetchData();
|
|
5297
|
-
}, [isLoggedIn, isFetchingIdentity]);
|
|
5305
|
+
}, [isLoggedIn, isFetchingIdentity, normalizedPath]);
|
|
5298
5306
|
return /* @__PURE__ */ jsx(DesignSystemProvider, { theme: getDefaultTheme(), children: /* @__PURE__ */ jsx(Box, { background: "neutral100", children: /* @__PURE__ */ jsxs(Layouts.Root, { sideNav: isLoggedIn && /* @__PURE__ */ jsx(SideNav, {}), children: [
|
|
5299
5307
|
isFetchingIdentity && /* @__PURE__ */ jsx(PluginPageLoader, {}),
|
|
5300
5308
|
/* @__PURE__ */ jsxs(Routes, { children: [
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, useState, useEffect } from "react";
|
|
3
|
-
import { i as isEqual, R as RequireLocalazyAuth } from "./RequireLocalazyAuth-
|
|
4
|
-
import { s as set, m as keys, n as isArrayLike, o as arrayEach, k as isArray, p as isObject, P as PluginSettingsService, c as cloneDeep, L as LocalazyIdentityProvider, F as FetchIdentity } from "./FetchIdentity-
|
|
3
|
+
import { i as isEqual, R as RequireLocalazyAuth } from "./RequireLocalazyAuth-BmimcHYI.mjs";
|
|
4
|
+
import { s as set, m as keys, n as isArrayLike, o as arrayEach, k as isArray, p as isObject, P as PluginSettingsService, c as cloneDeep, L as LocalazyIdentityProvider, F as FetchIdentity } from "./FetchIdentity-B9hYlR1E.mjs";
|
|
5
5
|
import { Layouts } from "@strapi/strapi/admin";
|
|
6
6
|
import { C as CheckboxImpl, e as Box, g as Accordion, c as Flex, h as SwitchImpl, T as Typography, B as Button, d as ForwardRef$4z, A as Alert, D as Divider } from "./index-CgI_aKe_.mjs";
|
|
7
|
-
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-
|
|
7
|
+
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-K3Z8BNhV.mjs";
|
|
8
8
|
import { u as useTranslation } from "./useTranslation-CZQ4lU1m.mjs";
|
|
9
9
|
import styled from "styled-components";
|
|
10
10
|
import { Trans } from "./index-BIbKC7-V.mjs";
|
|
@@ -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 RequireLocalazyAuth = require("./RequireLocalazyAuth-
|
|
6
|
-
const FetchIdentity = require("./FetchIdentity-
|
|
5
|
+
const RequireLocalazyAuth = require("./RequireLocalazyAuth-BDtwyPLH.js");
|
|
6
|
+
const FetchIdentity = require("./FetchIdentity-W-xq7F8q.js");
|
|
7
7
|
const admin = require("@strapi/strapi/admin");
|
|
8
8
|
const index = require("./index-CaY3BYnQ.js");
|
|
9
|
-
const hasModelChanged = require("./has-model-changed-
|
|
9
|
+
const hasModelChanged = require("./has-model-changed-BXqyvCRA.js");
|
|
10
10
|
const useTranslation = require("./useTranslation-BdIl-aLe.js");
|
|
11
11
|
const styled = require("styled-components");
|
|
12
12
|
const index$1 = require("./index-1he9s_bs.js");
|
package/dist/_chunks/{LocalazyGlobalSettings-ewETL3oG.js → LocalazyGlobalSettings-D7fyS9ih.js}
RENAMED
|
@@ -2,12 +2,12 @@
|
|
|
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 FetchIdentity = require("./FetchIdentity-
|
|
5
|
+
const FetchIdentity = require("./FetchIdentity-W-xq7F8q.js");
|
|
6
6
|
const admin = require("@strapi/strapi/admin");
|
|
7
7
|
const index = require("./index-CaY3BYnQ.js");
|
|
8
|
-
const RequireLocalazyAuth = require("./RequireLocalazyAuth-
|
|
9
|
-
const LanguagesSelector = require("./LanguagesSelector-
|
|
10
|
-
const strapiApiBase = require("./strapi-api-base-
|
|
8
|
+
const RequireLocalazyAuth = require("./RequireLocalazyAuth-BDtwyPLH.js");
|
|
9
|
+
const LanguagesSelector = require("./LanguagesSelector-Cq9JuASq.js");
|
|
10
|
+
const strapiApiBase = require("./strapi-api-base-S2_cFlNu.js");
|
|
11
11
|
require("./i18n-0dV2P-Hm.js");
|
|
12
12
|
const useTranslation = require("./useTranslation-BdIl-aLe.js");
|
|
13
13
|
class PluginSettingsService {
|
package/dist/_chunks/{LocalazyGlobalSettings-QvuLdsLe.mjs → LocalazyGlobalSettings-DCFs8AA1.mjs}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useEffect } from "react";
|
|
3
|
-
import { P as PluginSettingsService$1, c as cloneDeep, s as set, L as LocalazyIdentityProvider, F as FetchIdentity } from "./FetchIdentity-
|
|
3
|
+
import { P as PluginSettingsService$1, c as cloneDeep, s as set, L as LocalazyIdentityProvider, F as FetchIdentity } from "./FetchIdentity-B9hYlR1E.mjs";
|
|
4
4
|
import { Layouts } from "@strapi/strapi/admin";
|
|
5
5
|
import { c as Flex, B as Button, d as ForwardRef$4z, e as Box, A as Alert, T as Typography, F as Field, a as Toggle, M as MultiSelect, b as MultiSelectOption, D as Divider, S as SingleSelect, f as SingleSelectOption } from "./index-CgI_aKe_.mjs";
|
|
6
|
-
import { i as isEqual, R as RequireLocalazyAuth } from "./RequireLocalazyAuth-
|
|
7
|
-
import { L as LanguagesSelector, P as ProjectService } from "./LanguagesSelector-
|
|
8
|
-
import { c as createStrapiApiAxiosInstance } from "./strapi-api-base-
|
|
6
|
+
import { i as isEqual, R as RequireLocalazyAuth } from "./RequireLocalazyAuth-BmimcHYI.mjs";
|
|
7
|
+
import { L as LanguagesSelector, P as ProjectService } from "./LanguagesSelector-zGN0icsS.mjs";
|
|
8
|
+
import { c as createStrapiApiAxiosInstance } from "./strapi-api-base-BfIxEUh2.mjs";
|
|
9
9
|
import "./i18n-RoETLXdU.mjs";
|
|
10
10
|
import { u as useTranslation } from "./useTranslation-CZQ4lU1m.mjs";
|
|
11
11
|
class PluginSettingsService {
|
|
@@ -4,7 +4,7 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const reactRouterDom = require("react-router-dom");
|
|
6
6
|
const index = require("./index-CaY3BYnQ.js");
|
|
7
|
-
const entryExclusionService = require("./entry-exclusion-service-
|
|
7
|
+
const entryExclusionService = require("./entry-exclusion-service-BZkbrd3B.js");
|
|
8
8
|
require("./i18n-0dV2P-Hm.js");
|
|
9
9
|
const useTranslation = require("./useTranslation-BdIl-aLe.js");
|
|
10
10
|
const LocalazyPanel = () => {
|
|
@@ -2,7 +2,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState, useEffect } from "react";
|
|
3
3
|
import { useLocation } from "react-router-dom";
|
|
4
4
|
import { T as Typography, a as Toggle } from "./index-CgI_aKe_.mjs";
|
|
5
|
-
import EntryExclusionService from "./entry-exclusion-service-
|
|
5
|
+
import EntryExclusionService from "./entry-exclusion-service-COp5ZXUY.mjs";
|
|
6
6
|
import "./i18n-RoETLXdU.mjs";
|
|
7
7
|
import { u as useTranslation } from "./useTranslation-CZQ4lU1m.mjs";
|
|
8
8
|
const LocalazyPanel = () => {
|
|
@@ -2,7 +2,7 @@
|
|
|
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 entryExclusionService = require("./entry-exclusion-service-
|
|
5
|
+
const entryExclusionService = require("./entry-exclusion-service-BZkbrd3B.js");
|
|
6
6
|
require("./i18n-0dV2P-Hm.js");
|
|
7
7
|
const useTranslation = require("./useTranslation-BdIl-aLe.js");
|
|
8
8
|
const LocalazyStatusColumn = ({ data, model }) => {
|
package/dist/_chunks/{LocalazyStatusColumn-C81HewMg.mjs → LocalazyStatusColumn-CuGDwwZ8.mjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useEffect } from "react";
|
|
3
|
-
import EntryExclusionService from "./entry-exclusion-service-
|
|
3
|
+
import EntryExclusionService from "./entry-exclusion-service-COp5ZXUY.mjs";
|
|
4
4
|
import "./i18n-RoETLXdU.mjs";
|
|
5
5
|
import { u as useTranslation } from "./useTranslation-CZQ4lU1m.mjs";
|
|
6
6
|
const LocalazyStatusColumn = ({ data, model }) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const FetchIdentity = require("./FetchIdentity-
|
|
2
|
+
const FetchIdentity = require("./FetchIdentity-W-xq7F8q.js");
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
-
const index$1 = require("./index-
|
|
4
|
+
const index$1 = require("./index-BtofOkFA.js");
|
|
5
5
|
const index = require("./index-CaY3BYnQ.js");
|
|
6
6
|
const admin = require("@strapi/strapi/admin");
|
|
7
7
|
require("./i18n-0dV2P-Hm.js");
|
|
@@ -216,7 +216,7 @@ const RequireLocalazyAuth = ({ children }) => {
|
|
|
216
216
|
/* @__PURE__ */ jsxRuntime.jsx(admin.Layouts.Header, { title: t("common.localazy_plugin"), subtitle: t("common.localazy_plugin_description"), as: "h2" }),
|
|
217
217
|
/* @__PURE__ */ jsxRuntime.jsxs(index.Box, { marginLeft: 10, marginRight: 10, background: "neutral0", padding: 7, hasRadius: true, shadow: "tableShadow", children: [
|
|
218
218
|
/* @__PURE__ */ jsxRuntime.jsx(index.Typography, { variant: "epsilon", textColor: "neutral600", children: t("login.you_have_to_own_account_for_the_plugin_to_work_properly") }),
|
|
219
|
-
/* @__PURE__ */ jsxRuntime.jsx(index.Box, { paddingTop: 4, children: /* @__PURE__ */ jsxRuntime.jsx(index.Typography, { variant: "omega", children: /* @__PURE__ */ jsxRuntime.jsx("a", { href: `/admin/plugins/${index$1.PLUGIN_ID}
|
|
219
|
+
/* @__PURE__ */ jsxRuntime.jsx(index.Box, { paddingTop: 4, children: /* @__PURE__ */ jsxRuntime.jsx(index.Typography, { variant: "omega", children: /* @__PURE__ */ jsxRuntime.jsx("a", { href: `/admin/plugins/${index$1.PLUGIN_ID}/login`, children: t("login.login_with_localazy") }) }) })
|
|
220
220
|
] })
|
|
221
221
|
] });
|
|
222
222
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as SetCache, a as cacheHas, b as Symbol$1, e as eq, U as Uint8Array, d as setToArray, g as getAllKeys, f as getTag, i as isBuffer, h as Stack, j as isTypedArray, k as isArray, l as isObjectLike, u as useLocalazyIdentity } from "./FetchIdentity-
|
|
1
|
+
import { S as SetCache, a as cacheHas, b as Symbol$1, e as eq, U as Uint8Array, d as setToArray, g as getAllKeys, f as getTag, i as isBuffer, h as Stack, j as isTypedArray, k as isArray, l as isObjectLike, u as useLocalazyIdentity } from "./FetchIdentity-B9hYlR1E.mjs";
|
|
2
2
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
3
|
-
import { P as PLUGIN_ID } from "./index-
|
|
3
|
+
import { P as PLUGIN_ID } from "./index-B_KJR1Xk.mjs";
|
|
4
4
|
import { e as Box, T as Typography } from "./index-CgI_aKe_.mjs";
|
|
5
5
|
import { Layouts } from "@strapi/strapi/admin";
|
|
6
6
|
import "./i18n-RoETLXdU.mjs";
|
|
@@ -215,7 +215,7 @@ const RequireLocalazyAuth = ({ children }) => {
|
|
|
215
215
|
/* @__PURE__ */ jsx(Layouts.Header, { title: t("common.localazy_plugin"), subtitle: t("common.localazy_plugin_description"), as: "h2" }),
|
|
216
216
|
/* @__PURE__ */ jsxs(Box, { marginLeft: 10, marginRight: 10, background: "neutral0", padding: 7, hasRadius: true, shadow: "tableShadow", children: [
|
|
217
217
|
/* @__PURE__ */ jsx(Typography, { variant: "epsilon", textColor: "neutral600", children: t("login.you_have_to_own_account_for_the_plugin_to_work_properly") }),
|
|
218
|
-
/* @__PURE__ */ jsx(Box, { paddingTop: 4, children: /* @__PURE__ */ jsx(Typography, { variant: "omega", children: /* @__PURE__ */ jsx("a", { href: `/admin/plugins/${PLUGIN_ID}
|
|
218
|
+
/* @__PURE__ */ jsx(Box, { paddingTop: 4, children: /* @__PURE__ */ jsx(Typography, { variant: "omega", children: /* @__PURE__ */ jsx("a", { href: `/admin/plugins/${PLUGIN_ID}/login`, children: t("login.login_with_localazy") }) }) })
|
|
219
219
|
] })
|
|
220
220
|
] });
|
|
221
221
|
}
|
package/dist/_chunks/{entry-exclusion-service-CGV6iOkB.js → entry-exclusion-service-BZkbrd3B.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const strapiApiBase = require("./strapi-api-base-
|
|
3
|
+
const strapiApiBase = require("./strapi-api-base-S2_cFlNu.js");
|
|
4
4
|
const BASE_PATH = "/entry-exclusion";
|
|
5
5
|
const axiosInstance = strapiApiBase.createStrapiApiAxiosInstance();
|
|
6
6
|
class EntryExclusionService {
|
package/dist/_chunks/{entry-exclusion-service-BVPICve2.mjs → entry-exclusion-service-COp5ZXUY.mjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as createStrapiApiAxiosInstance } from "./strapi-api-base-
|
|
1
|
+
import { c as createStrapiApiAxiosInstance } from "./strapi-api-base-BfIxEUh2.mjs";
|
|
2
2
|
const BASE_PATH = "/entry-exclusion";
|
|
3
3
|
const axiosInstance = createStrapiApiAxiosInstance();
|
|
4
4
|
class EntryExclusionService {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const FetchIdentity = require("./FetchIdentity-
|
|
3
|
-
const strapiApiBase = require("./strapi-api-base-
|
|
2
|
+
const FetchIdentity = require("./FetchIdentity-W-xq7F8q.js");
|
|
3
|
+
const strapiApiBase = require("./strapi-api-base-S2_cFlNu.js");
|
|
4
4
|
const _commonjsHelpers = require("./_commonjsHelpers-Bc2YnDe1.js");
|
|
5
5
|
function baseGet(object, path) {
|
|
6
6
|
path = FetchIdentity.castPath(path, object);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { q as castPath, t as toKey, r as Set, d as setToArray, S as SetCache, a as cacheHas, P as PluginSettingsService } from "./FetchIdentity-
|
|
2
|
-
import { c as createStrapiApiAxiosInstance } from "./strapi-api-base-
|
|
1
|
+
import { q as castPath, t as toKey, r as Set, d as setToArray, S as SetCache, a as cacheHas, P as PluginSettingsService } from "./FetchIdentity-B9hYlR1E.mjs";
|
|
2
|
+
import { c as createStrapiApiAxiosInstance } from "./strapi-api-base-BfIxEUh2.mjs";
|
|
3
3
|
import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-DWwsNxpa.mjs";
|
|
4
4
|
function baseGet(object, path) {
|
|
5
5
|
path = castPath(path, object);
|
|
@@ -58,13 +58,13 @@ const index = {
|
|
|
58
58
|
try {
|
|
59
59
|
const contentManagerPlugin = app.getPlugin("content-manager");
|
|
60
60
|
if (contentManagerPlugin?.apis?.addEditViewSidePanel) {
|
|
61
|
-
const { default: LocalazyPanel } = await import("./LocalazyPanel-
|
|
61
|
+
const { default: LocalazyPanel } = await import("./LocalazyPanel-N7__R7p9.mjs");
|
|
62
62
|
const apis = contentManagerPlugin.apis;
|
|
63
63
|
apis.addEditViewSidePanel([LocalazyPanel]);
|
|
64
64
|
} else {
|
|
65
65
|
console.warn('Localazy Plugin: Content Manager "addEditViewSidePanel" API not available');
|
|
66
66
|
}
|
|
67
|
-
const { default: LocalazyStatusColumn } = await import("./LocalazyStatusColumn-
|
|
67
|
+
const { default: LocalazyStatusColumn } = await import("./LocalazyStatusColumn-CuGDwwZ8.mjs");
|
|
68
68
|
app.registerHook("Admin/CM/pages/ListView/inject-column-in-table", (params) => {
|
|
69
69
|
try {
|
|
70
70
|
console.log("Localazy: Hook called with params:", params);
|
|
@@ -112,7 +112,7 @@ const index = {
|
|
|
112
112
|
type: "info",
|
|
113
113
|
message: t("plugin_settings.bulk_action_updating_entries")
|
|
114
114
|
});
|
|
115
|
-
const { default: EntryExclusionService } = await import("./entry-exclusion-service-
|
|
115
|
+
const { default: EntryExclusionService } = await import("./entry-exclusion-service-COp5ZXUY.mjs");
|
|
116
116
|
const documentIds = documents.map((doc) => doc.documentId);
|
|
117
117
|
await EntryExclusionService.setMultipleEntriesExclusion(model, documentIds, true);
|
|
118
118
|
toggleNotification({
|
|
@@ -143,7 +143,7 @@ const index = {
|
|
|
143
143
|
type: "info",
|
|
144
144
|
message: t("plugin_settings.bulk_action_updating_entries")
|
|
145
145
|
});
|
|
146
|
-
const { default: EntryExclusionService } = await import("./entry-exclusion-service-
|
|
146
|
+
const { default: EntryExclusionService } = await import("./entry-exclusion-service-COp5ZXUY.mjs");
|
|
147
147
|
const documentIds = documents.map((doc) => doc.documentId);
|
|
148
148
|
await EntryExclusionService.setMultipleEntriesExclusion(model, documentIds, false);
|
|
149
149
|
toggleNotification({
|
|
@@ -173,13 +173,13 @@ const index = {
|
|
|
173
173
|
};
|
|
174
174
|
const addMenuLink = (app) => {
|
|
175
175
|
app.addMenuLink({
|
|
176
|
-
to:
|
|
176
|
+
to: `/plugins/${PLUGIN_ID}`,
|
|
177
177
|
icon: Localazy,
|
|
178
178
|
intlLabel: {
|
|
179
179
|
id: `${PLUGIN_ID}.name`,
|
|
180
180
|
defaultMessage: "Localazy"
|
|
181
181
|
},
|
|
182
|
-
Component: () => import("./LocalazyApp-
|
|
182
|
+
Component: () => import("./LocalazyApp-CxQTCwbi.mjs")
|
|
183
183
|
});
|
|
184
184
|
};
|
|
185
185
|
const addSettingsSection = (app) => {
|
|
@@ -200,7 +200,7 @@ const addSettingsSection = (app) => {
|
|
|
200
200
|
defaultMessage: "Localazy Settings"
|
|
201
201
|
},
|
|
202
202
|
to: `${PLUGIN_ID}/global-settings`,
|
|
203
|
-
Component: () => import("./LocalazyGlobalSettings-
|
|
203
|
+
Component: () => import("./LocalazyGlobalSettings-DCFs8AA1.mjs"),
|
|
204
204
|
permissions: []
|
|
205
205
|
},
|
|
206
206
|
// Content Transfer Setup
|
|
@@ -211,7 +211,7 @@ const addSettingsSection = (app) => {
|
|
|
211
211
|
defaultMessage: "Content Transfer Setup"
|
|
212
212
|
},
|
|
213
213
|
to: `${PLUGIN_ID}/content-transfer-setup`,
|
|
214
|
-
Component: () => import("./LocalazyContentTransferSetup-
|
|
214
|
+
Component: () => import("./LocalazyContentTransferSetup-DOHIserI.mjs"),
|
|
215
215
|
permissions: []
|
|
216
216
|
}
|
|
217
217
|
]
|
|
@@ -83,13 +83,13 @@ const index = {
|
|
|
83
83
|
try {
|
|
84
84
|
const contentManagerPlugin = app.getPlugin("content-manager");
|
|
85
85
|
if (contentManagerPlugin?.apis?.addEditViewSidePanel) {
|
|
86
|
-
const { default: LocalazyPanel } = await Promise.resolve().then(() => require("./LocalazyPanel-
|
|
86
|
+
const { default: LocalazyPanel } = await Promise.resolve().then(() => require("./LocalazyPanel-CDgAmxqx.js"));
|
|
87
87
|
const apis = contentManagerPlugin.apis;
|
|
88
88
|
apis.addEditViewSidePanel([LocalazyPanel]);
|
|
89
89
|
} else {
|
|
90
90
|
console.warn('Localazy Plugin: Content Manager "addEditViewSidePanel" API not available');
|
|
91
91
|
}
|
|
92
|
-
const { default: LocalazyStatusColumn } = await Promise.resolve().then(() => require("./LocalazyStatusColumn-
|
|
92
|
+
const { default: LocalazyStatusColumn } = await Promise.resolve().then(() => require("./LocalazyStatusColumn-CTjBaBqb.js"));
|
|
93
93
|
app.registerHook("Admin/CM/pages/ListView/inject-column-in-table", (params) => {
|
|
94
94
|
try {
|
|
95
95
|
console.log("Localazy: Hook called with params:", params);
|
|
@@ -137,7 +137,7 @@ const index = {
|
|
|
137
137
|
type: "info",
|
|
138
138
|
message: t("plugin_settings.bulk_action_updating_entries")
|
|
139
139
|
});
|
|
140
|
-
const { default: EntryExclusionService } = await Promise.resolve().then(() => require("./entry-exclusion-service-
|
|
140
|
+
const { default: EntryExclusionService } = await Promise.resolve().then(() => require("./entry-exclusion-service-BZkbrd3B.js"));
|
|
141
141
|
const documentIds = documents.map((doc) => doc.documentId);
|
|
142
142
|
await EntryExclusionService.setMultipleEntriesExclusion(model, documentIds, true);
|
|
143
143
|
toggleNotification({
|
|
@@ -168,7 +168,7 @@ const index = {
|
|
|
168
168
|
type: "info",
|
|
169
169
|
message: t("plugin_settings.bulk_action_updating_entries")
|
|
170
170
|
});
|
|
171
|
-
const { default: EntryExclusionService } = await Promise.resolve().then(() => require("./entry-exclusion-service-
|
|
171
|
+
const { default: EntryExclusionService } = await Promise.resolve().then(() => require("./entry-exclusion-service-BZkbrd3B.js"));
|
|
172
172
|
const documentIds = documents.map((doc) => doc.documentId);
|
|
173
173
|
await EntryExclusionService.setMultipleEntriesExclusion(model, documentIds, false);
|
|
174
174
|
toggleNotification({
|
|
@@ -198,13 +198,13 @@ const index = {
|
|
|
198
198
|
};
|
|
199
199
|
const addMenuLink = (app) => {
|
|
200
200
|
app.addMenuLink({
|
|
201
|
-
to:
|
|
201
|
+
to: `/plugins/${PLUGIN_ID}`,
|
|
202
202
|
icon: Localazy,
|
|
203
203
|
intlLabel: {
|
|
204
204
|
id: `${PLUGIN_ID}.name`,
|
|
205
205
|
defaultMessage: "Localazy"
|
|
206
206
|
},
|
|
207
|
-
Component: () => Promise.resolve().then(() => require("./LocalazyApp-
|
|
207
|
+
Component: () => Promise.resolve().then(() => require("./LocalazyApp-CTMwUa44.js"))
|
|
208
208
|
});
|
|
209
209
|
};
|
|
210
210
|
const addSettingsSection = (app) => {
|
|
@@ -225,7 +225,7 @@ const addSettingsSection = (app) => {
|
|
|
225
225
|
defaultMessage: "Localazy Settings"
|
|
226
226
|
},
|
|
227
227
|
to: `${PLUGIN_ID}/global-settings`,
|
|
228
|
-
Component: () => Promise.resolve().then(() => require("./LocalazyGlobalSettings-
|
|
228
|
+
Component: () => Promise.resolve().then(() => require("./LocalazyGlobalSettings-D7fyS9ih.js")),
|
|
229
229
|
permissions: []
|
|
230
230
|
},
|
|
231
231
|
// Content Transfer Setup
|
|
@@ -236,7 +236,7 @@ const addSettingsSection = (app) => {
|
|
|
236
236
|
defaultMessage: "Content Transfer Setup"
|
|
237
237
|
},
|
|
238
238
|
to: `${PLUGIN_ID}/content-transfer-setup`,
|
|
239
|
-
Component: () => Promise.resolve().then(() => require("./LocalazyContentTransferSetup-
|
|
239
|
+
Component: () => Promise.resolve().then(() => require("./LocalazyContentTransferSetup-DhSv2HJo.js")),
|
|
240
240
|
permissions: []
|
|
241
241
|
}
|
|
242
242
|
]
|
package/dist/admin/index.js
CHANGED
package/dist/admin/index.mjs
CHANGED
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.
|
|
814
|
+
const version$1 = "1.0.10";
|
|
815
815
|
const description = "The official Strapi Plugin by Localazy.";
|
|
816
816
|
const keywords = [
|
|
817
817
|
"strapi",
|
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.
|
|
801
|
+
const version$1 = "1.0.10";
|
|
802
802
|
const description = "The official Strapi Plugin by Localazy.";
|
|
803
803
|
const keywords = [
|
|
804
804
|
"strapi",
|