@strapi/plugin-users-permissions 5.0.0-alpha.0 → 5.0.0-alpha.2

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 (76) hide show
  1. package/admin/src/index.js +1 -2
  2. package/admin/src/pages/AdvancedSettings/index.jsx +4 -6
  3. package/admin/src/pages/EmailTemplates/components/EmailTable.jsx +4 -5
  4. package/admin/src/pages/EmailTemplates/index.jsx +5 -7
  5. package/admin/src/pages/Providers/index.jsx +6 -18
  6. package/admin/src/pages/Roles/hooks/usePlugins.js +1 -2
  7. package/admin/src/pages/Roles/pages/CreatePage.jsx +1 -2
  8. package/admin/src/pages/Roles/pages/EditPage.jsx +7 -2
  9. package/admin/src/pages/Roles/pages/ListPage/components/TableBody.jsx +2 -3
  10. package/admin/src/pages/Roles/pages/ListPage/index.jsx +33 -6
  11. package/admin/src/utils/prefixPluginTranslations.js +13 -0
  12. package/dist/_chunks/{EditViewPage-xYzUSAwS-wpHlxdkC.js → EditViewPage-JFzIJClS-9jnyNYlZ.js} +181 -167
  13. package/dist/_chunks/{EditViewPage-xYzUSAwS-wpHlxdkC.js.map → EditViewPage-JFzIJClS-9jnyNYlZ.js.map} +1 -1
  14. package/dist/_chunks/{EditViewPage-xYzUSAwS-5mOQ_-nB.mjs → EditViewPage-JFzIJClS-SluImrzz.mjs} +44 -32
  15. package/dist/_chunks/EditViewPage-JFzIJClS-SluImrzz.mjs.map +1 -0
  16. package/dist/_chunks/{ListViewPage-xOVa04T_-elahT0e9.js → ListViewPage-1VNVP9Rw-94jqnla4.js} +104 -105
  17. package/dist/_chunks/ListViewPage-1VNVP9Rw-94jqnla4.js.map +1 -0
  18. package/dist/_chunks/{ListViewPage-xOVa04T_-lbfb219V.mjs → ListViewPage-1VNVP9Rw-Ce-HkFp1.mjs} +9 -10
  19. package/dist/_chunks/ListViewPage-1VNVP9Rw-Ce-HkFp1.mjs.map +1 -0
  20. package/dist/_chunks/{ReviewWorkflowsColumn-FDxVKdto-IWfB3WVH.mjs → ReviewWorkflowsColumn-sPZxvFUd-Cd4JhTlj.mjs} +2 -2
  21. package/dist/_chunks/{ReviewWorkflowsColumn-FDxVKdto-IWfB3WVH.mjs.map → ReviewWorkflowsColumn-sPZxvFUd-Cd4JhTlj.mjs.map} +1 -1
  22. package/dist/_chunks/{ReviewWorkflowsColumn-FDxVKdto-m8hslkeI.js → ReviewWorkflowsColumn-sPZxvFUd-S2eFi9Dy.js} +5 -5
  23. package/dist/_chunks/{ReviewWorkflowsColumn-FDxVKdto-m8hslkeI.js.map → ReviewWorkflowsColumn-sPZxvFUd-S2eFi9Dy.js.map} +1 -1
  24. package/dist/_chunks/{constants-WjN6I3sL-7e3gpx4b.mjs → constants-0OGkpIzK-R5N7-OUr.mjs} +2 -2
  25. package/dist/_chunks/{constants-WjN6I3sL-7e3gpx4b.mjs.map → constants-0OGkpIzK-R5N7-OUr.mjs.map} +1 -1
  26. package/dist/_chunks/{constants-WjN6I3sL-cDZPE6ED.js → constants-0OGkpIzK-f_M9PDKN.js} +18 -18
  27. package/dist/_chunks/{constants-WjN6I3sL-cDZPE6ED.js.map → constants-0OGkpIzK-f_M9PDKN.js.map} +1 -1
  28. package/dist/_chunks/{index-VgvlwVA7.js → index-6X9XaLjS.js} +10 -11
  29. package/dist/_chunks/index-6X9XaLjS.js.map +1 -0
  30. package/dist/_chunks/{index-5ZvCaCyY-06DLg5eU.mjs → index-GIVuHJgC-_q6V7_2B.mjs} +2822 -2710
  31. package/dist/_chunks/index-GIVuHJgC-_q6V7_2B.mjs.map +1 -0
  32. package/dist/_chunks/{index-5ZvCaCyY-JgYo3Jws.js → index-GIVuHJgC-tj2acNbO.js} +2791 -2679
  33. package/dist/_chunks/index-GIVuHJgC-tj2acNbO.js.map +1 -0
  34. package/dist/_chunks/{index-TJUxOCtJ.js → index-Q5NQ4RI9.js} +20 -12
  35. package/dist/_chunks/index-Q5NQ4RI9.js.map +1 -0
  36. package/dist/_chunks/{index-MEUac_4V.js → index-RT4MW9Nr.js} +35 -37
  37. package/dist/_chunks/index-RT4MW9Nr.js.map +1 -0
  38. package/dist/_chunks/{index-A3oJlPcE.mjs → index-av_iGW-0.mjs} +31 -33
  39. package/dist/_chunks/index-av_iGW-0.mjs.map +1 -0
  40. package/dist/_chunks/{index-bRuKnVcH.js → index-heeE_h30.js} +8 -12
  41. package/dist/_chunks/index-heeE_h30.js.map +1 -0
  42. package/dist/_chunks/{index-53jX2hhF.mjs → index-iaIILeuQ.mjs} +19 -11
  43. package/dist/_chunks/index-iaIILeuQ.mjs.map +1 -0
  44. package/dist/_chunks/{index-vXywiVeM.mjs → index-pDvppjQG.mjs} +11 -12
  45. package/dist/_chunks/index-pDvppjQG.mjs.map +1 -0
  46. package/dist/_chunks/{index-mzJ2Vb5u.js → index-tFzYCM9l.js} +4 -5
  47. package/dist/_chunks/index-tFzYCM9l.js.map +1 -0
  48. package/dist/_chunks/{index-ee_14Ldw.mjs → index-vvcDunmb.mjs} +9 -13
  49. package/dist/_chunks/index-vvcDunmb.mjs.map +1 -0
  50. package/dist/_chunks/{index-N-GcFWtg.mjs → index-whB2wk2v.mjs} +6 -7
  51. package/dist/_chunks/index-whB2wk2v.mjs.map +1 -0
  52. package/dist/_chunks/{useSyncRbac-Kt8Li0Yf-Z54sMEPM.mjs → useSyncRbac-JNQibLFa-D0RzXrU4.mjs} +2 -2
  53. package/dist/_chunks/{useSyncRbac-Kt8Li0Yf-Z54sMEPM.mjs.map → useSyncRbac-JNQibLFa-D0RzXrU4.mjs.map} +1 -1
  54. package/dist/_chunks/{useSyncRbac-Kt8Li0Yf-h8HqtZ6y.js → useSyncRbac-JNQibLFa-G2N9BPgu.js} +7 -7
  55. package/dist/_chunks/{useSyncRbac-Kt8Li0Yf-h8HqtZ6y.js.map → useSyncRbac-JNQibLFa-G2N9BPgu.js.map} +1 -1
  56. package/dist/admin/index.js +1 -2
  57. package/dist/admin/index.js.map +1 -1
  58. package/dist/admin/index.mjs +1 -2
  59. package/dist/admin/index.mjs.map +1 -1
  60. package/package.json +6 -6
  61. package/admin/src/pages/Roles/pages/ListPage/utils/api.js +0 -30
  62. package/dist/_chunks/EditViewPage-xYzUSAwS-5mOQ_-nB.mjs.map +0 -1
  63. package/dist/_chunks/ListViewPage-xOVa04T_-elahT0e9.js.map +0 -1
  64. package/dist/_chunks/ListViewPage-xOVa04T_-lbfb219V.mjs.map +0 -1
  65. package/dist/_chunks/index-53jX2hhF.mjs.map +0 -1
  66. package/dist/_chunks/index-5ZvCaCyY-06DLg5eU.mjs.map +0 -1
  67. package/dist/_chunks/index-5ZvCaCyY-JgYo3Jws.js.map +0 -1
  68. package/dist/_chunks/index-A3oJlPcE.mjs.map +0 -1
  69. package/dist/_chunks/index-MEUac_4V.js.map +0 -1
  70. package/dist/_chunks/index-N-GcFWtg.mjs.map +0 -1
  71. package/dist/_chunks/index-TJUxOCtJ.js.map +0 -1
  72. package/dist/_chunks/index-VgvlwVA7.js.map +0 -1
  73. package/dist/_chunks/index-bRuKnVcH.js.map +0 -1
  74. package/dist/_chunks/index-ee_14Ldw.mjs.map +0 -1
  75. package/dist/_chunks/index-mzJ2Vb5u.js.map +0 -1
  76. package/dist/_chunks/index-vXywiVeM.mjs.map +0 -1
