@localazy/strapi-plugin 1.1.3 → 1.3.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/dist/_chunks/{FetchIdentity-C8-hFqEW.mjs → FetchIdentity-BJGoZPpM.mjs} +1 -1
- package/dist/_chunks/{FetchIdentity-Dl2vx6zB.js → FetchIdentity-CtBRO-Cn.js} +1 -1
- package/dist/_chunks/{LanguagesSelector-DsW3aJ7p.js → LanguagesSelector-CNaKrS-m.js} +2 -2
- package/dist/_chunks/{LanguagesSelector-vu-Lj7L6.mjs → LanguagesSelector-DJxgCwgM.mjs} +2 -2
- package/dist/_chunks/{LocalazyApp-BIll8u_G.js → LocalazyApp-B1qCCEPe.js} +7 -7
- package/dist/_chunks/{LocalazyApp-Dxygk1mM.mjs → LocalazyApp-CJRpsTKr.mjs} +7 -7
- package/dist/_chunks/{LocalazyContentTransferSetup-BhEjlIgE.js → LocalazyContentTransferSetup-CCxiLHdG.js} +3 -3
- package/dist/_chunks/{LocalazyContentTransferSetup-Cz88htly.mjs → LocalazyContentTransferSetup-CLAWn95U.mjs} +3 -3
- package/dist/_chunks/{LocalazyGlobalSettings-B3Z8f4G8.js → LocalazyGlobalSettings-BJ5qfFfK.js} +4 -4
- package/dist/_chunks/{LocalazyGlobalSettings-CgOADY93.mjs → LocalazyGlobalSettings-Z-4Ykc_J.mjs} +4 -4
- package/dist/_chunks/{LocalazyPanel-BjrSVZpI.mjs → LocalazyPanel-CL_mzzfD.mjs} +1 -1
- package/dist/_chunks/{LocalazyPanel-CQ8-K88T.js → LocalazyPanel-DE3TtHOQ.js} +1 -1
- package/dist/_chunks/{LocalazyStatusColumn-CA34yhSE.js → LocalazyStatusColumn-BMLcklG-.js} +1 -1
- package/dist/_chunks/{LocalazyStatusColumn-D0b2LCpg.mjs → LocalazyStatusColumn-R5n6q_cx.mjs} +1 -1
- package/dist/_chunks/{RequireLocalazyAuth-DpimzlRh.mjs → RequireLocalazyAuth-Dzsu6UNS.mjs} +2 -2
- package/dist/_chunks/{RequireLocalazyAuth-BPsrUlFm.js → RequireLocalazyAuth-WKKFdQlR.js} +2 -2
- package/dist/_chunks/{entry-exclusion-service-nJswJPwF.js → entry-exclusion-service-CggmAKxq.js} +1 -1
- package/dist/_chunks/{entry-exclusion-service-DNJZg3U2.mjs → entry-exclusion-service-DxqTlZFR.mjs} +1 -1
- package/dist/_chunks/{has-model-changed-BnL6D-eR.js → has-model-changed-BR53L6pA.js} +2 -2
- package/dist/_chunks/{has-model-changed-D6fjlIdc.mjs → has-model-changed-FMGVcFHU.mjs} +2 -2
- package/dist/_chunks/{index-BXPaiO0d.js → index-BmxGKspv.js} +7 -7
- package/dist/_chunks/{index-CPBTdynk.mjs → index-toauQlIK.mjs} +7 -7
- package/dist/_chunks/strapi-api-base-BflplVsH.mjs +23 -0
- package/dist/_chunks/strapi-api-base-CT9lknwW.js +22 -0
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/modules/@common/api/strapi-api-base.d.ts +19 -4
- package/dist/admin/src/modules/@common/utils/sort-by-model-name.d.ts +1 -1
- package/dist/server/index.js +1 -2
- package/dist/server/index.mjs +1 -2
- package/package.json +1 -2
- package/dist/_chunks/strapi-api-base-DkjMgMHl.js +0 -2425
- package/dist/_chunks/strapi-api-base-GgrMbYak.mjs +0 -2426
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as createStrapiApiAxiosInstance } from "./strapi-api-base-
|
|
1
|
+
import { c as createStrapiApiAxiosInstance } from "./strapi-api-base-BflplVsH.mjs";
|
|
2
2
|
import { U as darkTheme, V as lightTheme } from "./index-CHjIMO9T.mjs";
|
|
3
3
|
import { createGlobalStyle } from "styled-components";
|
|
4
4
|
import { useState, useMemo, createContext, useContext, useEffect } from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const strapiApiBase = require("./strapi-api-base-
|
|
2
|
+
const strapiApiBase = require("./strapi-api-base-CT9lknwW.js");
|
|
3
3
|
const index = require("./index-BK7lmZSN.js");
|
|
4
4
|
const styled = require("styled-components");
|
|
5
5
|
const React = require("react");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const strapiApiBase = require("./strapi-api-base-
|
|
2
|
+
const strapiApiBase = require("./strapi-api-base-CT9lknwW.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-CtBRO-Cn.js");
|
|
6
6
|
const index = require("./index-BK7lmZSN.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-BflplVsH.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-BJGoZPpM.mjs";
|
|
5
5
|
import { F as Field, M as MultiSelect, b as MultiSelectOption } from "./index-CHjIMO9T.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-BK7lmZSN.js");
|
|
6
6
|
const React = require("react");
|
|
7
|
-
const FetchIdentity = require("./FetchIdentity-
|
|
8
|
-
const index = require("./index-
|
|
7
|
+
const FetchIdentity = require("./FetchIdentity-CtBRO-Cn.js");
|
|
8
|
+
const index = require("./index-BmxGKspv.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-CT9lknwW.js");
|
|
12
|
+
const LanguagesSelector = require("./LanguagesSelector-CNaKrS-m.js");
|
|
13
13
|
const admin = require("@strapi/strapi/admin");
|
|
14
14
|
require("./i18n-CAsbU4pi.js");
|
|
15
|
-
const hasModelChanged = require("./has-model-changed-
|
|
15
|
+
const hasModelChanged = require("./has-model-changed-BR53L6pA.js");
|
|
16
16
|
const styled = require("styled-components");
|
|
17
17
|
const _interopDefault = (e2) => e2 && e2.__esModule ? e2 : { default: e2 };
|
|
18
18
|
const React__default = /* @__PURE__ */ _interopDefault(React);
|
|
@@ -1591,7 +1591,7 @@ class LocalazyUploadService {
|
|
|
1591
1591
|
const result = await strapiApiInstance2.post(`${BASE_PATH$2}/upload`, data);
|
|
1592
1592
|
return result.data;
|
|
1593
1593
|
} catch (e2) {
|
|
1594
|
-
throw e2.data;
|
|
1594
|
+
throw e2.response?.data ?? e2;
|
|
1595
1595
|
}
|
|
1596
1596
|
}
|
|
1597
1597
|
}
|
|
@@ -5167,7 +5167,7 @@ class LocalazyDownloadService {
|
|
|
5167
5167
|
const result = await strapiApiInstance2.post(`${BASE_PATH$1}/download`, data);
|
|
5168
5168
|
return result.data;
|
|
5169
5169
|
} catch (e2) {
|
|
5170
|
-
throw e2.data;
|
|
5170
|
+
throw e2.response?.data ?? e2;
|
|
5171
5171
|
}
|
|
5172
5172
|
}
|
|
5173
5173
|
}
|
|
@@ -2,15 +2,15 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
|
2
2
|
import { useNavigate, useLocation, NavLink, useParams, Routes, Route } from "react-router-dom";
|
|
3
3
|
import { o as ForwardRef$2H, p as ForwardRef$d, q as ForwardRef$3P, r as ForwardRef$4j, c as Flex, L as Loader, e as Button, B as Box, T as Typography, g as Link, s as SubNav, t as SubNavHeader, u as SubNavSections, v as SubNavSection, w as SubNavLink, x as ForwardRef$L, G as Grid, j as Divider, f as ForwardRef$3, A as Alert, D as Dialog, y as ForwardRef$4L, z as ForwardRef$4N, P as Pagination, E as PreviousLink, H as PageLink, I as Dots, N as NextLink, J as lodashExports, K as ForwardRef$j, i as ForwardRef$2x, F as Field, O as DatePicker$1, Q as Tabs, R as ForwardRef$57, l as DesignSystemProvider } from "./index-CHjIMO9T.mjs";
|
|
4
4
|
import React__default, { useState, useEffect, useCallback, useMemo, useRef } from "react";
|
|
5
|
-
import { u as useLocalazyIdentity, w as LocalazyUserService, x as emptyIdentity, P as PluginSettingsService, c as cloneDeep, s as set, g as getDefaultTheme, H as HeadingFixGlobalStyle, L as LocalazyIdentityProvider, F as FetchIdentity } from "./FetchIdentity-
|
|
6
|
-
import { P as PLUGIN_ID } from "./index-
|
|
5
|
+
import { u as useLocalazyIdentity, w as LocalazyUserService, x as emptyIdentity, P as PluginSettingsService, c as cloneDeep, s as set, g as getDefaultTheme, H as HeadingFixGlobalStyle, L as LocalazyIdentityProvider, F as FetchIdentity } from "./FetchIdentity-BJGoZPpM.mjs";
|
|
6
|
+
import { P as PLUGIN_ID } from "./index-toauQlIK.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-BflplVsH.mjs";
|
|
10
|
+
import { P as ProjectService, L as LanguagesSelector } from "./LanguagesSelector-DJxgCwgM.mjs";
|
|
11
11
|
import { Layouts, Page } from "@strapi/strapi/admin";
|
|
12
12
|
import "./i18n-QelOdIB2.mjs";
|
|
13
|
-
import { h as hasModelChanged } from "./has-model-changed-
|
|
13
|
+
import { h as hasModelChanged } from "./has-model-changed-FMGVcFHU.mjs";
|
|
14
14
|
import { useTheme } from "styled-components";
|
|
15
15
|
var PLUGIN_ROUTES = /* @__PURE__ */ ((PLUGIN_ROUTES2) => {
|
|
16
16
|
PLUGIN_ROUTES2["ROOT"] = "";
|
|
@@ -1587,7 +1587,7 @@ class LocalazyUploadService {
|
|
|
1587
1587
|
const result = await strapiApiInstance2.post(`${BASE_PATH$2}/upload`, data);
|
|
1588
1588
|
return result.data;
|
|
1589
1589
|
} catch (e2) {
|
|
1590
|
-
throw e2.data;
|
|
1590
|
+
throw e2.response?.data ?? e2;
|
|
1591
1591
|
}
|
|
1592
1592
|
}
|
|
1593
1593
|
}
|
|
@@ -5163,7 +5163,7 @@ class LocalazyDownloadService {
|
|
|
5163
5163
|
const result = await strapiApiInstance2.post(`${BASE_PATH$1}/download`, data);
|
|
5164
5164
|
return result.data;
|
|
5165
5165
|
} catch (e2) {
|
|
5166
|
-
throw e2.data;
|
|
5166
|
+
throw e2.response?.data ?? e2;
|
|
5167
5167
|
}
|
|
5168
5168
|
}
|
|
5169
5169
|
}
|
|
@@ -3,10 +3,10 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const index = require("./index-BK7lmZSN.js");
|
|
5
5
|
const React = require("react");
|
|
6
|
-
const RequireLocalazyAuth = require("./RequireLocalazyAuth-
|
|
7
|
-
const FetchIdentity = require("./FetchIdentity-
|
|
6
|
+
const RequireLocalazyAuth = require("./RequireLocalazyAuth-WKKFdQlR.js");
|
|
7
|
+
const FetchIdentity = require("./FetchIdentity-CtBRO-Cn.js");
|
|
8
8
|
const admin = require("@strapi/strapi/admin");
|
|
9
|
-
const hasModelChanged = require("./has-model-changed-
|
|
9
|
+
const hasModelChanged = require("./has-model-changed-BR53L6pA.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");
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { C as CheckboxImpl, B as Box, m as Accordion, c as Flex, n as SwitchImpl, T as Typography, e as Button, d as ForwardRef$4z, A as Alert, j as Divider, l as DesignSystemProvider } from "./index-CHjIMO9T.mjs";
|
|
3
3
|
import { forwardRef, useState, useEffect } from "react";
|
|
4
|
-
import { i as isEqual, R as RequireLocalazyAuth } from "./RequireLocalazyAuth-
|
|
5
|
-
import { s as set, n as keys, o as isArrayLike, p as arrayEach, l as isArray, q as isObject, P as PluginSettingsService, c as cloneDeep, g as getDefaultTheme, H as HeadingFixGlobalStyle, L as LocalazyIdentityProvider, F as FetchIdentity } from "./FetchIdentity-
|
|
4
|
+
import { i as isEqual, R as RequireLocalazyAuth } from "./RequireLocalazyAuth-Dzsu6UNS.mjs";
|
|
5
|
+
import { s as set, n as keys, o as isArrayLike, p as arrayEach, l as isArray, q as isObject, P as PluginSettingsService, c as cloneDeep, g as getDefaultTheme, H as HeadingFixGlobalStyle, L as LocalazyIdentityProvider, F as FetchIdentity } from "./FetchIdentity-BJGoZPpM.mjs";
|
|
6
6
|
import { Layouts } from "@strapi/strapi/admin";
|
|
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-FMGVcFHU.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";
|
package/dist/_chunks/{LocalazyGlobalSettings-B3Z8f4G8.js → LocalazyGlobalSettings-BJ5qfFfK.js}
RENAMED
|
@@ -3,12 +3,12 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const index = require("./index-BK7lmZSN.js");
|
|
5
5
|
const React = require("react");
|
|
6
|
-
const FetchIdentity = require("./FetchIdentity-
|
|
6
|
+
const FetchIdentity = require("./FetchIdentity-CtBRO-Cn.js");
|
|
7
7
|
const admin = require("@strapi/strapi/admin");
|
|
8
|
-
const RequireLocalazyAuth = require("./RequireLocalazyAuth-
|
|
9
|
-
const LanguagesSelector = require("./LanguagesSelector-
|
|
8
|
+
const RequireLocalazyAuth = require("./RequireLocalazyAuth-WKKFdQlR.js");
|
|
9
|
+
const LanguagesSelector = require("./LanguagesSelector-CNaKrS-m.js");
|
|
10
10
|
const useTranslation = require("./useTranslation-BdIl-aLe.js");
|
|
11
|
-
const strapiApiBase = require("./strapi-api-base-
|
|
11
|
+
const strapiApiBase = require("./strapi-api-base-CT9lknwW.js");
|
|
12
12
|
require("./i18n-CAsbU4pi.js");
|
|
13
13
|
const WEBHOOK_PATH = "/api/localazy/public/transfer/download";
|
|
14
14
|
const LOCALAZY_DOCS_URL = "https://localazy.com/docs/general/webhooks";
|
package/dist/_chunks/{LocalazyGlobalSettings-CgOADY93.mjs → LocalazyGlobalSettings-Z-4Ykc_J.mjs}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { c as Flex, L as Loader, T as Typography, B as Box, A as Alert, d as ForwardRef$4z, e as Button, f as ForwardRef$3, g as Link, h as ForwardRef$2l, D as Dialog, F as Field, i as ForwardRef$2x, a as Toggle, M as MultiSelect, b as MultiSelectOption, j as Divider, S as SingleSelect, k as SingleSelectOption, l as DesignSystemProvider } from "./index-CHjIMO9T.mjs";
|
|
3
3
|
import { useState, useEffect } from "react";
|
|
4
|
-
import { P as PluginSettingsService$1, c as cloneDeep, s as set, g as getDefaultTheme, H as HeadingFixGlobalStyle, L as LocalazyIdentityProvider, F as FetchIdentity } from "./FetchIdentity-
|
|
4
|
+
import { P as PluginSettingsService$1, c as cloneDeep, s as set, g as getDefaultTheme, H as HeadingFixGlobalStyle, L as LocalazyIdentityProvider, F as FetchIdentity } from "./FetchIdentity-BJGoZPpM.mjs";
|
|
5
5
|
import { Layouts } from "@strapi/strapi/admin";
|
|
6
|
-
import { i as isEqual, R as RequireLocalazyAuth } from "./RequireLocalazyAuth-
|
|
7
|
-
import { P as ProjectService, L as LanguagesSelector } from "./LanguagesSelector-
|
|
6
|
+
import { i as isEqual, R as RequireLocalazyAuth } from "./RequireLocalazyAuth-Dzsu6UNS.mjs";
|
|
7
|
+
import { P as ProjectService, L as LanguagesSelector } from "./LanguagesSelector-DJxgCwgM.mjs";
|
|
8
8
|
import { u as useTranslation } from "./useTranslation-CZQ4lU1m.mjs";
|
|
9
|
-
import { c as createStrapiApiAxiosInstance } from "./strapi-api-base-
|
|
9
|
+
import { c as createStrapiApiAxiosInstance } from "./strapi-api-base-BflplVsH.mjs";
|
|
10
10
|
import "./i18n-QelOdIB2.mjs";
|
|
11
11
|
const WEBHOOK_PATH = "/api/localazy/public/transfer/download";
|
|
12
12
|
const LOCALAZY_DOCS_URL = "https://localazy.com/docs/general/webhooks";
|
|
@@ -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-CHjIMO9T.mjs";
|
|
5
|
-
import EntryExclusionService from "./entry-exclusion-service-
|
|
5
|
+
import EntryExclusionService from "./entry-exclusion-service-DxqTlZFR.mjs";
|
|
6
6
|
import "./i18n-QelOdIB2.mjs";
|
|
7
7
|
import { u as useTranslation } from "./useTranslation-CZQ4lU1m.mjs";
|
|
8
8
|
const LocalazyPanel = () => {
|
|
@@ -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-BK7lmZSN.js");
|
|
7
|
-
const entryExclusionService = require("./entry-exclusion-service-
|
|
7
|
+
const entryExclusionService = require("./entry-exclusion-service-CggmAKxq.js");
|
|
8
8
|
require("./i18n-CAsbU4pi.js");
|
|
9
9
|
const useTranslation = require("./useTranslation-BdIl-aLe.js");
|
|
10
10
|
const LocalazyPanel = () => {
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const styled = require("styled-components");
|
|
6
|
-
const entryExclusionService = require("./entry-exclusion-service-
|
|
6
|
+
const entryExclusionService = require("./entry-exclusion-service-CggmAKxq.js");
|
|
7
7
|
require("./i18n-CAsbU4pi.js");
|
|
8
8
|
const useTranslation = require("./useTranslation-BdIl-aLe.js");
|
|
9
9
|
const LocalazyStatusColumn = ({ data, model }) => {
|
package/dist/_chunks/{LocalazyStatusColumn-D0b2LCpg.mjs → LocalazyStatusColumn-R5n6q_cx.mjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useEffect } from "react";
|
|
3
3
|
import { useTheme } from "styled-components";
|
|
4
|
-
import EntryExclusionService from "./entry-exclusion-service-
|
|
4
|
+
import EntryExclusionService from "./entry-exclusion-service-DxqTlZFR.mjs";
|
|
5
5
|
import "./i18n-QelOdIB2.mjs";
|
|
6
6
|
import { u as useTranslation } from "./useTranslation-CZQ4lU1m.mjs";
|
|
7
7
|
const LocalazyStatusColumn = ({ data, model }) => {
|
|
@@ -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, f as getAllKeys, h as getTag, i as isBuffer, j as Stack, k as isTypedArray, l as isArray, m 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, f as getAllKeys, h as getTag, i as isBuffer, j as Stack, k as isTypedArray, l as isArray, m as isObjectLike, u as useLocalazyIdentity } from "./FetchIdentity-BJGoZPpM.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-toauQlIK.mjs";
|
|
4
4
|
import { B as Box, T as Typography } from "./index-CHjIMO9T.mjs";
|
|
5
5
|
import { Layouts } from "@strapi/strapi/admin";
|
|
6
6
|
import "./i18n-QelOdIB2.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const FetchIdentity = require("./FetchIdentity-
|
|
2
|
+
const FetchIdentity = require("./FetchIdentity-CtBRO-Cn.js");
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
-
const index$1 = require("./index-
|
|
4
|
+
const index$1 = require("./index-BmxGKspv.js");
|
|
5
5
|
const index = require("./index-BK7lmZSN.js");
|
|
6
6
|
const admin = require("@strapi/strapi/admin");
|
|
7
7
|
require("./i18n-CAsbU4pi.js");
|
package/dist/_chunks/{entry-exclusion-service-nJswJPwF.js → entry-exclusion-service-CggmAKxq.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-CT9lknwW.js");
|
|
4
4
|
const BASE_PATH = "/entry-exclusion";
|
|
5
5
|
const axiosInstance = strapiApiBase.createStrapiApiAxiosInstance();
|
|
6
6
|
class EntryExclusionService {
|
package/dist/_chunks/{entry-exclusion-service-DNJZg3U2.mjs → entry-exclusion-service-DxqTlZFR.mjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as createStrapiApiAxiosInstance } from "./strapi-api-base-
|
|
1
|
+
import { c as createStrapiApiAxiosInstance } from "./strapi-api-base-BflplVsH.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-CtBRO-Cn.js");
|
|
3
|
+
const strapiApiBase = require("./strapi-api-base-CT9lknwW.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 { r as castPath, t as toKey, v 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 { r as castPath, t as toKey, v as Set, d as setToArray, S as SetCache, a as cacheHas, P as PluginSettingsService } from "./FetchIdentity-BJGoZPpM.mjs";
|
|
2
|
+
import { c as createStrapiApiAxiosInstance } from "./strapi-api-base-BflplVsH.mjs";
|
|
3
3
|
import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-DWwsNxpa.mjs";
|
|
4
4
|
function baseGet(object, path) {
|
|
5
5
|
path = castPath(path, object);
|
|
@@ -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-DE3TtHOQ.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-BMLcklG-.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-CggmAKxq.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-CggmAKxq.js"));
|
|
172
172
|
const documentIds = documents.map((doc) => doc.documentId);
|
|
173
173
|
await EntryExclusionService.setMultipleEntriesExclusion(model, documentIds, false);
|
|
174
174
|
toggleNotification({
|
|
@@ -204,7 +204,7 @@ const addMenuLink = (app) => {
|
|
|
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-B1qCCEPe.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-BJ5qfFfK.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-CCxiLHdG.js")),
|
|
240
240
|
permissions: []
|
|
241
241
|
}
|
|
242
242
|
]
|
|
@@ -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-CL_mzzfD.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-R5n6q_cx.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-DxqTlZFR.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-DxqTlZFR.mjs");
|
|
147
147
|
const documentIds = documents.map((doc) => doc.documentId);
|
|
148
148
|
await EntryExclusionService.setMultipleEntriesExclusion(model, documentIds, false);
|
|
149
149
|
toggleNotification({
|
|
@@ -179,7 +179,7 @@ const addMenuLink = (app) => {
|
|
|
179
179
|
id: `${PLUGIN_ID}.name`,
|
|
180
180
|
defaultMessage: "Localazy"
|
|
181
181
|
},
|
|
182
|
-
Component: () => import("./LocalazyApp-
|
|
182
|
+
Component: () => import("./LocalazyApp-CJRpsTKr.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-Z-4Ykc_J.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-CLAWn95U.mjs"),
|
|
215
215
|
permissions: []
|
|
216
216
|
}
|
|
217
217
|
]
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { getFetchClient } from "@strapi/strapi/admin";
|
|
2
|
+
import { P as PLUGIN_ID } from "./index-toauQlIK.mjs";
|
|
3
|
+
const BASE_PLUGIN_PATH = `/${PLUGIN_ID}`;
|
|
4
|
+
const LOCALAZY_HEADER = { "X-Localazy-Initiated-By": "strapi-plugin-localazy" };
|
|
5
|
+
const withPluginHeader = (config) => ({
|
|
6
|
+
...config ?? {},
|
|
7
|
+
headers: { ...config?.headers ?? {}, ...LOCALAZY_HEADER }
|
|
8
|
+
});
|
|
9
|
+
const createStrapiApiAxiosInstance = (baseUrl = null) => {
|
|
10
|
+
const prefix = baseUrl ?? BASE_PLUGIN_PATH;
|
|
11
|
+
const buildUrl = (url) => `${prefix}${url}`;
|
|
12
|
+
let cachedClient = null;
|
|
13
|
+
const client = () => cachedClient ??= getFetchClient();
|
|
14
|
+
return {
|
|
15
|
+
get: (url, config) => client().get(buildUrl(url), withPluginHeader(config)),
|
|
16
|
+
post: (url, data, config) => client().post(buildUrl(url), data, withPluginHeader(config)),
|
|
17
|
+
put: (url, data, config) => client().put(buildUrl(url), data, withPluginHeader(config)),
|
|
18
|
+
delete: (url, config) => client().del(buildUrl(url), withPluginHeader(config))
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
createStrapiApiAxiosInstance as c
|
|
23
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const admin = require("@strapi/strapi/admin");
|
|
3
|
+
const index = require("./index-BmxGKspv.js");
|
|
4
|
+
const BASE_PLUGIN_PATH = `/${index.PLUGIN_ID}`;
|
|
5
|
+
const LOCALAZY_HEADER = { "X-Localazy-Initiated-By": "strapi-plugin-localazy" };
|
|
6
|
+
const withPluginHeader = (config) => ({
|
|
7
|
+
...config ?? {},
|
|
8
|
+
headers: { ...config?.headers ?? {}, ...LOCALAZY_HEADER }
|
|
9
|
+
});
|
|
10
|
+
const createStrapiApiAxiosInstance = (baseUrl = null) => {
|
|
11
|
+
const prefix = baseUrl ?? BASE_PLUGIN_PATH;
|
|
12
|
+
const buildUrl = (url) => `${prefix}${url}`;
|
|
13
|
+
let cachedClient = null;
|
|
14
|
+
const client = () => cachedClient ??= admin.getFetchClient();
|
|
15
|
+
return {
|
|
16
|
+
get: (url, config) => client().get(buildUrl(url), withPluginHeader(config)),
|
|
17
|
+
post: (url, data, config) => client().post(buildUrl(url), data, withPluginHeader(config)),
|
|
18
|
+
put: (url, data, config) => client().put(buildUrl(url), data, withPluginHeader(config)),
|
|
19
|
+
delete: (url, config) => client().del(buildUrl(url), withPluginHeader(config))
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
exports.createStrapiApiAxiosInstance = createStrapiApiAxiosInstance;
|
package/dist/admin/index.js
CHANGED
package/dist/admin/index.mjs
CHANGED
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Wrapper around Strapi's `getFetchClient` that preserves the existing
|
|
3
|
+
* `.get / .post / .put / .delete` call shape used by every plugin service.
|
|
4
|
+
*
|
|
5
|
+
* Auth (Authorization header) and the Strapi backend base URL are handled by
|
|
6
|
+
* `getFetchClient` itself; we only prepend the plugin path and attach the
|
|
7
|
+
* plugin-identifying header on every request.
|
|
3
8
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
9
|
+
type RequestConfig = {
|
|
10
|
+
params?: any;
|
|
11
|
+
signal?: AbortSignal;
|
|
12
|
+
headers?: Record<string, string>;
|
|
13
|
+
validateStatus?: ((status: number) => boolean) | null;
|
|
14
|
+
};
|
|
15
|
+
declare const createStrapiApiAxiosInstance: (baseUrl?: string | null) => {
|
|
16
|
+
get: (url: string, config?: RequestConfig) => Promise<import("@strapi/strapi/admin").FetchResponse<any>>;
|
|
17
|
+
post: (url: string, data?: any, config?: RequestConfig) => Promise<import("@strapi/strapi/admin").FetchResponse<any>>;
|
|
18
|
+
put: (url: string, data?: any, config?: RequestConfig) => Promise<import("@strapi/strapi/admin").FetchResponse<any>>;
|
|
19
|
+
delete: (url: string, config?: RequestConfig) => Promise<import("@strapi/strapi/admin").FetchResponse<any>>;
|
|
20
|
+
};
|
|
21
|
+
export { createStrapiApiAxiosInstance };
|
|
@@ -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>) => 0 | 1 | -1;
|
|
2
2
|
export default _default;
|
package/dist/server/index.js
CHANGED
|
@@ -20532,7 +20532,7 @@ var distExports = dist$1.exports;
|
|
|
20532
20532
|
const io = /* @__PURE__ */ getDefaultExportFromCjs(distExports);
|
|
20533
20533
|
const { Server: Server2, Namespace, Socket: Socket3 } = io;
|
|
20534
20534
|
const name = "@localazy/strapi-plugin";
|
|
20535
|
-
const version = "1.
|
|
20535
|
+
const version = "1.3.0";
|
|
20536
20536
|
const description = "The official Strapi Plugin by Localazy.";
|
|
20537
20537
|
const keywords = [
|
|
20538
20538
|
"strapi",
|
|
@@ -20620,7 +20620,6 @@ const devDependencies = {
|
|
|
20620
20620
|
"@types/react-dom": "^19.0.2",
|
|
20621
20621
|
"@typescript-eslint/eslint-plugin": "^8.21.0",
|
|
20622
20622
|
"@typescript-eslint/parser": "^8.21.0",
|
|
20623
|
-
axios: "^1.7.9",
|
|
20624
20623
|
chalk: "^5.4.1",
|
|
20625
20624
|
"conventional-changelog": "^5.1.0",
|
|
20626
20625
|
"conventional-changelog-cli": "^4.1.0",
|
package/dist/server/index.mjs
CHANGED
|
@@ -20519,7 +20519,7 @@ var distExports = dist$1.exports;
|
|
|
20519
20519
|
const io = /* @__PURE__ */ getDefaultExportFromCjs(distExports);
|
|
20520
20520
|
const { Server: Server2, Namespace, Socket: Socket3 } = io;
|
|
20521
20521
|
const name = "@localazy/strapi-plugin";
|
|
20522
|
-
const version = "1.
|
|
20522
|
+
const version = "1.3.0";
|
|
20523
20523
|
const description = "The official Strapi Plugin by Localazy.";
|
|
20524
20524
|
const keywords = [
|
|
20525
20525
|
"strapi",
|
|
@@ -20607,7 +20607,6 @@ const devDependencies = {
|
|
|
20607
20607
|
"@types/react-dom": "^19.0.2",
|
|
20608
20608
|
"@typescript-eslint/eslint-plugin": "^8.21.0",
|
|
20609
20609
|
"@typescript-eslint/parser": "^8.21.0",
|
|
20610
|
-
axios: "^1.7.9",
|
|
20611
20610
|
chalk: "^5.4.1",
|
|
20612
20611
|
"conventional-changelog": "^5.1.0",
|
|
20613
20612
|
"conventional-changelog-cli": "^4.1.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@localazy/strapi-plugin",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "The official Strapi Plugin by Localazy.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"strapi",
|
|
@@ -94,7 +94,6 @@
|
|
|
94
94
|
"@types/react-dom": "^19.0.2",
|
|
95
95
|
"@typescript-eslint/eslint-plugin": "^8.21.0",
|
|
96
96
|
"@typescript-eslint/parser": "^8.21.0",
|
|
97
|
-
"axios": "^1.7.9",
|
|
98
97
|
"chalk": "^5.4.1",
|
|
99
98
|
"conventional-changelog": "^5.1.0",
|
|
100
99
|
"conventional-changelog-cli": "^4.1.0",
|