@localazy/strapi-plugin 1.0.0-beta.1 → 1.0.0-beta.3
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/{App-BSFfgZKU.mjs → App-1cXVSnL0.mjs} +59 -32
- package/dist/_chunks/{App-D1QaIMHX.js → App-CU_T8iLT.js} +66 -39
- package/dist/_chunks/{ContentTransferSetup-DtjcF_jM.mjs → ContentTransferSetup-D2R15gJS.mjs} +27 -8
- package/dist/_chunks/{ContentTransferSetup-DHXJIxAp.js → ContentTransferSetup-DTcnul1w.js} +27 -8
- package/dist/_chunks/{GlobalSettings-BcdibqNS.mjs → GlobalSettings-7pI5vIna.mjs} +8 -5
- package/dist/_chunks/{GlobalSettings-BON3kjHK.js → GlobalSettings-D_jeqPWF.js} +8 -5
- package/dist/_chunks/{LanguagesSelector-fyAIUp7M.mjs → LanguagesSelector-D2AP7FE0.mjs} +2 -2
- package/dist/_chunks/{LanguagesSelector-BeijBEjg.js → LanguagesSelector-DU5YJVQa.js} +2 -2
- package/dist/_chunks/{has-model-changed-BMCQX2Dd.js → has-model-changed-9PCipZvK.js} +2 -2
- package/dist/_chunks/{has-model-changed-Dvtzpc9v.mjs → has-model-changed-wAFZY5Ma.mjs} +2 -2
- package/dist/_chunks/{index-CN3Gyh5F.mjs → index-CT0CH6N8.mjs} +19 -43
- package/dist/_chunks/{index-BQw2qi2G.js → index-Ca5_8RSo.js} +18 -42
- package/dist/_chunks/{isEqual-B-YVnzrp.js → isEqual--zmPN5yr.js} +1 -1
- package/dist/_chunks/{isEqual-CEyT97-3.mjs → isEqual-DPUlu6B0.mjs} +1 -1
- package/dist/_chunks/{set-DulHAQhq.mjs → set-BkLLlpnD.mjs} +4 -1
- package/dist/_chunks/{set-DUdH3vE5.js → set-DDy9ZASU.js} +4 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/modules/@common/utils/iso-locales-utils.d.ts +3 -3
- package/dist/admin/src/modules/plugin-settings/locale/en.d.ts +3 -0
- package/dist/admin/src/modules/plugin-settings/models/admin-panel-user.d.ts +11 -0
- package/dist/admin/src/modules/plugin-settings/services/strapi-users-service.d.ts +2 -1
- package/dist/admin/src/state/localazy-identity.d.ts +2 -0
- package/dist/server/index.js +236 -159
- package/dist/server/index.mjs +236 -159
- package/dist/server/src/core/index.d.ts +3 -3
- package/dist/server/src/index.d.ts +20 -5
- package/dist/server/src/lifecycles/deprecate-event-entry-in-localazy-hook.d.ts +2 -1
- package/dist/server/src/lifecycles/upload-event-entry-to-localazy-hook.d.ts +2 -1
- package/dist/server/src/middlewares/index.d.ts +5 -1
- package/dist/server/src/middlewares/verify-webhook.d.ts +5 -0
- package/dist/server/src/models/plugin/hook-params.d.ts +6 -0
- package/dist/server/src/routes/index.d.ts +12 -1
- package/dist/server/src/routes/localazy-public-transfer-routes.d.ts +11 -0
- package/dist/server/src/services/index.d.ts +3 -3
- package/dist/server/src/services/localazy-pubapi-service.d.ts +6 -5
- package/dist/server/src/utils/get-picked-flatten-keys-for-hook-entry.d.ts +4 -2
- package/package.json +1 -1
- package/dist/admin/src/modules/@common/utils/is-plugin-route.d.ts +0 -2
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React__default, { useRef, useEffect, createContext, useState, useMemo, useContext } from "react";
|
|
2
2
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
|
-
import { useNavigate } from "react-router-dom";
|
|
4
3
|
const __variableDynamicImportRuntimeHelper = (glob, path, segs) => {
|
|
5
4
|
const v = glob[path];
|
|
6
5
|
if (v) {
|
|
@@ -55,8 +54,15 @@ const emptyIdentity = {
|
|
|
55
54
|
const LocalazyIdentityContextType = createContext(void 0);
|
|
56
55
|
const LocalazyIdentityProvider = ({ children }) => {
|
|
57
56
|
const [identity, setIdentity] = useState(emptyIdentity);
|
|
57
|
+
const [isFetchingIdentity, setIsFetchingIdentity] = useState(true);
|
|
58
58
|
const isLoggedIn = useMemo(() => !!identity.accessToken, [identity.accessToken]);
|
|
59
|
-
return /* @__PURE__ */ jsx(
|
|
59
|
+
return /* @__PURE__ */ jsx(
|
|
60
|
+
LocalazyIdentityContextType.Provider,
|
|
61
|
+
{
|
|
62
|
+
value: { identity, setIdentity, isLoggedIn, isFetchingIdentity, setIsFetchingIdentity },
|
|
63
|
+
children
|
|
64
|
+
}
|
|
65
|
+
);
|
|
60
66
|
};
|
|
61
67
|
const useLocalazyIdentity = () => {
|
|
62
68
|
const context = useContext(LocalazyIdentityContextType);
|
|
@@ -2522,50 +2528,22 @@ class LocalazyUserService {
|
|
|
2522
2528
|
}
|
|
2523
2529
|
}
|
|
2524
2530
|
}
|
|
2525
|
-
var PLUGIN_ROUTES = /* @__PURE__ */ ((PLUGIN_ROUTES2) => {
|
|
2526
|
-
PLUGIN_ROUTES2["ROOT"] = "";
|
|
2527
|
-
PLUGIN_ROUTES2["LOGIN"] = "login";
|
|
2528
|
-
PLUGIN_ROUTES2["UPLOAD"] = "upload";
|
|
2529
|
-
PLUGIN_ROUTES2["DOWNLOAD"] = "download";
|
|
2530
|
-
PLUGIN_ROUTES2["OVERVIEW"] = "overview";
|
|
2531
|
-
PLUGIN_ROUTES2["CONTENT_TRANSFER_SETUP"] = "content-transfer-setup";
|
|
2532
|
-
PLUGIN_ROUTES2["GLOBAL_SETTINGS"] = "global-settings";
|
|
2533
|
-
return PLUGIN_ROUTES2;
|
|
2534
|
-
})(PLUGIN_ROUTES || {});
|
|
2535
|
-
const useRedirectToPluginRoute = () => {
|
|
2536
|
-
const navigate = useNavigate();
|
|
2537
|
-
const navigateToPluginRoute = (route) => {
|
|
2538
|
-
if ([
|
|
2539
|
-
"content-transfer-setup",
|
|
2540
|
-
"global-settings"
|
|
2541
|
-
/* GLOBAL_SETTINGS */
|
|
2542
|
-
].includes(route)) {
|
|
2543
|
-
navigate(`/settings/${PLUGIN_ID}/${route}`);
|
|
2544
|
-
return;
|
|
2545
|
-
}
|
|
2546
|
-
navigate(`/plugins/${PLUGIN_ID}/${route}`);
|
|
2547
|
-
};
|
|
2548
|
-
return {
|
|
2549
|
-
navigateToPluginRoute
|
|
2550
|
-
};
|
|
2551
|
-
};
|
|
2552
2531
|
const FetchIdentity = () => {
|
|
2553
|
-
const { setIdentity } = useLocalazyIdentity();
|
|
2554
|
-
const { navigateToPluginRoute } = useRedirectToPluginRoute();
|
|
2532
|
+
const { setIdentity, setIsFetchingIdentity } = useLocalazyIdentity();
|
|
2555
2533
|
useEffect(() => {
|
|
2556
2534
|
const fetchIdentity = async () => {
|
|
2557
2535
|
try {
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
navigateToPluginRoute(PLUGIN_ROUTES.LOGIN);
|
|
2562
|
-
}
|
|
2536
|
+
setIsFetchingIdentity(true);
|
|
2537
|
+
const fetchedIdentity = await LocalazyUserService.getIdentity();
|
|
2538
|
+
setIdentity(fetchedIdentity || emptyIdentity);
|
|
2563
2539
|
} catch (error) {
|
|
2564
2540
|
console.error("Error fetching identity:", error);
|
|
2541
|
+
} finally {
|
|
2542
|
+
setIsFetchingIdentity(false);
|
|
2565
2543
|
}
|
|
2566
2544
|
};
|
|
2567
2545
|
fetchIdentity();
|
|
2568
|
-
}, [setIdentity]);
|
|
2546
|
+
}, [setIdentity, setIsFetchingIdentity]);
|
|
2569
2547
|
return null;
|
|
2570
2548
|
};
|
|
2571
2549
|
const index = {
|
|
@@ -2596,7 +2574,7 @@ const addMenuLink = (app) => {
|
|
|
2596
2574
|
defaultMessage: getTranslation("name")
|
|
2597
2575
|
},
|
|
2598
2576
|
Component: async () => {
|
|
2599
|
-
const { App } = await import("./App-
|
|
2577
|
+
const { App } = await import("./App-1cXVSnL0.mjs");
|
|
2600
2578
|
const { LocalazyIdentityProvider: LocalazyIdentityProvider2 } = await Promise.resolve().then(() => localazyIdentity);
|
|
2601
2579
|
const WrappedApp = () => React__default.createElement(LocalazyIdentityProvider2, {
|
|
2602
2580
|
children: React__default.createElement(React__default.Fragment, {}, [
|
|
@@ -2627,7 +2605,7 @@ const addSettingsSection = (app) => {
|
|
|
2627
2605
|
},
|
|
2628
2606
|
to: `/settings/${PLUGIN_ID}/global-settings`,
|
|
2629
2607
|
Component: async () => {
|
|
2630
|
-
const { GlobalSettings } = await import("./GlobalSettings-
|
|
2608
|
+
const { GlobalSettings } = await import("./GlobalSettings-7pI5vIna.mjs");
|
|
2631
2609
|
const { LocalazyIdentityProvider: LocalazyIdentityProvider2 } = await Promise.resolve().then(() => localazyIdentity);
|
|
2632
2610
|
const WrappedGlobalSettings = () => React__default.createElement(LocalazyIdentityProvider2, { children: React__default.createElement(GlobalSettings, {}) });
|
|
2633
2611
|
return WrappedGlobalSettings;
|
|
@@ -2643,7 +2621,7 @@ const addSettingsSection = (app) => {
|
|
|
2643
2621
|
},
|
|
2644
2622
|
to: `/settings/${PLUGIN_ID}/content-transfer-setup`,
|
|
2645
2623
|
Component: async () => {
|
|
2646
|
-
const { ContentTransferSetup } = await import("./ContentTransferSetup-
|
|
2624
|
+
const { ContentTransferSetup } = await import("./ContentTransferSetup-D2R15gJS.mjs");
|
|
2647
2625
|
const { LocalazyIdentityProvider: LocalazyIdentityProvider2 } = await Promise.resolve().then(() => localazyIdentity);
|
|
2648
2626
|
const WrappedContentTransferSetup = () => React__default.createElement(LocalazyIdentityProvider2, {
|
|
2649
2627
|
children: React__default.createElement(React__default.Fragment, {}, [
|
|
@@ -2669,10 +2647,8 @@ const addPlugin = (app) => {
|
|
|
2669
2647
|
export {
|
|
2670
2648
|
LocalazyUserService as L,
|
|
2671
2649
|
PLUGIN_ID as P,
|
|
2672
|
-
useLocalazyIdentity as a,
|
|
2673
|
-
PLUGIN_ROUTES as b,
|
|
2674
2650
|
createStrapiApiAxiosInstance as c,
|
|
2675
2651
|
emptyIdentity as e,
|
|
2676
2652
|
index as i,
|
|
2677
|
-
|
|
2653
|
+
useLocalazyIdentity as u
|
|
2678
2654
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const React = require("react");
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
-
const reactRouterDom = require("react-router-dom");
|
|
5
4
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
6
5
|
const React__default = /* @__PURE__ */ _interopDefault(React);
|
|
7
6
|
const __variableDynamicImportRuntimeHelper = (glob, path, segs) => {
|
|
@@ -58,8 +57,15 @@ const emptyIdentity = {
|
|
|
58
57
|
const LocalazyIdentityContextType = React.createContext(void 0);
|
|
59
58
|
const LocalazyIdentityProvider = ({ children }) => {
|
|
60
59
|
const [identity, setIdentity] = React.useState(emptyIdentity);
|
|
60
|
+
const [isFetchingIdentity, setIsFetchingIdentity] = React.useState(true);
|
|
61
61
|
const isLoggedIn = React.useMemo(() => !!identity.accessToken, [identity.accessToken]);
|
|
62
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
62
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
63
|
+
LocalazyIdentityContextType.Provider,
|
|
64
|
+
{
|
|
65
|
+
value: { identity, setIdentity, isLoggedIn, isFetchingIdentity, setIsFetchingIdentity },
|
|
66
|
+
children
|
|
67
|
+
}
|
|
68
|
+
);
|
|
63
69
|
};
|
|
64
70
|
const useLocalazyIdentity = () => {
|
|
65
71
|
const context = React.useContext(LocalazyIdentityContextType);
|
|
@@ -2525,50 +2531,22 @@ class LocalazyUserService {
|
|
|
2525
2531
|
}
|
|
2526
2532
|
}
|
|
2527
2533
|
}
|
|
2528
|
-
var PLUGIN_ROUTES = /* @__PURE__ */ ((PLUGIN_ROUTES2) => {
|
|
2529
|
-
PLUGIN_ROUTES2["ROOT"] = "";
|
|
2530
|
-
PLUGIN_ROUTES2["LOGIN"] = "login";
|
|
2531
|
-
PLUGIN_ROUTES2["UPLOAD"] = "upload";
|
|
2532
|
-
PLUGIN_ROUTES2["DOWNLOAD"] = "download";
|
|
2533
|
-
PLUGIN_ROUTES2["OVERVIEW"] = "overview";
|
|
2534
|
-
PLUGIN_ROUTES2["CONTENT_TRANSFER_SETUP"] = "content-transfer-setup";
|
|
2535
|
-
PLUGIN_ROUTES2["GLOBAL_SETTINGS"] = "global-settings";
|
|
2536
|
-
return PLUGIN_ROUTES2;
|
|
2537
|
-
})(PLUGIN_ROUTES || {});
|
|
2538
|
-
const useRedirectToPluginRoute = () => {
|
|
2539
|
-
const navigate = reactRouterDom.useNavigate();
|
|
2540
|
-
const navigateToPluginRoute = (route) => {
|
|
2541
|
-
if ([
|
|
2542
|
-
"content-transfer-setup",
|
|
2543
|
-
"global-settings"
|
|
2544
|
-
/* GLOBAL_SETTINGS */
|
|
2545
|
-
].includes(route)) {
|
|
2546
|
-
navigate(`/settings/${PLUGIN_ID}/${route}`);
|
|
2547
|
-
return;
|
|
2548
|
-
}
|
|
2549
|
-
navigate(`/plugins/${PLUGIN_ID}/${route}`);
|
|
2550
|
-
};
|
|
2551
|
-
return {
|
|
2552
|
-
navigateToPluginRoute
|
|
2553
|
-
};
|
|
2554
|
-
};
|
|
2555
2534
|
const FetchIdentity = () => {
|
|
2556
|
-
const { setIdentity } = useLocalazyIdentity();
|
|
2557
|
-
const { navigateToPluginRoute } = useRedirectToPluginRoute();
|
|
2535
|
+
const { setIdentity, setIsFetchingIdentity } = useLocalazyIdentity();
|
|
2558
2536
|
React.useEffect(() => {
|
|
2559
2537
|
const fetchIdentity = async () => {
|
|
2560
2538
|
try {
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
navigateToPluginRoute(PLUGIN_ROUTES.LOGIN);
|
|
2565
|
-
}
|
|
2539
|
+
setIsFetchingIdentity(true);
|
|
2540
|
+
const fetchedIdentity = await LocalazyUserService.getIdentity();
|
|
2541
|
+
setIdentity(fetchedIdentity || emptyIdentity);
|
|
2566
2542
|
} catch (error) {
|
|
2567
2543
|
console.error("Error fetching identity:", error);
|
|
2544
|
+
} finally {
|
|
2545
|
+
setIsFetchingIdentity(false);
|
|
2568
2546
|
}
|
|
2569
2547
|
};
|
|
2570
2548
|
fetchIdentity();
|
|
2571
|
-
}, [setIdentity]);
|
|
2549
|
+
}, [setIdentity, setIsFetchingIdentity]);
|
|
2572
2550
|
return null;
|
|
2573
2551
|
};
|
|
2574
2552
|
const index = {
|
|
@@ -2599,7 +2577,7 @@ const addMenuLink = (app) => {
|
|
|
2599
2577
|
defaultMessage: getTranslation("name")
|
|
2600
2578
|
},
|
|
2601
2579
|
Component: async () => {
|
|
2602
|
-
const { App } = await Promise.resolve().then(() => require("./App-
|
|
2580
|
+
const { App } = await Promise.resolve().then(() => require("./App-CU_T8iLT.js"));
|
|
2603
2581
|
const { LocalazyIdentityProvider: LocalazyIdentityProvider2 } = await Promise.resolve().then(() => localazyIdentity);
|
|
2604
2582
|
const WrappedApp = () => React__default.default.createElement(LocalazyIdentityProvider2, {
|
|
2605
2583
|
children: React__default.default.createElement(React__default.default.Fragment, {}, [
|
|
@@ -2630,7 +2608,7 @@ const addSettingsSection = (app) => {
|
|
|
2630
2608
|
},
|
|
2631
2609
|
to: `/settings/${PLUGIN_ID}/global-settings`,
|
|
2632
2610
|
Component: async () => {
|
|
2633
|
-
const { GlobalSettings } = await Promise.resolve().then(() => require("./GlobalSettings-
|
|
2611
|
+
const { GlobalSettings } = await Promise.resolve().then(() => require("./GlobalSettings-D_jeqPWF.js"));
|
|
2634
2612
|
const { LocalazyIdentityProvider: LocalazyIdentityProvider2 } = await Promise.resolve().then(() => localazyIdentity);
|
|
2635
2613
|
const WrappedGlobalSettings = () => React__default.default.createElement(LocalazyIdentityProvider2, { children: React__default.default.createElement(GlobalSettings, {}) });
|
|
2636
2614
|
return WrappedGlobalSettings;
|
|
@@ -2646,7 +2624,7 @@ const addSettingsSection = (app) => {
|
|
|
2646
2624
|
},
|
|
2647
2625
|
to: `/settings/${PLUGIN_ID}/content-transfer-setup`,
|
|
2648
2626
|
Component: async () => {
|
|
2649
|
-
const { ContentTransferSetup } = await Promise.resolve().then(() => require("./ContentTransferSetup-
|
|
2627
|
+
const { ContentTransferSetup } = await Promise.resolve().then(() => require("./ContentTransferSetup-DTcnul1w.js"));
|
|
2650
2628
|
const { LocalazyIdentityProvider: LocalazyIdentityProvider2 } = await Promise.resolve().then(() => localazyIdentity);
|
|
2651
2629
|
const WrappedContentTransferSetup = () => React__default.default.createElement(LocalazyIdentityProvider2, {
|
|
2652
2630
|
children: React__default.default.createElement(React__default.default.Fragment, {}, [
|
|
@@ -2671,9 +2649,7 @@ const addPlugin = (app) => {
|
|
|
2671
2649
|
};
|
|
2672
2650
|
exports.LocalazyUserService = LocalazyUserService;
|
|
2673
2651
|
exports.PLUGIN_ID = PLUGIN_ID;
|
|
2674
|
-
exports.PLUGIN_ROUTES = PLUGIN_ROUTES;
|
|
2675
2652
|
exports.createStrapiApiAxiosInstance = createStrapiApiAxiosInstance;
|
|
2676
2653
|
exports.emptyIdentity = emptyIdentity;
|
|
2677
2654
|
exports.index = index;
|
|
2678
2655
|
exports.useLocalazyIdentity = useLocalazyIdentity;
|
|
2679
|
-
exports.useRedirectToPluginRoute = useRedirectToPluginRoute;
|
|
@@ -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-BkLLlpnD.mjs";
|
|
2
2
|
function arraySome(array, predicate) {
|
|
3
3
|
var index = -1, length = array == null ? 0 : array.length;
|
|
4
4
|
while (++index < length) {
|
|
@@ -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-CT0CH6N8.mjs";
|
|
8
8
|
function $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(callback) {
|
|
9
9
|
const callbackRef = useRef(callback);
|
|
10
10
|
useEffect(() => {
|
|
@@ -53618,6 +53618,9 @@ const en_plugin_settings = {
|
|
|
53618
53618
|
step_3: "Check <1>Enable localization for this Content-Type</1>",
|
|
53619
53619
|
step_4: "Repeat for all Content-Types you want to translate",
|
|
53620
53620
|
step_5: "Return to this screen and finish the transfer setup",
|
|
53621
|
+
tree_item_count_zero: "(no selected fields)",
|
|
53622
|
+
tree_item_count_one: "({{count}} selected field)",
|
|
53623
|
+
tree_item_count_other: "({{count}} selected fields)",
|
|
53621
53624
|
general: "General"
|
|
53622
53625
|
};
|
|
53623
53626
|
const initI18nParams = () => {
|
|
@@ -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-Ca5_8RSo.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" } });
|
|
@@ -53636,6 +53636,9 @@ const en_plugin_settings = {
|
|
|
53636
53636
|
step_3: "Check <1>Enable localization for this Content-Type</1>",
|
|
53637
53637
|
step_4: "Repeat for all Content-Types you want to translate",
|
|
53638
53638
|
step_5: "Return to this screen and finish the transfer setup",
|
|
53639
|
+
tree_item_count_zero: "(no selected fields)",
|
|
53640
|
+
tree_item_count_one: "({{count}} selected field)",
|
|
53641
|
+
tree_item_count_other: "({{count}} selected fields)",
|
|
53639
53642
|
general: "General"
|
|
53640
53643
|
};
|
|
53641
53644
|
const initI18nParams = () => {
|
package/dist/admin/index.js
CHANGED
package/dist/admin/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export
|
|
1
|
+
declare const isoStrapiToLocalazy: (isoStrapi: string) => string | null;
|
|
2
|
+
declare const isoLocalazyToStrapi: (isoLocalazy: string) => string | null;
|
|
3
|
+
export { isoStrapiToLocalazy, isoLocalazyToStrapi };
|
|
@@ -3,6 +3,8 @@ import React, { ReactNode } from 'react';
|
|
|
3
3
|
interface LocalazyIdentityContextType {
|
|
4
4
|
identity: LocalazyIdentity;
|
|
5
5
|
setIdentity: React.Dispatch<React.SetStateAction<LocalazyIdentity>>;
|
|
6
|
+
isFetchingIdentity: boolean;
|
|
7
|
+
setIsFetchingIdentity: React.Dispatch<React.SetStateAction<boolean>>;
|
|
6
8
|
isLoggedIn: boolean;
|
|
7
9
|
}
|
|
8
10
|
declare const LocalazyIdentityContextType: React.Context<LocalazyIdentityContextType | undefined>;
|