@localazy/strapi-plugin 1.0.0-beta.3 → 1.0.0-beta.4
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-1cXVSnL0.mjs → App-B-eJcuyt.mjs} +4 -7
- package/dist/_chunks/{App-CU_T8iLT.js → App-CZwW3YTd.js} +4 -7
- package/dist/_chunks/{ContentTransferSetup-DTcnul1w.js → ContentTransferSetup-Dr_mJJgz.js} +3 -3
- package/dist/_chunks/{ContentTransferSetup-D2R15gJS.mjs → ContentTransferSetup-UJY9VRZa.mjs} +3 -3
- package/dist/_chunks/{GlobalSettings-7pI5vIna.mjs → GlobalSettings-Zw4Rx2kW.mjs} +4 -4
- package/dist/_chunks/{GlobalSettings-D_jeqPWF.js → GlobalSettings-fOqWFCaw.js} +4 -4
- package/dist/_chunks/{LanguagesSelector-DU5YJVQa.js → LanguagesSelector-BCdGJ78t.js} +2 -2
- package/dist/_chunks/{LanguagesSelector-D2AP7FE0.mjs → LanguagesSelector-BuLqcCj3.mjs} +2 -2
- package/dist/_chunks/{has-model-changed-wAFZY5Ma.mjs → has-model-changed-3odhT9AD.mjs} +2 -2
- package/dist/_chunks/{has-model-changed-9PCipZvK.js → has-model-changed-DWtqhgC5.js} +2 -2
- package/dist/_chunks/{index-Ca5_8RSo.js → index-A4sI66xq.js} +4 -4
- package/dist/_chunks/{index-CT0CH6N8.mjs → index-ejNxZTDx.mjs} +4 -4
- package/dist/_chunks/{isEqual-DPUlu6B0.mjs → isEqual-C5fQrX8H.mjs} +1 -1
- package/dist/_chunks/{isEqual--zmPN5yr.js → isEqual-CrFRsMew.js} +1 -1
- package/dist/_chunks/{set-DDy9ZASU.js → set-B9_zNm2J.js} +1 -3
- package/dist/_chunks/{set-BkLLlpnD.mjs → set-DetVznhF.mjs} +1 -3
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/modules/overview/locale/en.d.ts +0 -2
- package/dist/server/index.js +2 -2
- package/dist/server/index.mjs +2 -2
- package/install/index.mjs +5 -1
- package/package.json +2 -2
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { useNavigate, useLocation, NavLink, Routes, Route } from "react-router-dom";
|
|
3
|
-
import { u as useTranslation, F as ForwardRef$2H, a as ForwardRef$d, b as ForwardRef$3P, c as Flex, L as Loader, g as getDefaultExportFromCjs, B as Button, d as Box, T as Typography, e as Link, S as SubNav, f as SubNavHeader, h as SubNavSections, i as SubNavSection, j as SubNavLink, k as ForwardRef$L, G as Grid, D as Divider, P as PluginSettingsService, l as darkTheme, m as lightTheme, A as Alert, n as cloneDeep, s as set, o as DesignSystemProvider } from "./set-
|
|
3
|
+
import { u as useTranslation, F as ForwardRef$2H, a as ForwardRef$d, b as ForwardRef$3P, c as Flex, L as Loader, g as getDefaultExportFromCjs, B as Button, d as Box, T as Typography, e as Link, S as SubNav, f as SubNavHeader, h as SubNavSections, i as SubNavSection, j as SubNavLink, k as ForwardRef$L, G as Grid, D as Divider, P as PluginSettingsService, l as darkTheme, m as lightTheme, A as Alert, n as cloneDeep, s as set, o as DesignSystemProvider } from "./set-DetVznhF.mjs";
|
|
4
4
|
import { useState, useEffect } from "react";
|
|
5
|
-
import { P as PLUGIN_ID, c as createStrapiApiAxiosInstance, u as useLocalazyIdentity, L as LocalazyUserService, e as emptyIdentity } from "./index-
|
|
6
|
-
import { P as ProjectService, L as LanguagesSelector } from "./LanguagesSelector-
|
|
5
|
+
import { P as PLUGIN_ID, c as createStrapiApiAxiosInstance, u as useLocalazyIdentity, L as LocalazyUserService, e as emptyIdentity } from "./index-ejNxZTDx.mjs";
|
|
6
|
+
import { P as ProjectService, L as LanguagesSelector } from "./LanguagesSelector-BuLqcCj3.mjs";
|
|
7
7
|
import { Layouts, Page } from "@strapi/strapi/admin";
|
|
8
|
-
import { h as hasModelChanged } from "./has-model-changed-
|
|
8
|
+
import { h as hasModelChanged } from "./has-model-changed-3odhT9AD.mjs";
|
|
9
9
|
var PLUGIN_ROUTES = /* @__PURE__ */ ((PLUGIN_ROUTES2) => {
|
|
10
10
|
PLUGIN_ROUTES2["ROOT"] = "";
|
|
11
11
|
PLUGIN_ROUTES2["LOGIN"] = "login";
|
|
@@ -1441,9 +1441,6 @@ const OverviewItemLink = (props) => {
|
|
|
1441
1441
|
const PrerequisitiesInfo = () => {
|
|
1442
1442
|
const { t: t2 } = useTranslation();
|
|
1443
1443
|
return /* @__PURE__ */ jsxs(Box, { children: [
|
|
1444
|
-
/* @__PURE__ */ jsx(Typography, { variant: "omega", fontWeight: "semiBold", children: t2("overview.internationalization_plugin") }),
|
|
1445
|
-
/* @__PURE__ */ jsx(Typography, { variant: "omega", children: t2("overview.has_to_be_installed") }),
|
|
1446
|
-
/* @__PURE__ */ jsx("br", {}),
|
|
1447
1444
|
/* @__PURE__ */ jsx(Typography, { variant: "omega", children: t2("overview.transfer_setup_message_a") }),
|
|
1448
1445
|
/* @__PURE__ */ jsx(Typography, { variant: "omega", fontWeight: "semiBold", children: t2("overview.transfer_setup_message_b") })
|
|
1449
1446
|
] });
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const reactRouterDom = require("react-router-dom");
|
|
5
|
-
const set = require("./set-
|
|
5
|
+
const set = require("./set-B9_zNm2J.js");
|
|
6
6
|
const React = require("react");
|
|
7
|
-
const index = require("./index-
|
|
8
|
-
const LanguagesSelector = require("./LanguagesSelector-
|
|
7
|
+
const index = require("./index-A4sI66xq.js");
|
|
8
|
+
const LanguagesSelector = require("./LanguagesSelector-BCdGJ78t.js");
|
|
9
9
|
const admin = require("@strapi/strapi/admin");
|
|
10
|
-
const hasModelChanged = require("./has-model-changed-
|
|
10
|
+
const hasModelChanged = require("./has-model-changed-DWtqhgC5.js");
|
|
11
11
|
var PLUGIN_ROUTES = /* @__PURE__ */ ((PLUGIN_ROUTES2) => {
|
|
12
12
|
PLUGIN_ROUTES2["ROOT"] = "";
|
|
13
13
|
PLUGIN_ROUTES2["LOGIN"] = "login";
|
|
@@ -1443,9 +1443,6 @@ const OverviewItemLink = (props) => {
|
|
|
1443
1443
|
const PrerequisitiesInfo = () => {
|
|
1444
1444
|
const { t: t2 } = set.useTranslation();
|
|
1445
1445
|
return /* @__PURE__ */ jsxRuntime.jsxs(set.Box, { children: [
|
|
1446
|
-
/* @__PURE__ */ jsxRuntime.jsx(set.Typography, { variant: "omega", fontWeight: "semiBold", children: t2("overview.internationalization_plugin") }),
|
|
1447
|
-
/* @__PURE__ */ jsxRuntime.jsx(set.Typography, { variant: "omega", children: t2("overview.has_to_be_installed") }),
|
|
1448
|
-
/* @__PURE__ */ jsxRuntime.jsx("br", {}),
|
|
1449
1446
|
/* @__PURE__ */ jsxRuntime.jsx(set.Typography, { variant: "omega", children: t2("overview.transfer_setup_message_a") }),
|
|
1450
1447
|
/* @__PURE__ */ jsxRuntime.jsx(set.Typography, { variant: "omega", fontWeight: "semiBold", children: t2("overview.transfer_setup_message_b") })
|
|
1451
1448
|
] });
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const React = require("react");
|
|
5
|
-
const isEqual = require("./isEqual
|
|
6
|
-
const set = require("./set-
|
|
5
|
+
const isEqual = require("./isEqual-CrFRsMew.js");
|
|
6
|
+
const set = require("./set-B9_zNm2J.js");
|
|
7
7
|
const admin = require("@strapi/strapi/admin");
|
|
8
|
-
const hasModelChanged = require("./has-model-changed-
|
|
8
|
+
const hasModelChanged = require("./has-model-changed-DWtqhgC5.js");
|
|
9
9
|
const styled = require("styled-components");
|
|
10
10
|
const _interopDefault = (e2) => e2 && e2.__esModule ? e2 : { default: e2 };
|
|
11
11
|
const styled__default = /* @__PURE__ */ _interopDefault(styled);
|
package/dist/_chunks/{ContentTransferSetup-D2R15gJS.mjs → ContentTransferSetup-UJY9VRZa.mjs}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment as Fragment$1 } from "react/jsx-runtime";
|
|
2
2
|
import { createElement, isValidElement, cloneElement, Children, Fragment, useContext, forwardRef, useState, useEffect } from "react";
|
|
3
|
-
import { i as isEqual } from "./isEqual-
|
|
4
|
-
import { g as getDefaultExportFromCjs, x as warnOnce, y as getI18n, z as getDefaults, C as isString, E as warn, H as isObject, I as I18nContext, s as set, J as CheckboxImpl, K as keys, N as isArrayLike, O as arrayEach, Q as isArray, R as isObject$1, u as useTranslation, d as Box, U as Accordion, c as Flex, V as SwitchImpl, T as Typography, B as Button, p as ForwardRef$4z, A as Alert, D as Divider, P as PluginSettingsService, n as cloneDeep } from "./set-
|
|
3
|
+
import { i as isEqual } from "./isEqual-C5fQrX8H.mjs";
|
|
4
|
+
import { g as getDefaultExportFromCjs, x as warnOnce, y as getI18n, z as getDefaults, C as isString, E as warn, H as isObject, I as I18nContext, s as set, J as CheckboxImpl, K as keys, N as isArrayLike, O as arrayEach, Q as isArray, R as isObject$1, u as useTranslation, d as Box, U as Accordion, c as Flex, V as SwitchImpl, T as Typography, B as Button, p as ForwardRef$4z, A as Alert, D as Divider, P as PluginSettingsService, n as cloneDeep } from "./set-DetVznhF.mjs";
|
|
5
5
|
import { Layouts } from "@strapi/strapi/admin";
|
|
6
|
-
import { S as SUPPORTED_CONTENT_TYPE_FIELDS, a as SUPPORTED_CUSTOM_FIELD_PLUGINS, g as getContentTransferSetupKeysSets, b as get, f as findModelValueByKey, c as StrapiModelService, d as getModelsTree, h as hasModelChanged } from "./has-model-changed-
|
|
6
|
+
import { S as SUPPORTED_CONTENT_TYPE_FIELDS, a as SUPPORTED_CUSTOM_FIELD_PLUGINS, g as getContentTransferSetupKeysSets, b as get, f as findModelValueByKey, c as StrapiModelService, d as getModelsTree, h as hasModelChanged } from "./has-model-changed-3odhT9AD.mjs";
|
|
7
7
|
import styled from "styled-components";
|
|
8
8
|
var voidElements = {
|
|
9
9
|
"area": true,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useEffect } from "react";
|
|
3
|
-
import { u as useTranslation, c as Flex, B as Button, p as ForwardRef$4z, d as Box, A as Alert, T as Typography, q as Field, r as Toggle, M as MultiSelect, t as MultiSelectOption, D as Divider, v as SingleSelect, w as SingleSelectOption, P as PluginSettingsService$1, n as cloneDeep, s as set } from "./set-
|
|
3
|
+
import { u as useTranslation, c as Flex, B as Button, p as ForwardRef$4z, d as Box, A as Alert, T as Typography, q as Field, r as Toggle, M as MultiSelect, t as MultiSelectOption, D as Divider, v as SingleSelect, w as SingleSelectOption, P as PluginSettingsService$1, n as cloneDeep, s as set } from "./set-DetVznhF.mjs";
|
|
4
4
|
import { Layouts } from "@strapi/strapi/admin";
|
|
5
|
-
import { i as isEqual } from "./isEqual-
|
|
6
|
-
import { L as LanguagesSelector, P as ProjectService } from "./LanguagesSelector-
|
|
7
|
-
import { c as createStrapiApiAxiosInstance } from "./index-
|
|
5
|
+
import { i as isEqual } from "./isEqual-C5fQrX8H.mjs";
|
|
6
|
+
import { L as LanguagesSelector, P as ProjectService } from "./LanguagesSelector-BuLqcCj3.mjs";
|
|
7
|
+
import { c as createStrapiApiAxiosInstance } from "./index-ejNxZTDx.mjs";
|
|
8
8
|
class PluginSettingsService {
|
|
9
9
|
static async getAdminPanelUsers() {
|
|
10
10
|
try {
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const React = require("react");
|
|
5
|
-
const set = require("./set-
|
|
5
|
+
const set = require("./set-B9_zNm2J.js");
|
|
6
6
|
const admin = require("@strapi/strapi/admin");
|
|
7
|
-
const isEqual = require("./isEqual
|
|
8
|
-
const LanguagesSelector = require("./LanguagesSelector-
|
|
9
|
-
const index = require("./index-
|
|
7
|
+
const isEqual = require("./isEqual-CrFRsMew.js");
|
|
8
|
+
const LanguagesSelector = require("./LanguagesSelector-BCdGJ78t.js");
|
|
9
|
+
const index = require("./index-A4sI66xq.js");
|
|
10
10
|
class PluginSettingsService {
|
|
11
11
|
static async getAdminPanelUsers() {
|
|
12
12
|
try {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const index = require("./index-
|
|
2
|
+
const index = require("./index-A4sI66xq.js");
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const React = require("react");
|
|
5
|
-
const set = require("./set-
|
|
5
|
+
const set = require("./set-B9_zNm2J.js");
|
|
6
6
|
const strapiApiInstance = index.createStrapiApiAxiosInstance();
|
|
7
7
|
class ProjectService {
|
|
8
8
|
static async getConnectedProject() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as createStrapiApiAxiosInstance } from "./index-
|
|
1
|
+
import { c as createStrapiApiAxiosInstance } from "./index-ejNxZTDx.mjs";
|
|
2
2
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useState, useEffect } from "react";
|
|
4
|
-
import { u as useTranslation, q as Field, M as MultiSelect, t as MultiSelectOption, n as cloneDeep } from "./set-
|
|
4
|
+
import { u as useTranslation, q as Field, M as MultiSelect, t as MultiSelectOption, n as cloneDeep } from "./set-DetVznhF.mjs";
|
|
5
5
|
const strapiApiInstance = createStrapiApiAxiosInstance();
|
|
6
6
|
class ProjectService {
|
|
7
7
|
static async getConnectedProject() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { W as castPath, X as toKey, Y as Set, Z as setToArray, _ as SetCache, $ as cacheHas, g as getDefaultExportFromCjs, P as PluginSettingsService } from "./set-
|
|
2
|
-
import { c as createStrapiApiAxiosInstance } from "./index-
|
|
1
|
+
import { W as castPath, X as toKey, Y as Set, Z as setToArray, _ as SetCache, $ as cacheHas, g as getDefaultExportFromCjs, P as PluginSettingsService } from "./set-DetVznhF.mjs";
|
|
2
|
+
import { c as createStrapiApiAxiosInstance } from "./index-ejNxZTDx.mjs";
|
|
3
3
|
function baseGet(object, path) {
|
|
4
4
|
path = castPath(path, object);
|
|
5
5
|
var index = 0, length = path.length;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const set = require("./set-
|
|
3
|
-
const index = require("./index-
|
|
2
|
+
const set = require("./set-B9_zNm2J.js");
|
|
3
|
+
const index = require("./index-A4sI66xq.js");
|
|
4
4
|
function baseGet(object, path) {
|
|
5
5
|
path = set.castPath(path, object);
|
|
6
6
|
var index2 = 0, length = path.length;
|
|
@@ -20,7 +20,7 @@ const __variableDynamicImportRuntimeHelper = (glob, path, segs) => {
|
|
|
20
20
|
});
|
|
21
21
|
};
|
|
22
22
|
const strapi = {
|
|
23
|
-
name: "
|
|
23
|
+
name: "localazy"
|
|
24
24
|
};
|
|
25
25
|
const pluginPkg = {
|
|
26
26
|
strapi
|
|
@@ -2577,7 +2577,7 @@ const addMenuLink = (app) => {
|
|
|
2577
2577
|
defaultMessage: getTranslation("name")
|
|
2578
2578
|
},
|
|
2579
2579
|
Component: async () => {
|
|
2580
|
-
const { App } = await Promise.resolve().then(() => require("./App-
|
|
2580
|
+
const { App } = await Promise.resolve().then(() => require("./App-CZwW3YTd.js"));
|
|
2581
2581
|
const { LocalazyIdentityProvider: LocalazyIdentityProvider2 } = await Promise.resolve().then(() => localazyIdentity);
|
|
2582
2582
|
const WrappedApp = () => React__default.default.createElement(LocalazyIdentityProvider2, {
|
|
2583
2583
|
children: React__default.default.createElement(React__default.default.Fragment, {}, [
|
|
@@ -2608,7 +2608,7 @@ const addSettingsSection = (app) => {
|
|
|
2608
2608
|
},
|
|
2609
2609
|
to: `/settings/${PLUGIN_ID}/global-settings`,
|
|
2610
2610
|
Component: async () => {
|
|
2611
|
-
const { GlobalSettings } = await Promise.resolve().then(() => require("./GlobalSettings-
|
|
2611
|
+
const { GlobalSettings } = await Promise.resolve().then(() => require("./GlobalSettings-fOqWFCaw.js"));
|
|
2612
2612
|
const { LocalazyIdentityProvider: LocalazyIdentityProvider2 } = await Promise.resolve().then(() => localazyIdentity);
|
|
2613
2613
|
const WrappedGlobalSettings = () => React__default.default.createElement(LocalazyIdentityProvider2, { children: React__default.default.createElement(GlobalSettings, {}) });
|
|
2614
2614
|
return WrappedGlobalSettings;
|
|
@@ -2624,7 +2624,7 @@ const addSettingsSection = (app) => {
|
|
|
2624
2624
|
},
|
|
2625
2625
|
to: `/settings/${PLUGIN_ID}/content-transfer-setup`,
|
|
2626
2626
|
Component: async () => {
|
|
2627
|
-
const { ContentTransferSetup } = await Promise.resolve().then(() => require("./ContentTransferSetup-
|
|
2627
|
+
const { ContentTransferSetup } = await Promise.resolve().then(() => require("./ContentTransferSetup-Dr_mJJgz.js"));
|
|
2628
2628
|
const { LocalazyIdentityProvider: LocalazyIdentityProvider2 } = await Promise.resolve().then(() => localazyIdentity);
|
|
2629
2629
|
const WrappedContentTransferSetup = () => React__default.default.createElement(LocalazyIdentityProvider2, {
|
|
2630
2630
|
children: React__default.default.createElement(React__default.default.Fragment, {}, [
|
|
@@ -17,7 +17,7 @@ const __variableDynamicImportRuntimeHelper = (glob, path, segs) => {
|
|
|
17
17
|
});
|
|
18
18
|
};
|
|
19
19
|
const strapi = {
|
|
20
|
-
name: "
|
|
20
|
+
name: "localazy"
|
|
21
21
|
};
|
|
22
22
|
const pluginPkg = {
|
|
23
23
|
strapi
|
|
@@ -2574,7 +2574,7 @@ const addMenuLink = (app) => {
|
|
|
2574
2574
|
defaultMessage: getTranslation("name")
|
|
2575
2575
|
},
|
|
2576
2576
|
Component: async () => {
|
|
2577
|
-
const { App } = await import("./App-
|
|
2577
|
+
const { App } = await import("./App-B-eJcuyt.mjs");
|
|
2578
2578
|
const { LocalazyIdentityProvider: LocalazyIdentityProvider2 } = await Promise.resolve().then(() => localazyIdentity);
|
|
2579
2579
|
const WrappedApp = () => React__default.createElement(LocalazyIdentityProvider2, {
|
|
2580
2580
|
children: React__default.createElement(React__default.Fragment, {}, [
|
|
@@ -2605,7 +2605,7 @@ const addSettingsSection = (app) => {
|
|
|
2605
2605
|
},
|
|
2606
2606
|
to: `/settings/${PLUGIN_ID}/global-settings`,
|
|
2607
2607
|
Component: async () => {
|
|
2608
|
-
const { GlobalSettings } = await import("./GlobalSettings-
|
|
2608
|
+
const { GlobalSettings } = await import("./GlobalSettings-Zw4Rx2kW.mjs");
|
|
2609
2609
|
const { LocalazyIdentityProvider: LocalazyIdentityProvider2 } = await Promise.resolve().then(() => localazyIdentity);
|
|
2610
2610
|
const WrappedGlobalSettings = () => React__default.createElement(LocalazyIdentityProvider2, { children: React__default.createElement(GlobalSettings, {}) });
|
|
2611
2611
|
return WrappedGlobalSettings;
|
|
@@ -2621,7 +2621,7 @@ const addSettingsSection = (app) => {
|
|
|
2621
2621
|
},
|
|
2622
2622
|
to: `/settings/${PLUGIN_ID}/content-transfer-setup`,
|
|
2623
2623
|
Component: async () => {
|
|
2624
|
-
const { ContentTransferSetup } = await import("./ContentTransferSetup-
|
|
2624
|
+
const { ContentTransferSetup } = await import("./ContentTransferSetup-UJY9VRZa.mjs");
|
|
2625
2625
|
const { LocalazyIdentityProvider: LocalazyIdentityProvider2 } = await Promise.resolve().then(() => localazyIdentity);
|
|
2626
2626
|
const WrappedContentTransferSetup = () => React__default.createElement(LocalazyIdentityProvider2, {
|
|
2627
2627
|
children: React__default.createElement(React__default.Fragment, {}, [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as SetCache, $ as cacheHas, a0 as Symbol$1, a1 as eq, a2 as Uint8Array, Z as setToArray, a3 as getAllKeys, a4 as getTag, a5 as isBuffer, a6 as Stack, a7 as isTypedArray, Q as isArray, a8 as isObjectLike } from "./set-
|
|
1
|
+
import { _ as SetCache, $ as cacheHas, a0 as Symbol$1, a1 as eq, a2 as Uint8Array, Z as setToArray, a3 as getAllKeys, a4 as getTag, a5 as isBuffer, a6 as Stack, a7 as isTypedArray, Q as isArray, a8 as isObjectLike } from "./set-DetVznhF.mjs";
|
|
2
2
|
function arraySome(array, predicate) {
|
|
3
3
|
var index = -1, length = array == null ? 0 : array.length;
|
|
4
4
|
while (++index < length) {
|
|
@@ -3,7 +3,7 @@ const React = require("react");
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const ReactDOM = require("react-dom");
|
|
5
5
|
const styled = require("styled-components");
|
|
6
|
-
const index$1 = require("./index-
|
|
6
|
+
const index$1 = require("./index-A4sI66xq.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" } });
|
|
@@ -53542,8 +53542,6 @@ const en_overview = {
|
|
|
53542
53542
|
connected_organization: "Connected Organization",
|
|
53543
53543
|
remaining_organization_keys: "Remaining Organization Keys",
|
|
53544
53544
|
open_project_in_localazy: "Open project in Localazy",
|
|
53545
|
-
internationalization_plugin: "Internationalization Plugin ",
|
|
53546
|
-
has_to_be_installed: "has to be installed.",
|
|
53547
53545
|
transfer_setup_message_a: "Select which parts of your project you want to upload in ",
|
|
53548
53546
|
transfer_setup_message_b: "Settings > Localazy Settings > Content Transfer Setup."
|
|
53549
53547
|
};
|
|
@@ -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-ejNxZTDx.mjs";
|
|
8
8
|
function $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(callback) {
|
|
9
9
|
const callbackRef = useRef(callback);
|
|
10
10
|
useEffect(() => {
|
|
@@ -53524,8 +53524,6 @@ const en_overview = {
|
|
|
53524
53524
|
connected_organization: "Connected Organization",
|
|
53525
53525
|
remaining_organization_keys: "Remaining Organization Keys",
|
|
53526
53526
|
open_project_in_localazy: "Open project in Localazy",
|
|
53527
|
-
internationalization_plugin: "Internationalization Plugin ",
|
|
53528
|
-
has_to_be_installed: "has to be installed.",
|
|
53529
53527
|
transfer_setup_message_a: "Select which parts of your project you want to upload in ",
|
|
53530
53528
|
transfer_setup_message_b: "Settings > Localazy Settings > Content Transfer Setup."
|
|
53531
53529
|
};
|
package/dist/admin/index.js
CHANGED
package/dist/admin/index.mjs
CHANGED
|
@@ -6,8 +6,6 @@ declare const _default: {
|
|
|
6
6
|
connected_organization: string;
|
|
7
7
|
remaining_organization_keys: string;
|
|
8
8
|
open_project_in_localazy: string;
|
|
9
|
-
internationalization_plugin: string;
|
|
10
|
-
has_to_be_installed: string;
|
|
11
9
|
transfer_setup_message_a: string;
|
|
12
10
|
transfer_setup_message_b: string;
|
|
13
11
|
};
|
package/dist/server/index.js
CHANGED
|
@@ -811,7 +811,7 @@ var merge = createAssigner(function(object, source, srcIndex) {
|
|
|
811
811
|
baseMerge(object, source, srcIndex);
|
|
812
812
|
});
|
|
813
813
|
const name = "@localazy/strapi-plugin";
|
|
814
|
-
const version$1 = "1.0.0-beta.
|
|
814
|
+
const version$1 = "1.0.0-beta.3";
|
|
815
815
|
const description = "The official Strapi Plugin by Localazy.";
|
|
816
816
|
const keywords = [
|
|
817
817
|
"strapi",
|
|
@@ -925,7 +925,7 @@ const peerDependencies = {
|
|
|
925
925
|
};
|
|
926
926
|
const strapi$1 = {
|
|
927
927
|
kind: "plugin",
|
|
928
|
-
name: "
|
|
928
|
+
name: "localazy",
|
|
929
929
|
displayName: "Localazy Strapi Plugin",
|
|
930
930
|
description: "The official Strapi Plugin by Localazy"
|
|
931
931
|
};
|
package/dist/server/index.mjs
CHANGED
|
@@ -798,7 +798,7 @@ var merge = createAssigner(function(object, source, srcIndex) {
|
|
|
798
798
|
baseMerge(object, source, srcIndex);
|
|
799
799
|
});
|
|
800
800
|
const name = "@localazy/strapi-plugin";
|
|
801
|
-
const version$1 = "1.0.0-beta.
|
|
801
|
+
const version$1 = "1.0.0-beta.3";
|
|
802
802
|
const description = "The official Strapi Plugin by Localazy.";
|
|
803
803
|
const keywords = [
|
|
804
804
|
"strapi",
|
|
@@ -912,7 +912,7 @@ const peerDependencies = {
|
|
|
912
912
|
};
|
|
913
913
|
const strapi$1 = {
|
|
914
914
|
kind: "plugin",
|
|
915
|
-
name: "
|
|
915
|
+
name: "localazy",
|
|
916
916
|
displayName: "Localazy Strapi Plugin",
|
|
917
917
|
description: "The official Strapi Plugin by Localazy"
|
|
918
918
|
};
|
package/install/index.mjs
CHANGED
|
@@ -40,6 +40,10 @@ const exampleFileName =
|
|
|
40
40
|
type === 'vite'
|
|
41
41
|
? `vite.config.localazy-strapi-plugin.example.${extension}`
|
|
42
42
|
: `webpack.config.localazy-strapi-plugin.example.${extension}`;
|
|
43
|
+
const existingFile =
|
|
44
|
+
type === 'vite'
|
|
45
|
+
? path.join(process.cwd(), `vite.config.${extension}`)
|
|
46
|
+
: path.join(process.cwd(), `webpack.config.${extension}`);
|
|
43
47
|
const template =
|
|
44
48
|
type === 'vite'
|
|
45
49
|
? await fs.readFile(path.join(__dirname, `vite.config.example.${extension}`))
|
|
@@ -124,6 +128,6 @@ installSpinner.start(
|
|
|
124
128
|
await updateEnvConfig();
|
|
125
129
|
installSpinner.succeed();
|
|
126
130
|
installSpinner.succeed(
|
|
127
|
-
`To run the plugin, you need to update your webpack config in ${chalk.bold.green(
|
|
131
|
+
`To run the plugin, you need to update your webpack config in ${chalk.bold.green(`src/admin/${existingFile}`)} file`
|
|
128
132
|
);
|
|
129
133
|
installSpinner.succeed(`Don't forget to build the admin panel with ${chalk.bold.green('npm run build')} command`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@localazy/strapi-plugin",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.4",
|
|
4
4
|
"description": "The official Strapi Plugin by Localazy.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"strapi",
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
},
|
|
121
121
|
"strapi": {
|
|
122
122
|
"kind": "plugin",
|
|
123
|
-
"name": "
|
|
123
|
+
"name": "localazy",
|
|
124
124
|
"displayName": "Localazy Strapi Plugin",
|
|
125
125
|
"description": "The official Strapi Plugin by Localazy"
|
|
126
126
|
}
|