@localazy/strapi-plugin 1.3.0 → 1.4.0
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-CtBRO-Cn.js → FetchIdentity-BpFOT163.js} +2 -2
- package/dist/_chunks/{FetchIdentity-BJGoZPpM.mjs → FetchIdentity-Cor4ooZv.mjs} +2 -2
- package/dist/_chunks/{LanguagesSelector-DJxgCwgM.mjs → LanguagesSelector-BbrMKwQY.mjs} +3 -3
- package/dist/_chunks/{LanguagesSelector-CNaKrS-m.js → LanguagesSelector-CC1ecWnc.js} +3 -3
- package/dist/_chunks/{LocalazyApp-B1qCCEPe.js → LocalazyApp-D0JGRQeF.js} +85 -8
- package/dist/_chunks/{LocalazyApp-CJRpsTKr.mjs → LocalazyApp-DpFR8p10.mjs} +86 -9
- package/dist/_chunks/{LocalazyContentTransferSetup-CCxiLHdG.js → LocalazyContentTransferSetup-Cr7D-BUi.js} +5 -5
- package/dist/_chunks/{LocalazyContentTransferSetup-CLAWn95U.mjs → LocalazyContentTransferSetup-Dael1Q4w.mjs} +5 -5
- package/dist/_chunks/{LocalazyGlobalSettings-BJ5qfFfK.js → LocalazyGlobalSettings-D3nG4zl7.js} +6 -6
- package/dist/_chunks/{LocalazyGlobalSettings-Z-4Ykc_J.mjs → LocalazyGlobalSettings-DzBI5M-K.mjs} +6 -6
- package/dist/_chunks/{LocalazyPanel-DE3TtHOQ.js → LocalazyPanel-KQPLxTDz.js} +3 -3
- package/dist/_chunks/{LocalazyPanel-CL_mzzfD.mjs → LocalazyPanel-W6j8N1WC.mjs} +3 -3
- package/dist/_chunks/{LocalazyStatusColumn-BMLcklG-.js → LocalazyStatusColumn-B7Q_U2Lu.js} +2 -2
- package/dist/_chunks/{LocalazyStatusColumn-R5n6q_cx.mjs → LocalazyStatusColumn-CrhsCjgp.mjs} +2 -2
- package/dist/_chunks/{RequireLocalazyAuth-Dzsu6UNS.mjs → RequireLocalazyAuth-BwoGRfJq.mjs} +4 -4
- package/dist/_chunks/{RequireLocalazyAuth-WKKFdQlR.js → RequireLocalazyAuth-D3GeZPDh.js} +4 -4
- package/dist/_chunks/{entry-exclusion-service-CggmAKxq.js → entry-exclusion-service-Bwruvyce.js} +1 -1
- package/dist/_chunks/{entry-exclusion-service-DxqTlZFR.mjs → entry-exclusion-service-D7gaRHPE.mjs} +1 -1
- package/dist/_chunks/{has-model-changed-BR53L6pA.js → has-model-changed-5IV9WI_-.js} +2 -2
- package/dist/_chunks/{has-model-changed-FMGVcFHU.mjs → has-model-changed-Dp2Vkwjw.mjs} +2 -2
- package/dist/_chunks/{i18n-CAsbU4pi.js → i18n-C_5tJvr0.js} +5 -1
- package/dist/_chunks/{i18n-QelOdIB2.mjs → i18n-o24yXf-j.mjs} +5 -1
- package/dist/_chunks/{index-CHjIMO9T.mjs → index-BjL9XpRh.mjs} +4 -3
- package/dist/_chunks/{index-toauQlIK.mjs → index-C9hN3KbD.mjs} +8 -8
- package/dist/_chunks/{index-BK7lmZSN.js → index-CTkxoioB.js} +1 -0
- package/dist/_chunks/{index-BmxGKspv.js → index-jAg6jjCu.js} +8 -8
- package/dist/_chunks/{strapi-api-base-BflplVsH.mjs → strapi-api-base-CAzGcwF6.mjs} +1 -1
- package/dist/_chunks/{strapi-api-base-CT9lknwW.js → strapi-api-base-IG3Pe5Sg.js} +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/modules/activity-logs/locale/en.d.ts +4 -0
- package/dist/admin/src/modules/activity-logs/services/debug-bundle-service.d.ts +10 -0
- package/dist/server/index.js +510 -4
- package/dist/server/index.mjs +510 -5
- package/dist/server/src/controllers/debug-bundle-controller.d.ts +7 -0
- package/dist/server/src/controllers/index.d.ts +5 -0
- package/dist/server/src/core/index.d.ts +2 -0
- package/dist/server/src/db/model/activity-logs.d.ts +10 -0
- package/dist/server/src/index.d.ts +7 -0
- package/dist/server/src/routes/debug-bundle-routes.d.ts +9 -0
- package/dist/server/src/services/activity-logs-service.d.ts +3 -1
- package/dist/server/src/services/index.d.ts +2 -0
- package/dist/server/src/utils/build-debug-bundle.d.ts +68 -0
- package/dist/server/src/utils/sanitize-debug-bundle.d.ts +25 -0
- package/package.json +2 -1
|
@@ -58,13 +58,13 @@ const index = {
|
|
|
58
58
|
try {
|
|
59
59
|
const contentManagerPlugin = app.getPlugin("content-manager");
|
|
60
60
|
if (contentManagerPlugin?.apis?.addEditViewSidePanel) {
|
|
61
|
-
const { default: LocalazyPanel } = await import("./LocalazyPanel-
|
|
61
|
+
const { default: LocalazyPanel } = await import("./LocalazyPanel-W6j8N1WC.mjs");
|
|
62
62
|
const apis = contentManagerPlugin.apis;
|
|
63
63
|
apis.addEditViewSidePanel([LocalazyPanel]);
|
|
64
64
|
} else {
|
|
65
65
|
console.warn('Localazy Plugin: Content Manager "addEditViewSidePanel" API not available');
|
|
66
66
|
}
|
|
67
|
-
const { default: LocalazyStatusColumn } = await import("./LocalazyStatusColumn-
|
|
67
|
+
const { default: LocalazyStatusColumn } = await import("./LocalazyStatusColumn-CrhsCjgp.mjs");
|
|
68
68
|
app.registerHook("Admin/CM/pages/ListView/inject-column-in-table", (params) => {
|
|
69
69
|
try {
|
|
70
70
|
console.log("Localazy: Hook called with params:", params);
|
|
@@ -97,7 +97,7 @@ const index = {
|
|
|
97
97
|
});
|
|
98
98
|
if (contentManagerPlugin?.apis?.addBulkAction) {
|
|
99
99
|
const { useNotification } = await import("@strapi/strapi/admin");
|
|
100
|
-
await import("./i18n-
|
|
100
|
+
await import("./i18n-o24yXf-j.mjs");
|
|
101
101
|
const { useTranslation } = await import("./index-BIbKC7-V.mjs");
|
|
102
102
|
const ExcludeFromTranslationAction = (props) => {
|
|
103
103
|
const { documents, model } = props;
|
|
@@ -112,7 +112,7 @@ const index = {
|
|
|
112
112
|
type: "info",
|
|
113
113
|
message: t("plugin_settings.bulk_action_updating_entries")
|
|
114
114
|
});
|
|
115
|
-
const { default: EntryExclusionService } = await import("./entry-exclusion-service-
|
|
115
|
+
const { default: EntryExclusionService } = await import("./entry-exclusion-service-D7gaRHPE.mjs");
|
|
116
116
|
const documentIds = documents.map((doc) => doc.documentId);
|
|
117
117
|
await EntryExclusionService.setMultipleEntriesExclusion(model, documentIds, true);
|
|
118
118
|
toggleNotification({
|
|
@@ -143,7 +143,7 @@ const index = {
|
|
|
143
143
|
type: "info",
|
|
144
144
|
message: t("plugin_settings.bulk_action_updating_entries")
|
|
145
145
|
});
|
|
146
|
-
const { default: EntryExclusionService } = await import("./entry-exclusion-service-
|
|
146
|
+
const { default: EntryExclusionService } = await import("./entry-exclusion-service-D7gaRHPE.mjs");
|
|
147
147
|
const documentIds = documents.map((doc) => doc.documentId);
|
|
148
148
|
await EntryExclusionService.setMultipleEntriesExclusion(model, documentIds, false);
|
|
149
149
|
toggleNotification({
|
|
@@ -179,7 +179,7 @@ const addMenuLink = (app) => {
|
|
|
179
179
|
id: `${PLUGIN_ID}.name`,
|
|
180
180
|
defaultMessage: "Localazy"
|
|
181
181
|
},
|
|
182
|
-
Component: () => import("./LocalazyApp-
|
|
182
|
+
Component: () => import("./LocalazyApp-DpFR8p10.mjs")
|
|
183
183
|
});
|
|
184
184
|
};
|
|
185
185
|
const addSettingsSection = (app) => {
|
|
@@ -200,7 +200,7 @@ const addSettingsSection = (app) => {
|
|
|
200
200
|
defaultMessage: "Localazy Settings"
|
|
201
201
|
},
|
|
202
202
|
to: `${PLUGIN_ID}/global-settings`,
|
|
203
|
-
Component: () => import("./LocalazyGlobalSettings-
|
|
203
|
+
Component: () => import("./LocalazyGlobalSettings-DzBI5M-K.mjs"),
|
|
204
204
|
permissions: []
|
|
205
205
|
},
|
|
206
206
|
// Content Transfer Setup
|
|
@@ -211,7 +211,7 @@ const addSettingsSection = (app) => {
|
|
|
211
211
|
defaultMessage: "Content Transfer Setup"
|
|
212
212
|
},
|
|
213
213
|
to: `${PLUGIN_ID}/content-transfer-setup`,
|
|
214
|
-
Component: () => import("./LocalazyContentTransferSetup-
|
|
214
|
+
Component: () => import("./LocalazyContentTransferSetup-Dael1Q4w.mjs"),
|
|
215
215
|
permissions: []
|
|
216
216
|
}
|
|
217
217
|
]
|
|
@@ -51141,6 +51141,7 @@ exports.SubNavSections = SubNavSections;
|
|
|
51141
51141
|
exports.SwitchImpl = SwitchImpl;
|
|
51142
51142
|
exports.Tabs = Tabs;
|
|
51143
51143
|
exports.Toggle = Toggle;
|
|
51144
|
+
exports.TooltipImpl = TooltipImpl;
|
|
51144
51145
|
exports.Typography = Typography;
|
|
51145
51146
|
exports.darkTheme = darkTheme;
|
|
51146
51147
|
exports.lightTheme = lightTheme;
|
|
@@ -83,13 +83,13 @@ const index = {
|
|
|
83
83
|
try {
|
|
84
84
|
const contentManagerPlugin = app.getPlugin("content-manager");
|
|
85
85
|
if (contentManagerPlugin?.apis?.addEditViewSidePanel) {
|
|
86
|
-
const { default: LocalazyPanel } = await Promise.resolve().then(() => require("./LocalazyPanel-
|
|
86
|
+
const { default: LocalazyPanel } = await Promise.resolve().then(() => require("./LocalazyPanel-KQPLxTDz.js"));
|
|
87
87
|
const apis = contentManagerPlugin.apis;
|
|
88
88
|
apis.addEditViewSidePanel([LocalazyPanel]);
|
|
89
89
|
} else {
|
|
90
90
|
console.warn('Localazy Plugin: Content Manager "addEditViewSidePanel" API not available');
|
|
91
91
|
}
|
|
92
|
-
const { default: LocalazyStatusColumn } = await Promise.resolve().then(() => require("./LocalazyStatusColumn-
|
|
92
|
+
const { default: LocalazyStatusColumn } = await Promise.resolve().then(() => require("./LocalazyStatusColumn-B7Q_U2Lu.js"));
|
|
93
93
|
app.registerHook("Admin/CM/pages/ListView/inject-column-in-table", (params) => {
|
|
94
94
|
try {
|
|
95
95
|
console.log("Localazy: Hook called with params:", params);
|
|
@@ -122,7 +122,7 @@ const index = {
|
|
|
122
122
|
});
|
|
123
123
|
if (contentManagerPlugin?.apis?.addBulkAction) {
|
|
124
124
|
const { useNotification } = await import("@strapi/strapi/admin");
|
|
125
|
-
await Promise.resolve().then(() => require("./i18n-
|
|
125
|
+
await Promise.resolve().then(() => require("./i18n-C_5tJvr0.js"));
|
|
126
126
|
const { useTranslation } = await Promise.resolve().then(() => require("./index-1he9s_bs.js"));
|
|
127
127
|
const ExcludeFromTranslationAction = (props) => {
|
|
128
128
|
const { documents, model } = props;
|
|
@@ -137,7 +137,7 @@ const index = {
|
|
|
137
137
|
type: "info",
|
|
138
138
|
message: t("plugin_settings.bulk_action_updating_entries")
|
|
139
139
|
});
|
|
140
|
-
const { default: EntryExclusionService } = await Promise.resolve().then(() => require("./entry-exclusion-service-
|
|
140
|
+
const { default: EntryExclusionService } = await Promise.resolve().then(() => require("./entry-exclusion-service-Bwruvyce.js"));
|
|
141
141
|
const documentIds = documents.map((doc) => doc.documentId);
|
|
142
142
|
await EntryExclusionService.setMultipleEntriesExclusion(model, documentIds, true);
|
|
143
143
|
toggleNotification({
|
|
@@ -168,7 +168,7 @@ const index = {
|
|
|
168
168
|
type: "info",
|
|
169
169
|
message: t("plugin_settings.bulk_action_updating_entries")
|
|
170
170
|
});
|
|
171
|
-
const { default: EntryExclusionService } = await Promise.resolve().then(() => require("./entry-exclusion-service-
|
|
171
|
+
const { default: EntryExclusionService } = await Promise.resolve().then(() => require("./entry-exclusion-service-Bwruvyce.js"));
|
|
172
172
|
const documentIds = documents.map((doc) => doc.documentId);
|
|
173
173
|
await EntryExclusionService.setMultipleEntriesExclusion(model, documentIds, false);
|
|
174
174
|
toggleNotification({
|
|
@@ -204,7 +204,7 @@ const addMenuLink = (app) => {
|
|
|
204
204
|
id: `${PLUGIN_ID}.name`,
|
|
205
205
|
defaultMessage: "Localazy"
|
|
206
206
|
},
|
|
207
|
-
Component: () => Promise.resolve().then(() => require("./LocalazyApp-
|
|
207
|
+
Component: () => Promise.resolve().then(() => require("./LocalazyApp-D0JGRQeF.js"))
|
|
208
208
|
});
|
|
209
209
|
};
|
|
210
210
|
const addSettingsSection = (app) => {
|
|
@@ -225,7 +225,7 @@ const addSettingsSection = (app) => {
|
|
|
225
225
|
defaultMessage: "Localazy Settings"
|
|
226
226
|
},
|
|
227
227
|
to: `${PLUGIN_ID}/global-settings`,
|
|
228
|
-
Component: () => Promise.resolve().then(() => require("./LocalazyGlobalSettings-
|
|
228
|
+
Component: () => Promise.resolve().then(() => require("./LocalazyGlobalSettings-D3nG4zl7.js")),
|
|
229
229
|
permissions: []
|
|
230
230
|
},
|
|
231
231
|
// Content Transfer Setup
|
|
@@ -236,7 +236,7 @@ const addSettingsSection = (app) => {
|
|
|
236
236
|
defaultMessage: "Content Transfer Setup"
|
|
237
237
|
},
|
|
238
238
|
to: `${PLUGIN_ID}/content-transfer-setup`,
|
|
239
|
-
Component: () => Promise.resolve().then(() => require("./LocalazyContentTransferSetup-
|
|
239
|
+
Component: () => Promise.resolve().then(() => require("./LocalazyContentTransferSetup-Cr7D-BUi.js")),
|
|
240
240
|
permissions: []
|
|
241
241
|
}
|
|
242
242
|
]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getFetchClient } from "@strapi/strapi/admin";
|
|
2
|
-
import { P as PLUGIN_ID } from "./index-
|
|
2
|
+
import { P as PLUGIN_ID } from "./index-C9hN3KbD.mjs";
|
|
3
3
|
const BASE_PLUGIN_PATH = `/${PLUGIN_ID}`;
|
|
4
4
|
const LOCALAZY_HEADER = { "X-Localazy-Initiated-By": "strapi-plugin-localazy" };
|
|
5
5
|
const withPluginHeader = (config) => ({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const admin = require("@strapi/strapi/admin");
|
|
3
|
-
const index = require("./index-
|
|
3
|
+
const index = require("./index-jAg6jjCu.js");
|
|
4
4
|
const BASE_PLUGIN_PATH = `/${index.PLUGIN_ID}`;
|
|
5
5
|
const LOCALAZY_HEADER = { "X-Localazy-Initiated-By": "strapi-plugin-localazy" };
|
|
6
6
|
const withPluginHeader = (config) => ({
|
package/dist/admin/index.js
CHANGED
package/dist/admin/index.mjs
CHANGED
|
@@ -29,5 +29,9 @@ declare const _default: {
|
|
|
29
29
|
date_from: string;
|
|
30
30
|
date_to: string;
|
|
31
31
|
retention_info: string;
|
|
32
|
+
download_bundle: string;
|
|
33
|
+
download_bundle_warning: string;
|
|
34
|
+
download_bundle_success: string;
|
|
35
|
+
download_bundle_error: string;
|
|
32
36
|
};
|
|
33
37
|
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type BrowserInfo = {
|
|
2
|
+
userAgent?: string;
|
|
3
|
+
language?: string;
|
|
4
|
+
viewport?: {
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
};
|
|
8
|
+
consoleErrors?: string[];
|
|
9
|
+
};
|
|
10
|
+
export declare const downloadDebugBundle: (sessionId: string, token: string | null, browserInfo: BrowserInfo) => Promise<void>;
|