@@ -2,12 +2,11 @@ import { jsx, jsxs, Fragment as Fragment$1 } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
3
  import React__default, { useContext, useCallback, useState, useRef, useReducer, useMemo, useEffect, createContext, useLayoutEffect, Component as Component$1, memo as memo$1, forwardRef, Children as Children$1, isValidElement, createElement, cloneElement, Fragment } from "react";
4
4
  import { TextInput, Flex, Icon, Typography, BaseLink, Button, useComposedRefs, Popover, Field, FieldLabel, FieldInput, Box, IconButton, Divider, VisuallyHidden, FieldHint, FieldError, TextButton, BaseButton, FieldAction, IconButtonGroup, Portal, FocusTrap, InputWrapper, SingleSelect, SingleSelectOption, Tooltip, Grid as Grid$1, GridItem, KeyboardNavigable, Accordion, AccordionToggle, AccordionContent as AccordionContent$1, Main, TabGroup, Tabs, TabPanels, TabPanel, Tab as Tab$1 } from "@strapi/design-system";
5
- import { useQueryParams, useFocusInputField, useLockScroll, useQuery } from "@strapi/helper-plugin";
6
- import { a as getDefaultExportFromCjs, c as commonjsGlobal, g as getAugmentedNamespace, H as HelmetExport } from "./Helmet-kyJ1Zklj.mjs";
5
+ import { a as getDefaultExportFromCjs, c as commonjsGlobal, H as HelmetExport } from "./Helmet-kyJ1Zklj.mjs";
7
6
  import { useIntl } from "react-intl";
