@localazy/strapi-plugin 1.0.3 → 1.0.8
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-CtS6CrNn.mjs → App-C0ogWaOz.mjs} +8 -4
- package/dist/_chunks/{App-NRmSxuW3.js → App-Dl58PZKy.js} +91 -87
- package/dist/_chunks/{ContentTransferSetup-CeKXlzw_.mjs → ContentTransferSetup-ClR8Nwv2.mjs} +41 -452
- package/dist/_chunks/{ContentTransferSetup-DGs8MZPj.js → ContentTransferSetup-DWQg9zDj.js} +91 -502
- package/dist/_chunks/{GlobalSettings-rOwd0Y0E.mjs → GlobalSettings-B_h5sPwa.mjs} +7 -4
- package/dist/_chunks/{GlobalSettings-CRMPRA3Y.js → GlobalSettings-BpY7BoXu.js} +43 -40
- package/dist/_chunks/{LanguagesSelector-Bd8VFHib.js → LanguagesSelector-Bfrsr3-P.js} +10 -8
- package/dist/_chunks/{LanguagesSelector-CeB7tVcb.mjs → LanguagesSelector-u9iDsQqB.mjs} +4 -2
- package/dist/_chunks/LocalazyPanel-BedTxk3C.js +83 -0
- package/dist/_chunks/LocalazyPanel-CuvdSJYx.mjs +83 -0
- package/dist/_chunks/LocalazyStatusColumn-955GpXAv.mjs +51 -0
- package/dist/_chunks/LocalazyStatusColumn-Bf1ntoc7.js +51 -0
- 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-BlyFqyBY.mjs +60 -0
- package/dist/_chunks/entry-exclusion-service-bm-lp4za.js +60 -0
- package/dist/_chunks/{has-model-changed-gNSOSMBa.js → has-model-changed-B5SSh8XW.js} +4 -3
- package/dist/_chunks/{has-model-changed-DViUIQHk.mjs → has-model-changed-DIHY9LBA.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-Dj68Ixl2.mjs → index-C15Goe6p.mjs} +120 -4
- package/dist/_chunks/{set-Cbi1yYuW.js → index-CaY3BYnQ.js} +878 -4379
- package/dist/_chunks/{set-Dnhh_SyE.mjs → index-DOCSzcPH.mjs} +907 -4409
- package/dist/_chunks/{index-Bbwk3kp3.js → index-Q3-srfXc.js} +142 -4
- package/dist/_chunks/initReactI18next-B0H8_DlW.js +60 -0
- package/dist/_chunks/initReactI18next-MHHxeg_9.mjs +61 -0
- package/dist/_chunks/{isEqual-CC-cEPwY.mjs → isEqual-BazjlHGf.mjs} +1 -1
- package/dist/_chunks/{isEqual-0M0aSdTT.js → isEqual-CrlZhAtq.js} +1 -1
- package/dist/_chunks/set-BRyy4Ra6.mjs +893 -0
- package/dist/_chunks/set-CmcBsVOP.js +891 -0
- 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/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/server/index.js +234 -40
- package/dist/server/index.mjs +234 -40
- 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/dist/server/src/utils/drop-property-deep.d.ts +2 -0
- package/package.json +2 -2
- package/dist/_chunks/en-BTf8goGM.mjs +0 -8
- package/dist/_chunks/en-CRtsEFtl.js +0 -8
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const index = require("./index-Q3-srfXc.js");
|
|
4
|
+
const BASE_PATH = "/entry-exclusion";
|
|
5
|
+
const axiosInstance = index.createStrapiApiAxiosInstance();
|
|
6
|
+
class EntryExclusionService {
|
|
7
|
+
/**
|
|
8
|
+
* Get entry exclusion state for a specific entry
|
|
9
|
+
*/
|
|
10
|
+
static async getEntryExclusion(contentType, documentId) {
|
|
11
|
+
try {
|
|
12
|
+
const result = await axiosInstance.get(`${BASE_PATH}/${contentType}/${documentId}`);
|
|
13
|
+
return result.data.isExcluded;
|
|
14
|
+
} catch (error) {
|
|
15
|
+
console.error("Error getting entry exclusion:", error);
|
|
16
|
+
throw error;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Set entry exclusion state for a specific entry
|
|
21
|
+
*/
|
|
22
|
+
static async setEntryExclusion(contentType, documentId, isExcluded) {
|
|
23
|
+
try {
|
|
24
|
+
const result = await axiosInstance.put(`${BASE_PATH}/${contentType}/${documentId}`, {
|
|
25
|
+
isExcluded
|
|
26
|
+
});
|
|
27
|
+
return result.data.isExcluded;
|
|
28
|
+
} catch (error) {
|
|
29
|
+
console.error("Error setting entry exclusion:", error);
|
|
30
|
+
throw error;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Set exclusion state for multiple entries
|
|
35
|
+
*/
|
|
36
|
+
static async setMultipleEntriesExclusion(contentType, documentIds, isExcluded) {
|
|
37
|
+
try {
|
|
38
|
+
for (let i = 0; i < documentIds.length; i++) {
|
|
39
|
+
const docId = documentIds[i];
|
|
40
|
+
await this.setEntryExclusion(contentType, docId, isExcluded);
|
|
41
|
+
}
|
|
42
|
+
} catch (error) {
|
|
43
|
+
console.error("Error setting multiple entries exclusion:", error);
|
|
44
|
+
throw error;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Get all excluded entries for a content type
|
|
49
|
+
*/
|
|
50
|
+
static async getContentTypeExclusions(contentType) {
|
|
51
|
+
try {
|
|
52
|
+
const result = await axiosInstance.get(`${BASE_PATH}/${contentType}`);
|
|
53
|
+
return result.data.excludedIds;
|
|
54
|
+
} catch (error) {
|
|
55
|
+
console.error("Error getting content type exclusions:", error);
|
|
56
|
+
throw error;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
exports.default = EntryExclusionService;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const set = require("./set-
|
|
3
|
-
const index = require("./index-
|
|
2
|
+
const set = require("./set-CmcBsVOP.js");
|
|
3
|
+
const index = require("./index-Q3-srfXc.js");
|
|
4
|
+
const _commonjsHelpers = require("./_commonjsHelpers-Bc2YnDe1.js");
|
|
4
5
|
function baseGet(object, path) {
|
|
5
6
|
path = set.castPath(path, object);
|
|
6
7
|
var index2 = 0, length = path.length;
|
|
@@ -211,7 +212,7 @@ function deepKeys(obj, stack, parent, intermediate) {
|
|
|
211
212
|
var deepKeys_1 = function(obj, intermediate) {
|
|
212
213
|
return deepKeys(obj, [], null, intermediate);
|
|
213
214
|
};
|
|
214
|
-
const deepKeys$1 = /* @__PURE__ */
|
|
215
|
+
const deepKeys$1 = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(deepKeys_1);
|
|
215
216
|
const sortByModelName = (a, b) => {
|
|
216
217
|
const uidA = Object.keys(a)[0].toLowerCase();
|
|
217
218
|
const uidB = Object.keys(b)[0].toLowerCase();
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as createStrapiApiAxiosInstance } from "./index-
|
|
1
|
+
import { q as castPath, t as toKey, r as Set, d as setToArray, S as SetCache, a as cacheHas, P as PluginSettingsService } from "./set-BRyy4Ra6.mjs";
|
|
2
|
+
import { c as createStrapiApiAxiosInstance } from "./index-C15Goe6p.mjs";
|
|
3
|
+
import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-DWwsNxpa.mjs";
|
|
3
4
|
function baseGet(object, path) {
|
|
4
5
|
path = castPath(path, object);
|
|
5
6
|
var index = 0, length = path.length;
|