@strapi/review-workflows 5.0.4 → 5.0.6

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 (33) hide show
  1. package/dist/_chunks/{Layout-C9m07iTY.mjs → Layout-BJOxxAeM.mjs} +2 -2
  2. package/dist/_chunks/{Layout-C9m07iTY.mjs.map → Layout-BJOxxAeM.mjs.map} +1 -1
  3. package/dist/_chunks/{Layout-8i0EXRRs.js → Layout-DnEAvmeU.js} +2 -2
  4. package/dist/_chunks/{Layout-8i0EXRRs.js.map → Layout-DnEAvmeU.js.map} +1 -1
  5. package/dist/_chunks/{id-DV0Ndeav.mjs → _id-6LK95-rZ.mjs} +4 -3
  6. package/dist/_chunks/_id-6LK95-rZ.mjs.map +1 -0
  7. package/dist/_chunks/{id-CmtaTf1x.js → _id-DSDzUpwX.js} +4 -3
  8. package/dist/_chunks/_id-DSDzUpwX.js.map +1 -0
  9. package/dist/_chunks/{index-B8WmHbCU.js → index-6FZL88pd.js} +3 -3
  10. package/dist/_chunks/{index-B8WmHbCU.js.map → index-6FZL88pd.js.map} +1 -1
  11. package/dist/_chunks/{index-BCUO98DV.js → index-DZSLya4b.js} +5 -2
  12. package/dist/_chunks/{index-BCUO98DV.js.map → index-DZSLya4b.js.map} +1 -1
  13. package/dist/_chunks/{index-CA5Axcoc.mjs → index-Df1alkCk.mjs} +3 -3
  14. package/dist/_chunks/{index-CA5Axcoc.mjs.map → index-Df1alkCk.mjs.map} +1 -1
  15. package/dist/_chunks/{index-CqYVkW3E.mjs → index-lJqpw8bs.mjs} +5 -2
  16. package/dist/_chunks/{index-CqYVkW3E.mjs.map → index-lJqpw8bs.mjs.map} +1 -1
  17. package/dist/_chunks/{router-BOXlNnrU.js → router-CZqe-02r.js} +3 -3
  18. package/dist/_chunks/router-CZqe-02r.js.map +1 -0
  19. package/dist/_chunks/{router-Jdt6SbIA.mjs → router-DeSH-NeW.mjs} +3 -3
  20. package/dist/_chunks/router-DeSH-NeW.mjs.map +1 -0
  21. package/dist/admin/index.js +1 -1
  22. package/dist/admin/index.mjs +1 -1
  23. package/dist/server/index.js +7 -9
  24. package/dist/server/index.js.map +1 -1
  25. package/dist/server/index.mjs +7 -9
  26. package/dist/server/index.mjs.map +1 -1
  27. package/dist/server/src/services/stages.d.ts.map +1 -1
  28. package/package.json +6 -6
  29. package/dist/_chunks/id-CmtaTf1x.js.map +0 -1
  30. package/dist/_chunks/id-DV0Ndeav.mjs.map +0 -1
  31. package/dist/_chunks/router-BOXlNnrU.js.map +0 -1
  32. package/dist/_chunks/router-Jdt6SbIA.mjs.map +0 -1
  33. /package/dist/admin/src/routes/settings/{id.d.ts → :id.d.ts} +0 -0
@@ -4,10 +4,10 @@ const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
5
  const reactRouterDom = require("react-router-dom");
6
6
  const ProtectedListPage = React.lazy(
7
- () => Promise.resolve().then(() => require("./index-B8WmHbCU.js")).then((mod) => ({ default: mod.ProtectedListPage }))
7
+ () => Promise.resolve().then(() => require("./index-6FZL88pd.js")).then((mod) => ({ default: mod.ProtectedListPage }))
8
8
  );
9
9
  const ProtectedEditPage = React.lazy(
10
- () => Promise.resolve().then(() => require("./id-CmtaTf1x.js")).then((mod) => ({ default: mod.ProtectedEditPage }))
10
+ () => Promise.resolve().then(() => require("./_id-DSDzUpwX.js")).then((mod) => ({ default: mod.ProtectedEditPage }))
11
11
  );
