@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.
Files changed (56) hide show
  1. package/dist/_chunks/{App-CtS6CrNn.mjs → App-C0ogWaOz.mjs} +8 -4
  2. package/dist/_chunks/{App-NRmSxuW3.js → App-Dl58PZKy.js} +91 -87
  3. package/dist/_chunks/{ContentTransferSetup-CeKXlzw_.mjs → ContentTransferSetup-ClR8Nwv2.mjs} +41 -452
  4. package/dist/_chunks/{ContentTransferSetup-DGs8MZPj.js → ContentTransferSetup-DWQg9zDj.js} +91 -502
  5. package/dist/_chunks/{GlobalSettings-rOwd0Y0E.mjs → GlobalSettings-B_h5sPwa.mjs} +7 -4
  6. package/dist/_chunks/{GlobalSettings-CRMPRA3Y.js → GlobalSettings-BpY7BoXu.js} +43 -40
  7. package/dist/_chunks/{LanguagesSelector-Bd8VFHib.js → LanguagesSelector-Bfrsr3-P.js} +10 -8
  8. package/dist/_chunks/{LanguagesSelector-CeB7tVcb.mjs → LanguagesSelector-u9iDsQqB.mjs} +4 -2
  9. package/dist/_chunks/LocalazyPanel-BedTxk3C.js +83 -0
  10. package/dist/_chunks/LocalazyPanel-CuvdSJYx.mjs +83 -0
  11. package/dist/_chunks/LocalazyStatusColumn-955GpXAv.mjs +51 -0
  12. package/dist/_chunks/LocalazyStatusColumn-Bf1ntoc7.js +51 -0
  13. package/dist/_chunks/_commonjsHelpers-Bc2YnDe1.js +7 -0
  14. package/dist/_chunks/_commonjsHelpers-DWwsNxpa.mjs +8 -0
  15. package/dist/_chunks/en-CMWcM0nM.js +10 -0
  16. package/dist/_chunks/en-RX915msK.mjs +10 -0
  17. package/dist/_chunks/entry-exclusion-service-BlyFqyBY.mjs +60 -0
  18. package/dist/_chunks/entry-exclusion-service-bm-lp4za.js +60 -0
  19. package/dist/_chunks/{has-model-changed-gNSOSMBa.js → has-model-changed-B5SSh8XW.js} +4 -3
  20. package/dist/_chunks/{has-model-changed-DViUIQHk.mjs → has-model-changed-DIHY9LBA.mjs} +3 -2
  21. package/dist/_chunks/i18n-0dV2P-Hm.js +2378 -0
  22. package/dist/_chunks/i18n-RoETLXdU.mjs +2378 -0
  23. package/dist/_chunks/index-1he9s_bs.js +430 -0
  24. package/dist/_chunks/index-BIbKC7-V.mjs +432 -0
  25. package/dist/_chunks/{index-Dj68Ixl2.mjs → index-C15Goe6p.mjs} +120 -4
  26. package/dist/_chunks/{set-Cbi1yYuW.js → index-CaY3BYnQ.js} +878 -4379
  27. package/dist/_chunks/{set-Dnhh_SyE.mjs → index-DOCSzcPH.mjs} +907 -4409
  28. package/dist/_chunks/{index-Bbwk3kp3.js → index-Q3-srfXc.js} +142 -4
  29. package/dist/_chunks/initReactI18next-B0H8_DlW.js +60 -0
  30. package/dist/_chunks/initReactI18next-MHHxeg_9.mjs +61 -0
  31. package/dist/_chunks/{isEqual-CC-cEPwY.mjs → isEqual-BazjlHGf.mjs} +1 -1
  32. package/dist/_chunks/{isEqual-0M0aSdTT.js → isEqual-CrlZhAtq.js} +1 -1
  33. package/dist/_chunks/set-BRyy4Ra6.mjs +893 -0
  34. package/dist/_chunks/set-CmcBsVOP.js +891 -0
  35. package/dist/_chunks/useTranslation-BdIl-aLe.js +188 -0
  36. package/dist/_chunks/useTranslation-CZQ4lU1m.mjs +189 -0
  37. package/dist/admin/index.js +1 -1
  38. package/dist/admin/index.mjs +1 -1
  39. package/dist/admin/src/components/LocalazyPanel.d.ts +4 -0
  40. package/dist/admin/src/components/LocalazyStatusColumn.d.ts +3 -0
  41. package/dist/admin/src/index.d.ts +1 -0
  42. package/dist/admin/src/modules/entry-exclusion/services/entry-exclusion-service.d.ts +18 -0
  43. package/dist/admin/src/modules/plugin-settings/locale/en.d.ts +8 -0
  44. package/dist/server/index.js +234 -40
  45. package/dist/server/index.mjs +234 -40
  46. package/dist/server/src/controllers/entry-exclusion-controller.d.ts +21 -0
  47. package/dist/server/src/controllers/index.d.ts +7 -0
  48. package/dist/server/src/core/index.d.ts +6 -0
  49. package/dist/server/src/index.d.ts +15 -0
  50. package/dist/server/src/routes/entry-exclusion-routes.d.ts +9 -0
  51. package/dist/server/src/services/entry-exclusion-service.d.ts +23 -0
  52. package/dist/server/src/services/index.d.ts +8 -0
  53. package/dist/server/src/utils/drop-property-deep.d.ts +2 -0
  54. package/package.json +2 -2
  55. package/dist/_chunks/en-BTf8goGM.mjs +0 -8
  56. 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-Cbi1yYuW.js");
3
- const index = require("./index-Bbwk3kp3.js");
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__ */ set.getDefaultExportFromCjs(deepKeys_1);
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 { W as castPath, X as toKey, Y as Set, Z as setToArray, _ as SetCache, $ as cacheHas, g as getDefaultExportFromCjs, P as PluginSettingsService } from "./set-Dnhh_SyE.mjs";
2
- import { c as createStrapiApiAxiosInstance } from "./index-Dj68Ixl2.mjs";
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;