@localazy/strapi-plugin 1.0.4 → 1.0.9
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-4kkW9N7Y.js +981 -0
- package/dist/_chunks/FetchIdentity-BWSQAXt-.mjs +983 -0
- package/dist/_chunks/{LanguagesSelector-CeB7tVcb.mjs → LanguagesSelector-DwAGgpcR.mjs} +4 -2
- package/dist/_chunks/{LanguagesSelector-Bd8VFHib.js → LanguagesSelector-yWC_Yb_S.js} +12 -10
- package/dist/_chunks/{App-NRmSxuW3.js → LocalazyApp-DnaA768k.js} +136 -117
- package/dist/_chunks/{App-CtS6CrNn.mjs → LocalazyApp-zySanVTu.mjs} +32 -13
- package/dist/_chunks/{ContentTransferSetup-CeKXlzw_.mjs → LocalazyContentTransferSetup-C7qVIeix.mjs} +49 -456
- package/dist/_chunks/{ContentTransferSetup-DGs8MZPj.js → LocalazyContentTransferSetup-CeOM6bYA.js} +113 -520
- package/dist/_chunks/{GlobalSettings-rOwd0Y0E.mjs → LocalazyGlobalSettings-QvuLdsLe.mjs} +17 -8
- package/dist/_chunks/{GlobalSettings-CRMPRA3Y.js → LocalazyGlobalSettings-ewETL3oG.js} +61 -52
- package/dist/_chunks/LocalazyPanel-BXVLvFgD.js +83 -0
- package/dist/_chunks/LocalazyPanel-BotUsX-y.mjs +83 -0
- package/dist/_chunks/LocalazyStatusColumn-C81HewMg.mjs +51 -0
- package/dist/_chunks/LocalazyStatusColumn-Dt96YcGQ.js +51 -0
- package/dist/_chunks/{isEqual-CC-cEPwY.mjs → RequireLocalazyAuth-CDuyGCrT.mjs} +22 -1
- package/dist/_chunks/{isEqual-0M0aSdTT.js → RequireLocalazyAuth-CWBWETzC.js} +50 -29
- package/dist/_chunks/_commonjsHelpers-Bc2YnDe1.js +7 -0
- package/dist/_chunks/_commonjsHelpers-DWwsNxpa.mjs +8 -0
- package/dist/_chunks/en-CMWcM0nM.js +10 -0
- package/dist/_chunks/en-RX915msK.mjs +10 -0
- package/dist/_chunks/entry-exclusion-service-BVPICve2.mjs +60 -0
- package/dist/_chunks/entry-exclusion-service-CGV6iOkB.js +60 -0
- package/dist/_chunks/{has-model-changed-gNSOSMBa.js → has-model-changed-DVYRxVhM.js} +33 -32
- package/dist/_chunks/{has-model-changed-DViUIQHk.mjs → has-model-changed-DZL36gWh.mjs} +3 -2
- package/dist/_chunks/i18n-0dV2P-Hm.js +2378 -0
- package/dist/_chunks/i18n-RoETLXdU.mjs +2378 -0
- package/dist/_chunks/index-1he9s_bs.js +430 -0
- package/dist/_chunks/index-BIbKC7-V.mjs +432 -0
- package/dist/_chunks/index-CCxXsn7Z.js +254 -0
- package/dist/_chunks/{set-Cbi1yYuW.js → index-CaY3BYnQ.js} +878 -4379
- package/dist/_chunks/{set-Dnhh_SyE.mjs → index-CgI_aKe_.mjs} +906 -4408
- package/dist/_chunks/index-DsrYI6aB.mjs +231 -0
- package/dist/_chunks/initReactI18next-B0H8_DlW.js +60 -0
- package/dist/_chunks/initReactI18next-MHHxeg_9.mjs +61 -0
- package/dist/_chunks/{index-Dj68Ixl2.mjs → strapi-api-base-BE8VMlaA.js} +7 -234
- package/dist/_chunks/{index-Bbwk3kp3.js → strapi-api-base-DjeKGUw7.mjs} +15 -242
- package/dist/_chunks/useTranslation-BdIl-aLe.js +188 -0
- package/dist/_chunks/useTranslation-CZQ4lU1m.mjs +189 -0
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/components/LocalazyPanel.d.ts +4 -0
- package/dist/admin/src/components/LocalazyStatusColumn.d.ts +3 -0
- package/dist/admin/src/components/RequireLocalazyAuth.d.ts +6 -0
- package/dist/admin/src/index.d.ts +1 -0
- package/dist/admin/src/modules/entry-exclusion/services/entry-exclusion-service.d.ts +18 -0
- package/dist/admin/src/modules/plugin-settings/locale/en.d.ts +8 -0
- package/dist/admin/src/pages/LocalazyApp.d.ts +2 -0
- package/dist/admin/src/pages/LocalazyContentTransferSetup.d.ts +2 -0
- package/dist/admin/src/pages/LocalazyGlobalSettings.d.ts +2 -0
- package/dist/server/index.js +202 -35
- package/dist/server/index.mjs +202 -35
- package/dist/server/src/controllers/entry-exclusion-controller.d.ts +21 -0
- package/dist/server/src/controllers/index.d.ts +7 -0
- package/dist/server/src/core/index.d.ts +6 -0
- package/dist/server/src/index.d.ts +15 -0
- package/dist/server/src/routes/entry-exclusion-routes.d.ts +9 -0
- package/dist/server/src/services/entry-exclusion-service.d.ts +23 -0
- package/dist/server/src/services/index.d.ts +8 -0
- package/package.json +2 -2
- package/dist/_chunks/en-BTf8goGM.mjs +0 -8
- package/dist/_chunks/en-CRtsEFtl.js +0 -8
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { useNavigate, useLocation, NavLink, Routes, Route } from "react-router-dom";
|
|
3
|
-
import {
|
|
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 { P as
|
|
6
|
-
import { P as
|
|
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-BWSQAXt-.mjs";
|
|
6
|
+
import { P as PLUGIN_ID } from "./index-DsrYI6aB.mjs";
|
|
7
|
+
import { u as useTranslation } from "./useTranslation-CZQ4lU1m.mjs";
|
|
8
|
+
import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-DWwsNxpa.mjs";
|
|
9
|
+
import { c as createStrapiApiAxiosInstance } from "./strapi-api-base-DjeKGUw7.mjs";
|
|
10
|
+
import { P as ProjectService, L as LanguagesSelector } from "./LanguagesSelector-DwAGgpcR.mjs";
|
|
7
11
|
import { Layouts, Page } from "@strapi/strapi/admin";
|
|
8
|
-
import
|
|
12
|
+
import "./i18n-RoETLXdU.mjs";
|
|
13
|
+
import { h as hasModelChanged } from "./has-model-changed-DZL36gWh.mjs";
|
|
9
14
|
var PLUGIN_ROUTES = /* @__PURE__ */ ((PLUGIN_ROUTES2) => {
|
|
10
15
|
PLUGIN_ROUTES2["ROOT"] = "";
|
|
11
16
|
PLUGIN_ROUTES2["LOGIN"] = "login";
|
|
@@ -4978,10 +4983,16 @@ const Upload = (props) => {
|
|
|
4978
4983
|
useEffect(() => {
|
|
4979
4984
|
async function initComponent() {
|
|
4980
4985
|
setIsLoading(true);
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
|
|
4986
|
+
const [defaultLocale, sourceLanguage, modelChangedResult, localesCompatibleResult] = await Promise.all([
|
|
4987
|
+
getStrapiDefaultLocale(),
|
|
4988
|
+
getLocalazySourceLanguage(),
|
|
4989
|
+
hasModelChanged(),
|
|
4990
|
+
areLocalesCompatible(strapiDefaultLocale, localazySourceLanguage)
|
|
4991
|
+
]);
|
|
4992
|
+
setStrapiDefaultLocale(defaultLocale);
|
|
4993
|
+
setLocalazySourceLanguage(sourceLanguage);
|
|
4994
|
+
setModelChanged(modelChangedResult);
|
|
4995
|
+
setLocalesIncompatible(!localesCompatibleResult);
|
|
4985
4996
|
PluginSettingsService.updatePluginSettings({ defaultRoute: PLUGIN_ROUTES.UPLOAD });
|
|
4986
4997
|
setIsLoading(false);
|
|
4987
4998
|
}
|
|
@@ -5156,12 +5167,16 @@ const Download = (props) => {
|
|
|
5156
5167
|
useEffect(() => {
|
|
5157
5168
|
async function initComponent() {
|
|
5158
5169
|
setIsLoading(true);
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5170
|
+
const [modelChangedResult, localesCompatibleResult, project, globalSettings] = await Promise.all([
|
|
5171
|
+
hasModelChanged(),
|
|
5172
|
+
areLocalesCompatible(),
|
|
5173
|
+
ProjectService.getConnectedProject(),
|
|
5174
|
+
PluginSettingsService.getPluginSettings()
|
|
5175
|
+
]);
|
|
5176
|
+
setModelChanged(modelChangedResult);
|
|
5177
|
+
setLocalesIncompatible(!localesCompatibleResult);
|
|
5162
5178
|
const projectLanguagesWithoutDefaultLanguage = project?.languages?.filter((language) => language.id !== project.sourceLanguage) || [];
|
|
5163
5179
|
setProjectLanguages(projectLanguagesWithoutDefaultLanguage);
|
|
5164
|
-
const globalSettings = await PluginSettingsService.getPluginSettings();
|
|
5165
5180
|
setFormModel(globalSettings);
|
|
5166
5181
|
PluginSettingsService.updatePluginSettings({ defaultRoute: PLUGIN_ROUTES.DOWNLOAD });
|
|
5167
5182
|
setIsLoading(false);
|
|
@@ -5297,6 +5312,10 @@ const App = () => {
|
|
|
5297
5312
|
] })
|
|
5298
5313
|
] }) }) });
|
|
5299
5314
|
};
|
|
5315
|
+
const LocalazyApp = () => /* @__PURE__ */ jsxs(LocalazyIdentityProvider, { children: [
|
|
5316
|
+
/* @__PURE__ */ jsx(FetchIdentity, {}),
|
|
5317
|
+
/* @__PURE__ */ jsx(App, {})
|
|
5318
|
+
] });
|
|
5300
5319
|
export {
|
|
5301
|
-
|
|
5320
|
+
LocalazyApp as default
|
|
5302
5321
|
};
|