8
7
  import { useLocation, useParams } from "react-router-dom";
9
8
  import styled, { css, keyframes } from "styled-components";
10
- import { _ as _extends, $ as $c512c27ab02ef895$export$50c7b4e9d9f19c1, r as require$$0$2, D as DIRECTIONS, g as getTranslation, a as useField, c as createContext$1, b as contentManagerApi, d as useDoc, e as useForm, f as useNotification, h as useAPIErrorHandler, i as buildValidParams, j as useStrapiApp, k as $c512c27ab02ef895$export$fd42f52fd3ae1109, p as prefixFileUrlWithBackendUrl, l as DOCUMENT_META_FIELDS, m as useDocumentRBAC, I as InputRenderer$1, R as RelationsField, n as useDragAndDrop, o as ItemTypes, q as useComponent, C as ComponentProvider, s as generateNKeysBetween, t as useDocLayout, v as getIn, w as getEmptyImage, x as useDocumentLayout, P as Page, F as Form, y as createYupSchema, H as Header, z as Panels, B as Blocker, A as DocumentRBAC, S as SINGLE_TYPES } from "./index-5ZvCaCyY-06DLg5eU.mjs";
9
+ import { _ as _extends, $ as $c512c27ab02ef895$export$50c7b4e9d9f19c1, r as require$$0$2, D as DIRECTIONS, g as getTranslation, a as useField, c as createContext$1, b as contentManagerApi, d as useDoc, e as useForm, f as useNotification, h as useAPIErrorHandler, i as useQueryParams, j as buildValidParams, k as useFocusInputField, l as useStrapiApp, m as $c512c27ab02ef895$export$fd42f52fd3ae1109, p as prefixFileUrlWithBackendUrl, n as DOCUMENT_META_FIELDS, o as useDocumentRBAC, I as InputRenderer$1, R as RelationsField, q as useDragAndDrop, s as ItemTypes, t as useComponent, C as ComponentProvider, v as generateNKeysBetween, w as useDocLayout, x as getIn, y as getEmptyImage, z as useDocumentLayout, P as Page, F as Form, A as createYupSchema, H as Header, B as Panels, E as Blocker, G as DocumentRBAC, S as SINGLE_TYPES } from "./index-GIVuHJgC-_q6V7_2B.mjs";
11
10
  import * as Icons from "@strapi/icons";