12
12
  const routes = [
13
13
  {
@@ -21,4 +21,4 @@ const routes = [
21
21
  ];
22
22
  const Router = () => /* @__PURE__ */ jsxRuntime.jsx(reactRouterDom.Routes, { children: routes.map((route) => /* @__PURE__ */ jsxRuntime.jsx(reactRouterDom.Route, { ...route }, route.path)) });
23
23
  exports.Router = Router;
24
- //# sourceMappingURL=router-BOXlNnrU.js.map
24
+ //# sourceMappingURL=router-CZqe-02r.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"router-CZqe-02r.js","sources":["../../admin/src/router.tsx"],"sourcesContent":["/* eslint-disable check-file/filename-naming-convention */\nimport { lazy } from 'react';\n\nimport { Routes, Route, PathRouteProps } from 'react-router-dom';\n\nconst ProtectedListPage = lazy(() =>\n import('./routes/settings').then((mod) => ({ default: mod.ProtectedListPage }))\n);\nconst ProtectedEditPage = lazy(() =>\n import('./routes/settings/:id').then((mod) => ({ default: mod.ProtectedEditPage }))\n);\n\nconst routes: PathRouteProps[] = [\n {\n path: '/',\n Component: ProtectedListPage,\n },\n {\n path: ':id',\n Component: ProtectedEditPage,\n },\n];\n\nconst Router = () => (\n <Routes>\n {routes.map((route) => (\n <Route key={route.path} {...route} />\n ))}\n </Routes>\n);\n\nexport { Router };\n"],"names":["lazy","jsx","Routes","Route"],"mappings":";;;;;AAKA,MAAM,oBAAoBA,MAAA;AAAA,EAAK,MAC7B,QAAO,QAAA,EAAA,KAAA,MAAA,QAAA,qBAAmB,GAAE,KAAK,CAAC,SAAS,EAAE,SAAS,IAAI,kBAAA,EAAoB;AAChF;AACA,MAAM,oBAAoBA,MAAA;AAAA,EAAK,MAC7B,QAAO,QAAA,EAAA,KAAA,MAAA,QAAA,mBAAuB,GAAE,KAAK,CAAC,SAAS,EAAE,SAAS,IAAI,kBAAA,EAAoB;AACpF;AAEA,MAAM,SAA2B;AAAA,EAC/B;AAAA,IACE,MAAM;AAAA,IACN,WAAW;AAAA,EACb;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,WAAW;AAAA,EACb;AACF;AAEA,MAAM,SAAS,MACZC,2BAAAA,IAAAC,eAAAA,QAAA,EACE,iBAAO,IAAI,CAAC,UACXD,2BAAA,IAACE,wBAAwB,GAAG,MAAA,GAAhB,MAAM,IAAiB,CACpC,EACH,CAAA;;"}
@@ -2,10 +2,10 @@ import { jsx } from "react/jsx-runtime";
2
2
  import { lazy } from "react";
3
3
  import { Routes, Route } from "react-router-dom";
4
4
  const ProtectedListPage = lazy(
5
- () => import("./index-CA5Axcoc.mjs").then((mod) => ({ default: mod.ProtectedListPage }))
5
+ () => import("./index-Df1alkCk.mjs").then((mod) => ({ default: mod.ProtectedListPage }))
6
6
  );
7
7
  const ProtectedEditPage = lazy(
8
- () => import("./id-DV0Ndeav.mjs").then((mod) => ({ default: mod.ProtectedEditPage }))
8
+ () => import("./_id-6LK95-rZ.mjs").then((mod) => ({ default: mod.ProtectedEditPage }))
9
9
  );
10
10
  const routes = [
11
11
  {
@@ -21,4 +21,4 @@ const Router = () => /* @__PURE__ */ jsx(Routes, { children: routes.map((route)
21
21
  export {
22
22
  Router
23
23
  };
24
- //# sourceMappingURL=router-Jdt6SbIA.mjs.map
24
+ //# sourceMappingURL=router-DeSH-NeW.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"router-DeSH-NeW.mjs","sources":["../../admin/src/router.tsx"],"sourcesContent":["/* eslint-disable check-file/filename-naming-convention */\nimport { lazy } from 'react';\n\nimport { Routes, Route, PathRouteProps } from 'react-router-dom';\n\nconst ProtectedListPage = lazy(() =>\n import('./routes/settings').then((mod) => ({ default: mod.ProtectedListPage }))\n);\nconst ProtectedEditPage = lazy(() =>\n import('./routes/settings/:id').then((mod) => ({ default: mod.ProtectedEditPage }))\n);\n\nconst routes: PathRouteProps[] = [\n {\n path: '/',\n Component: ProtectedListPage,\n },\n {\n path: ':id',\n Component: ProtectedEditPage,\n },\n];\n\nconst Router = () => (\n <Routes>\n {routes.map((route) => (\n <Route key={route.path} {...route} />\n ))}\n </Routes>\n);\n\nexport { Router };\n"],"names":[],"mappings":";;;AAKA,MAAM,oBAAoB;AAAA,EAAK,MAC7B,OAAO,sBAAmB,EAAE,KAAK,CAAC,SAAS,EAAE,SAAS,IAAI,kBAAA,EAAoB;AAChF;AACA,MAAM,oBAAoB;AAAA,EAAK,MAC7B,OAAO,oBAAuB,EAAE,KAAK,CAAC,SAAS,EAAE,SAAS,IAAI,kBAAA,EAAoB;AACpF;AAEA,MAAM,SAA2B;AAAA,EAC/B;AAAA,IACE,MAAM;AAAA,IACN,WAAW;AAAA,EACb;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,WAAW;AAAA,EACb;AACF;AAEA,MAAM,SAAS,MACZ,oBAAA,QAAA,EACE,iBAAO,IAAI,CAAC,UACX,oBAAC,SAAwB,GAAG,MAAA,GAAhB,MAAM,IAAiB,CACpC,EACH,CAAA;"}
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
- const index = require("../_chunks/index-BCUO98DV.js");
2
+ const index = require("../_chunks/index-DZSLya4b.js");
3
3
  module.exports = index.admin;
4
4
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import { h } from "../_chunks/index-CqYVkW3E.mjs";
1
+ import { h } from "../_chunks/index-lJqpw8bs.mjs";
2
2
  export {
3
3
  h as default
4
4
  };
@@ -7332,9 +7332,7 @@ const stages$1 = ({ strapi: strapi2 }) => {
7332
7332
  const entity = await strapi2.documents(model).update({
7333
7333
  documentId,
7334
7334
  locale,
7335
- // Stage doesn't have DP or i18n enabled, connecting it through the `id`
7336
- // will be safer than relying on the `documentId` + `locale` + `status` transformation
7337
- data: { [ENTITY_STAGE_ATTRIBUTE]: fp.pick(["id"], stage) },
7335
+ data: { [ENTITY_STAGE_ATTRIBUTE]: stage },
7338
7336
  populate: [ENTITY_STAGE_ATTRIBUTE]
7339
7337
  });
7340
7338
  metrics.sendDidChangeEntryStage();
@@ -7610,13 +7608,13 @@ const reviewWorkflowsMetrics = {
7610
7608
  sendDidSendReviewWorkflowPropertiesOnceAWeek,
7611
7609
  sendDidEditAssignee
7612
7610
  };
7613
- function _typeof(o) {
7611
+ function _typeof(obj) {
7614
7612
  "@babel/helpers - typeof";
7615
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
7616
- return typeof o2;
7617
- } : function(o2) {
7618
- return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
7619
- }, _typeof(o);
7613
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
7614
+ return typeof obj2;
7615
+ } : function(obj2) {
7616
+ return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
7617
+ }, _typeof(obj);
7620
7618
  }
7621
7619
  function toInteger(dirtyNumber) {
7622
7620
  if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {