@sensinum/strapi-plugin-multi-domain 5.3.1 → 5.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/README.md +23 -0
- package/dist/admin/{About-DaHQ_Yhm.mjs → About--uEAqLIX.mjs} +3 -3
- package/dist/admin/{About-Cqb0Poxw.js → About-CpMJJUxU.js} +1 -1
- package/dist/admin/{Settings-CDBzsWbm.js → Settings-SyBK2mXN.js} +1 -1
- package/dist/admin/{Settings-CyMoV2x8.mjs → Settings-yCKWEkTW.mjs} +2 -2
- package/dist/admin/{TenantCustomField-BVJXtOh1.js → TenantCustomField-DLQLr0HX.js} +1 -1
- package/dist/admin/{TenantCustomField-ZM7ZfiGu.mjs → TenantCustomField-zLI8HKGa.mjs} +1 -1
- package/dist/admin/{TenantEdit-DBJoQv4w.mjs → TenantEdit-Bhpv-xqt.mjs} +4 -4
- package/dist/admin/{TenantEdit-GAMHwYkP.js → TenantEdit-DUZWciyV.js} +1 -1
- package/dist/admin/{TenantList-D8hgcBHM.js → TenantList-Cs5Agguv.js} +1 -1
- package/dist/admin/{TenantList-C6xsvthy.mjs → TenantList-DFa4aJ9w.mjs} +4 -4
- package/dist/admin/{index-eSOlzCRc.js → index-B7hXre99.js} +1 -1
- package/dist/admin/{index-CwsztY3K.mjs → index-CSqflswp.mjs} +1 -1
- package/dist/admin/{index-CQxsvheX.mjs → index-ChZO7NH2.mjs} +64 -63
- package/dist/admin/index-DjpG-ImS.js +1 -0
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/useGetMessage-C-9R7SfL.js +1 -0
- package/dist/admin/{useGetMessage-Ck4TSmSw.mjs → useGetMessage-CToHlpPZ.mjs} +1 -1
- package/dist/admin/{useSettings-DY1d6P_T.mjs → useSettings-FYcMKMRt.mjs} +1 -1
- package/dist/admin/{useSettings-CkTWZxdH.js → useSettings-Rpo2aG-K.js} +1 -1
- package/dist/admin/{useTenants-Ck1OOTGx.js → useTenants-BU_qERzP.js} +1 -1
- package/dist/admin/{useTenants-sy0FweCJ.mjs → useTenants-CmlcxJMg.mjs} +2 -2
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +3682 -3237
- package/package.json +1 -1
- package/dist/admin/index-BwgjJmHR.js +0 -1
- package/dist/admin/useGetMessage-gI6hxpcF.js +0 -1
package/README.md
CHANGED
|
@@ -259,6 +259,7 @@ This plugin provides domain-scoped data isolation for the following third-party
|
|
|
259
259
|
- [strapi-plugin-navigation](https://github.com/VirtusLab-Open-Source/strapi-plugin-navigation)
|
|
260
260
|
- [strapi-plugin-comments](https://github.com/VirtusLab-Open-Source/strapi-plugin-comments)
|
|
261
261
|
- [strapi-plugin-reactions](https://github.com/VirtusLab-Open-Source/strapi-plugin-reactions)
|
|
262
|
+
- [strapi-plugin-cross-environment-content-promotion](https://github.com/VirtusLab-Open-Source/strapi-plugin-cross-environment-content-promotion) (XECP)
|
|
262
263
|
|
|
263
264
|
### strapi-plugin-navigation
|
|
264
265
|
|
|
@@ -284,6 +285,28 @@ X-Author-Authorization: Bearer <users-permissions-jwt>
|
|
|
284
285
|
|
|
285
286
|
This header is processed on reaction endpoints: listing, creating, deleting, and toggling reactions. If the token is valid, the resolved Strapi user is set as the reaction author. The reactions plugin also supports its own `X-Reactions-Author` header for custom (non-Strapi) users. When `X-Reactions-Author` is present, `X-Author-Authorization` is ignored — custom author identification takes precedence.
|
|
286
287
|
|
|
288
|
+
### strapi-plugin-cross-environment-content-promotion (XECP)
|
|
289
|
+
|
|
290
|
+
When XECP is installed alongside multi-domain, the integration activates automatically, no extra multi-domain configuration is needed.
|
|
291
|
+
Sync jobs, entity snapshots, and XECP operations are scoped to the **domain selected in the admin panel**, the same way Content Manager entries are created. Choose a real domain before using XECP operations from the Super Admin domain are blocked.
|
|
292
|
+
The sync queue is **shared across the whole instance**: only one job runs at a time, but each domain can queue its own jobs including the same content type on different domains. When a sync finishes, the next queued job from any domain is picked up automatically. Cancel and resume apply only to jobs that belong to your current domain.
|
|
293
|
+
|
|
294
|
+
**Required XECP configuration**
|
|
295
|
+
Domain records are local to each environment and must not be promoted or synced like regular content. Add your domain content-type UID to XECP `nonPromotableContentTypes` (default: `plugin::multi-domain.domain`). If you customized `shared/pluginIds.ts` or the plugin name in `package.json`, use the matching UID `plugin::<pluginId>.<modelId>`.
|
|
296
|
+
|
|
297
|
+
```javascript
|
|
298
|
+
// config/plugins.js
|
|
299
|
+
module.exports = {
|
|
300
|
+
'strapi-plugin-cross-environment-content-promotion': {
|
|
301
|
+
enabled: true,
|
|
302
|
+
config: {
|
|
303
|
+
// encryptionKey, contentTypes, remoteUrl, ...
|
|
304
|
+
nonPromotableContentTypes: ['plugin::multi-domain.domain'],
|
|
305
|
+
},
|
|
306
|
+
},
|
|
307
|
+
};
|
|
308
|
+
```
|
|
309
|
+
|
|
287
310
|
## 📝 License
|
|
288
311
|
|
|
289
312
|
All rights reserved. Copyright (c) [VirtusLab Ltd](https://virtuslab.com/).
|
|
@@ -3,9 +3,9 @@ import { Page as l, Layouts as a } from "@strapi/admin/strapi-admin";
|
|
|
3
3
|
import { Typography as A, Flex as n, Divider as g, Box as D, ProgressBar as h, Link as X } from "@strapi/design-system";
|
|
4
4
|
import { useMemo as j } from "react";
|
|
5
5
|
import H from "styled-components";
|
|
6
|
-
import { p as P, a as z } from "./index-
|
|
7
|
-
import { u as C } from "./useGetMessage-
|
|
8
|
-
import { u as m } from "./useSettings-
|
|
6
|
+
import { p as P, a as z } from "./index-ChZO7NH2.mjs";
|
|
7
|
+
import { u as C } from "./useGetMessage-CToHlpPZ.mjs";
|
|
8
|
+
import { u as m } from "./useSettings-FYcMKMRt.mjs";
|
|
9
9
|
import { Q as x } from "./QueryProvider-oO97LaUB.mjs";
|
|
10
10
|
const R = () => /* @__PURE__ */ d("svg", { width: "19", height: "15", viewBox: "0 0 19 15", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ d(
|
|
11
11
|
"path",
|