12
11
  import { EyeStriked, Expand, PlusCircle, CheckCircle, ExclamationMarkCircle, Loader, Refresh, Collapse, Bold, Italic, Underline, StrikeThrough, Code, More, BulletList, NumberList, Picture, Link as Link$1, Quote, HeadingOne, HeadingTwo, HeadingThree, HeadingFour, HeadingFive, HeadingSix, Paragraph, Drag, Trash, Plus } from "@strapi/icons";
13
12
  import { createDraft, finishDraft, isDraft, produce } from "immer";
@@ -16,11 +15,11 @@ import throttle from "lodash/throttle";
16
15
  import ReactDOM from "react-dom";
17
16
  import pipe$1 from "lodash/fp/pipe";
18
17
  import { Menu, MenuItem } from "@strapi/design-system/v2";
19
- import require$$2$1 from "path";
18
+ import require$$2 from "path";
20
19
  import require$$1$1 from "url";
21
20
  import require$$1 from "fs";
22
21
  import require$$8 from "punycode";
23
- import { u as useSyncRbac } from "./useSyncRbac-Kt8Li0Yf-Z54sMEPM.mjs";
22
+ import { u as useSyncRbac } from "./useSyncRbac-JNQibLFa-D0RzXrU4.mjs";
24
23
  const NotAllowedInput = ({ hint, label: label2, required, name: name2 }) => {
25
24
  const { formatMessage } = useIntl();
26
25
  const placeholder = formatMessage({
@@ -48,6 +47,8 @@ const StyledIcon = styled(EyeStriked)`
48
47
  fill: ${({ theme }) => theme.colors.neutral600};
49
48
  }
50
49
  `;
50
+ var isPlainObject$2 = {};
51
+ Object.defineProperty(isPlainObject$2, "__esModule", { value: true });
51
52
  /*!
52
53
  * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
53
54
  *
@@ -72,10 +73,7 @@ function isPlainObject$1(o3) {
72
73
  }
73
74
  return true;
74
75
  }
75
- const isPlainObject$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
76
- __proto__: null,
77
- isPlainObject: isPlainObject$1
78
- }, Symbol.toStringTag, { value: "Module" }));
76
+ var isPlainObject_2 = isPlainObject$2.isPlainObject = isPlainObject$1;
79
77
  var PathRef = {
80
78
  transform(ref, op) {
81
79
  var {
@@ -752,7 +750,7 @@ var isDeepEqual = (node3, another) => {
752
750
  for (var key2 in node3) {
753
751
  var a2 = node3[key2];
754
752
  var b2 = another[key2];
755
- if (isPlainObject$1(a2) && isPlainObject$1(b2)) {
753
+ if (isPlainObject_2(a2) && isPlainObject_2(b2)) {
756
754
  if (!isDeepEqual(a2, b2))
757
755
  return false;
758
756
  } else if (Array.isArray(a2) && Array.isArray(b2)) {
@@ -912,7 +910,7 @@ var Range = {
912
910
  return !Range.isBackward(range2);
913
911
  },
914
912
  isRange(value) {
915
- return isPlainObject$1(value) && Point.isPoint(value.anchor) && Point.isPoint(value.focus);
913
+ return isPlainObject_2(value) && Point.isPoint(value.anchor) && Point.isPoint(value.focus);
916
914
  },
917
915
  *points(range2) {
918
916
  yield [range2.anchor, "anchor"];
@@ -969,11 +967,11 @@ var Range = {
969
967
  }
970
968
  };
971
969
  var isElement$1 = (value) => {
972
- return isPlainObject$1(value) && Node$6.isNodeList(value.children) && !Editor$1.isEditor(value);
970
+ return isPlainObject_2(value) && Node$6.isNodeList(value.children) && !Editor$1.isEditor(value);
973
971
  };
974
972
  var Element$4 = {
975
973
  isAncestor(value) {
976
- return isPlainObject$1(value) && Node$6.isNodeList(value.children);
974
+ return isPlainObject_2(value) && Node$6.isNodeList(value.children);
977
975
  },
978
976
  isElement: isElement$1,
979
977
  isElementList(value) {
@@ -1308,7 +1306,7 @@ var Operation = {
1308
1306
  return Operation.isOperation(value) && value.type.endsWith("_node");
1309
1307
  },
1310
1308
  isOperation(value) {
1311
- if (!isPlainObject$1(value)) {
1309
+ if (!isPlainObject_2(value)) {
1312
1310
  return false;
1313
1311
  }
1314
1312
  switch (value.type) {
@@ -1317,7 +1315,7 @@ var Operation = {
1317
1315
  case "insert_text":
1318
1316
  return typeof value.offset === "number" && typeof value.text === "string" && Path.isPath(value.path);
1319
1317
  case "merge_node":
1320
- return typeof value.position === "number" && Path.isPath(value.path) && isPlainObject$1(value.properties);
1318
+ return typeof value.position === "number" && Path.isPath(value.path) && isPlainObject_2(value.properties);
1321
1319
  case "move_node":
1322
1320
  return Path.isPath(value.path) && Path.isPath(value.newPath);
1323
1321
  case "remove_node":
@@ -1325,11 +1323,11 @@ var Operation = {
1325
1323
  case "remove_text":
1326
1324
  return typeof value.offset === "number" && typeof value.text === "string" && Path.isPath(value.path);
1327
1325
  case "set_node":
1328
- return Path.isPath(value.path) && isPlainObject$1(value.properties) && isPlainObject$1(value.newProperties);
1326
+ return Path.isPath(value.path) && isPlainObject_2(value.properties) && isPlainObject_2(value.newProperties);
1329
1327
  case "set_selection":
1330
- return value.properties === null && Range.isRange(value.newProperties) || value.newProperties === null && Range.isRange(value.properties) || isPlainObject$1(value.properties) && isPlainObject$1(value.newProperties);
1328
+ return value.properties === null && Range.isRange(value.newProperties) || value.newProperties === null && Range.isRange(value.properties) || isPlainObject_2(value.properties) && isPlainObject_2(value.newProperties);
1331
1329
  case "split_node":
1332
- return Path.isPath(value.path) && typeof value.position === "number" && isPlainObject$1(value.properties);
1330
+ return Path.isPath(value.path) && typeof value.position === "number" && isPlainObject_2(value.properties);
1333
1331
  default:
1334
1332
  return false;
1335
1333
  }
@@ -1439,10 +1437,10 @@ var isEditor = (value) => {
1439
1437
  if (cachedIsEditor !== void 0) {
1440
1438
  return cachedIsEditor;
1441
1439
  }
1442
- if (!isPlainObject$1(value)) {
1440
+ if (!isPlainObject_2(value)) {
1443
1441
  return false;
1444
1442
  }
1445
- var isEditor2 = typeof value.addMark === "function" && typeof value.apply === "function" && typeof value.deleteFragment === "function" && typeof value.insertBreak === "function" && typeof value.insertSoftBreak === "function" && typeof value.insertFragment === "function" && typeof value.insertNode === "function" && typeof value.insertText === "function" && typeof value.isElementReadOnly === "function" && typeof value.isInline === "function" && typeof value.isSelectable === "function" && typeof value.isVoid === "function" && typeof value.normalizeNode === "function" && typeof value.onChange === "function" && typeof value.removeMark === "function" && typeof value.getDirtyPaths === "function" && (value.marks === null || isPlainObject$1(value.marks)) && (value.selection === null || Range.isRange(value.selection)) && Node$6.isNodeList(value.children) && Operation.isOperationList(value.operations);
1443
+ var isEditor2 = typeof value.addMark === "function" && typeof value.apply === "function" && typeof value.deleteFragment === "function" && typeof value.insertBreak === "function" && typeof value.insertSoftBreak === "function" && typeof value.insertFragment === "function" && typeof value.insertNode === "function" && typeof value.insertText === "function" && typeof value.isElementReadOnly === "function" && typeof value.isInline === "function" && typeof value.isSelectable === "function" && typeof value.isVoid === "function" && typeof value.normalizeNode === "function" && typeof value.onChange === "function" && typeof value.removeMark === "function" && typeof value.getDirtyPaths === "function" && (value.marks === null || isPlainObject_2(value.marks)) && (value.selection === null || Range.isRange(value.selection)) && Node$6.isNodeList(value.children) && Operation.isOperationList(value.operations);
1446
1444
  IS_EDITOR_CACHE.set(value, isEditor2);
1447
1445
  return isEditor2;
1448
1446
  };
@@ -1691,7 +1689,7 @@ var Point = {
1691
1689
  return point3.offset === another.offset && Path.equals(point3.path, another.path);
1692
1690
  },
1693
1691
  isPoint(value) {
1694
- return isPlainObject$1(value) && typeof value.offset === "number" && Path.isPath(value.path);
1692
+ return isPlainObject_2(value) && typeof value.offset === "number" && Path.isPath(value.path);
1695
1693
  },
1696
1694
  transform(point3, op) {
1697
1695
  var options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
@@ -1810,7 +1808,7 @@ var Text$2 = {
1810
1808
  return isDeepEqual(loose ? omitText(text3) : text3, loose ? omitText(another) : another);
1811
1809
  },
1812
1810
  isText(value) {
1813
- return isPlainObject$1(value) && typeof value.text === "string";
1811
+ return isPlainObject_2(value) && typeof value.text === "string";
1814
1812
  },
1815
1813
  isTextList(value) {
1816
1814
  return Array.isArray(value) && value.every((val) => Text$2.isText(val));
@@ -5496,7 +5494,7 @@ var History = {
5496
5494
  * Check if a value is a `History` object.
5497
5495
  */
5498
5496
  isHistory(value) {
5499
- return isPlainObject$1(value) && Array.isArray(value.redos) && Array.isArray(value.undos) && (value.redos.length === 0 || Operation.isOperationList(value.redos[0].operations)) && (value.undos.length === 0 || Operation.isOperationList(value.undos[0].operations));
5497
+ return isPlainObject_2(value) && Array.isArray(value.redos) && Array.isArray(value.undos) && (value.redos.length === 0 || Operation.isOperationList(value.redos[0].operations)) && (value.undos.length === 0 || Operation.isOperationList(value.undos[0].operations));
5500
5498
  }
5501
5499
  };
5502
5500
  var SAVING = /* @__PURE__ */ new WeakMap();
@@ -25316,7 +25314,6 @@ var escapeStringRegexp$1 = (string3) => {
25316
25314
  }
25317
25315
  return string3.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
25318
25316
  };
25319
- const require$$2 = /* @__PURE__ */ getAugmentedNamespace(isPlainObject$2);
25320
25317
  var isMergeableObject = function isMergeableObject2(value) {
25321
25318
  return isNonNullObject(value) && !isSpecial(value);
25322
25319
  };
@@ -26352,7 +26349,7 @@ let nanoid$1 = (size2 = 21) => {
26352
26349
  var nonSecure = { nanoid: nanoid$1, customAlphabet };
26353
26350
  let { SourceMapConsumer: SourceMapConsumer$2, SourceMapGenerator: SourceMapGenerator$2 } = require$$0$2;
26354
26351
  let { existsSync, readFileSync } = require$$1;
26355
- let { dirname: dirname$1, join: join$1 } = require$$2$1;
26352
+ let { dirname: dirname$1, join: join$1 } = require$$2;
26356
26353
  function fromBase64(str) {
26357
26354
  if (Buffer) {
26358
26355
  return Buffer.from(str, "base64").toString();
@@ -26471,7 +26468,7 @@ var previousMap = PreviousMap$2;
26471
26468
  PreviousMap$2.default = PreviousMap$2;
26472
26469
  let { SourceMapConsumer: SourceMapConsumer$1, SourceMapGenerator: SourceMapGenerator$1 } = require$$0$2;
26473
26470
  let { fileURLToPath, pathToFileURL: pathToFileURL$1 } = require$$1$1;
26474
- let { isAbsolute, resolve: resolve$1 } = require$$2$1;
26471
+ let { isAbsolute, resolve: resolve$1 } = require$$2;
26475
26472
  let { nanoid } = nonSecure;
26476
26473
  let terminalHighlight = require$$0$2;
26477
26474
  let CssSyntaxError$1 = cssSyntaxError;
@@ -26676,7 +26673,7 @@ if (terminalHighlight && terminalHighlight.registerInput) {
26676
26673
  terminalHighlight.registerInput(Input$4);
26677
26674
  }
26678
26675
  let { SourceMapConsumer, SourceMapGenerator } = require$$0$2;
26679
- let { dirname, relative, resolve, sep } = require$$2$1;
26676
+ let { dirname, relative, resolve, sep } = require$$2;
26680
26677
  let { pathToFileURL } = require$$1$1;
26681
26678
  let Input$3 = input;
26682
26679
  let sourceMapAvailable = Boolean(SourceMapConsumer && SourceMapGenerator);
@@ -29159,7 +29156,7 @@ var postcss_1 = postcss;
29159
29156
  postcss.default = postcss;
29160
29157
  const htmlparser = lib$7;
29161
29158
  const escapeStringRegexp = escapeStringRegexp$1;
29162
- const { isPlainObject } = require$$2;
29159
+ const { isPlainObject } = isPlainObject$2;
29163
29160
  const deepmerge = cjs;
29164
29161
  const parseSrcset = parseSrcsetExports;
29165
29162
  const { parse: postcssParse } = postcss_1;
@@ -80746,7 +80743,14 @@ const EditorLayout$1 = ({
80746
80743
  }) => {
80747
80744
  const { formatMessage } = useIntl();
80748
80745
  const { isExpandedMode } = useBlocksEditorContext("editorLayout");
80749
- useLockScroll({ lockScroll: isExpandedMode });
80746
+ React.useEffect(() => {
80747
+ if (isExpandedMode) {
80748
+ document.body.classList.add("lock-body-scroll");
80749
+ }
80750
+ return () => {
80751
+ document.body.classList.remove("lock-body-scroll");
80752
+ };
80753
+ }, [isExpandedMode]);
80750
80754
  if (isExpandedMode) {
80751
80755
  return /* @__PURE__ */ jsx(Portal, { role: "dialog", "aria-modal": false, children: /* @__PURE__ */ jsx(FocusTrap, { onEscape: onCollapse, children: /* @__PURE__ */ jsx(
80752
80756
  ExpandWrapper$1,
@@ -81310,6 +81314,8 @@ const RepeatableComponent = ({
81310
81314
  }) => {
81311
81315
  const { toggleNotification } = useNotification();
81312
81316
  const { formatMessage } = useIntl();
81317
+ const { search: searchString } = useLocation();
81318
+ const search = React.useMemo(() => new URLSearchParams(searchString), [searchString]);
81313
81319
  const { components } = useDoc();
81314
81320
  const { value = [], error: error2 } = useField(name2);
81315
81321
  const addFieldRow = useForm("RepeatableComponent", (state) => state.addFieldRow);
@@ -81318,7 +81324,6 @@ const RepeatableComponent = ({
81318
81324
  const { max = Infinity } = attribute2;
81319
81325
  const [collapseToOpen, setCollapseToOpen] = React.useState(null);
81320
81326
  const [liveText, setLiveText] = React.useState("");
81321
- const search = useQuery();
81322
81327
  const componentTmpKeyWithFocussedField = React.useMemo(() => {
81323
81328
  if (search.has("field")) {
81324
81329
  const fieldParam = search.get("field");
@@ -83333,7 +83338,14 @@ const EditorLayout = ({
83333
83338
  onCollapse
83334
83339
  }) => {
83335
83340
  const { formatMessage } = useIntl();
83336
- useLockScroll({ lockScroll: isExpandMode });
83341
+ React.useEffect(() => {
83342
+ if (isExpandMode) {
83343
+ document.body.classList.add("lock-body-scroll");
83344
+ }
83345
+ return () => {
83346
+ document.body.classList.remove("lock-body-scroll");
83347
+ };
83348
+ }, [isExpandMode]);
83337
83349
  if (isExpandMode) {
83338
83350
  return /* @__PURE__ */ jsx(Portal, { role: "dialog", "aria-modal": false, children: /* @__PURE__ */ jsx(FocusTrap, { onEscape: onCollapse, children: /* @__PURE__ */ jsx(
83339
83351
  ExpandWrapper,
@@ -84367,4 +84379,4 @@ export {
84367
84379
  EditViewPage,
84368
84380
  ProtectedEditViewPage
84369
84381
  };
84370
- //# sourceMappingURL=EditViewPage-xYzUSAwS-5mOQ_-nB.mjs.map
84382
+ //# sourceMappingURL=EditViewPage-JFzIJClS-SluImrzz.mjs.map