@strapi/plugin-users-permissions 5.0.0-alpha.0 → 5.0.0-alpha.1
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/admin/src/index.js +1 -2
- package/admin/src/pages/AdvancedSettings/index.jsx +4 -6
- package/admin/src/pages/EmailTemplates/components/EmailTable.jsx +4 -5
- package/admin/src/pages/EmailTemplates/index.jsx +5 -7
- package/admin/src/pages/Providers/index.jsx +6 -18
- package/admin/src/pages/Roles/hooks/usePlugins.js +1 -2
- package/admin/src/pages/Roles/pages/CreatePage.jsx +1 -2
- package/admin/src/pages/Roles/pages/EditPage.jsx +7 -2
- package/admin/src/pages/Roles/pages/ListPage/components/TableBody.jsx +2 -3
- package/admin/src/pages/Roles/pages/ListPage/index.jsx +33 -6
- package/admin/src/utils/prefixPluginTranslations.js +13 -0
- package/dist/_chunks/{EditViewPage-xYzUSAwS-wpHlxdkC.js → EditViewPage-kgrZ8rEg-6k5dfk_x.js} +181 -167
- package/dist/_chunks/{EditViewPage-xYzUSAwS-wpHlxdkC.js.map → EditViewPage-kgrZ8rEg-6k5dfk_x.js.map} +1 -1
- package/dist/_chunks/{EditViewPage-xYzUSAwS-5mOQ_-nB.mjs → EditViewPage-kgrZ8rEg-GlayP0Uq.mjs} +44 -32
- package/dist/_chunks/EditViewPage-kgrZ8rEg-GlayP0Uq.mjs.map +1 -0
- package/dist/_chunks/{ListViewPage-xOVa04T_-elahT0e9.js → ListViewPage-BNB0ptO7-TUQO_9Hj.js} +104 -105
- package/dist/_chunks/ListViewPage-BNB0ptO7-TUQO_9Hj.js.map +1 -0
- package/dist/_chunks/{ListViewPage-xOVa04T_-lbfb219V.mjs → ListViewPage-BNB0ptO7-t1ra9JlI.mjs} +9 -10
- package/dist/_chunks/ListViewPage-BNB0ptO7-t1ra9JlI.mjs.map +1 -0
- package/dist/_chunks/{ReviewWorkflowsColumn-FDxVKdto-m8hslkeI.js → ReviewWorkflowsColumn-56Z6l-FH-3Dq1lGu9.js} +5 -5
- package/dist/_chunks/{ReviewWorkflowsColumn-FDxVKdto-m8hslkeI.js.map → ReviewWorkflowsColumn-56Z6l-FH-3Dq1lGu9.js.map} +1 -1
- package/dist/_chunks/{ReviewWorkflowsColumn-FDxVKdto-IWfB3WVH.mjs → ReviewWorkflowsColumn-56Z6l-FH-mpkuW-HV.mjs} +2 -2
- package/dist/_chunks/{ReviewWorkflowsColumn-FDxVKdto-IWfB3WVH.mjs.map → ReviewWorkflowsColumn-56Z6l-FH-mpkuW-HV.mjs.map} +1 -1
- package/dist/_chunks/{constants-WjN6I3sL-7e3gpx4b.mjs → constants-evLWZCaJ-0QLv9QPI.mjs} +2 -2
- package/dist/_chunks/{constants-WjN6I3sL-7e3gpx4b.mjs.map → constants-evLWZCaJ-0QLv9QPI.mjs.map} +1 -1
- package/dist/_chunks/{constants-WjN6I3sL-cDZPE6ED.js → constants-evLWZCaJ-dGs71EWl.js} +18 -18
- package/dist/_chunks/{constants-WjN6I3sL-cDZPE6ED.js.map → constants-evLWZCaJ-dGs71EWl.js.map} +1 -1
- package/dist/_chunks/{index-MEUac_4V.js → index-6E51D69B.js} +35 -37
- package/dist/_chunks/index-6E51D69B.js.map +1 -0
- package/dist/_chunks/{index-N-GcFWtg.mjs → index-BGIcvvEB.mjs} +6 -7
- package/dist/_chunks/index-BGIcvvEB.mjs.map +1 -0
- package/dist/_chunks/{index-VgvlwVA7.js → index-Bg2Rf_5y.js} +10 -11
- package/dist/_chunks/index-Bg2Rf_5y.js.map +1 -0
- package/dist/_chunks/{index-mzJ2Vb5u.js → index-LpFmy25n.js} +4 -5
- package/dist/_chunks/index-LpFmy25n.js.map +1 -0
- package/dist/_chunks/{index-vXywiVeM.mjs → index-R05CeNXG.mjs} +11 -12
- package/dist/_chunks/index-R05CeNXG.mjs.map +1 -0
- package/dist/_chunks/{index-5ZvCaCyY-JgYo3Jws.js → index-YFPS5vYF-ZGkR3L1g.js} +2791 -2679
- package/dist/_chunks/index-YFPS5vYF-ZGkR3L1g.js.map +1 -0
- package/dist/_chunks/{index-5ZvCaCyY-06DLg5eU.mjs → index-YFPS5vYF-cugkJcLS.mjs} +2822 -2710
- package/dist/_chunks/index-YFPS5vYF-cugkJcLS.mjs.map +1 -0
- package/dist/_chunks/{index-ee_14Ldw.mjs → index-aEKi1Qb9.mjs} +9 -13
- package/dist/_chunks/index-aEKi1Qb9.mjs.map +1 -0
- package/dist/_chunks/{index-A3oJlPcE.mjs → index-hG66XSuA.mjs} +31 -33
- package/dist/_chunks/index-hG66XSuA.mjs.map +1 -0
- package/dist/_chunks/{index-53jX2hhF.mjs → index-xt3l4qU9.mjs} +19 -11
- package/dist/_chunks/index-xt3l4qU9.mjs.map +1 -0
- package/dist/_chunks/{index-TJUxOCtJ.js → index-yKMi8hKt.js} +20 -12
- package/dist/_chunks/index-yKMi8hKt.js.map +1 -0
- package/dist/_chunks/{index-bRuKnVcH.js → index-ylhaoJtw.js} +8 -12
- package/dist/_chunks/index-ylhaoJtw.js.map +1 -0
- package/dist/_chunks/{useSyncRbac-Kt8Li0Yf-h8HqtZ6y.js → useSyncRbac-83vFRiaG-YY4KQcAU.js} +7 -7
- package/dist/_chunks/{useSyncRbac-Kt8Li0Yf-h8HqtZ6y.js.map → useSyncRbac-83vFRiaG-YY4KQcAU.js.map} +1 -1
- package/dist/_chunks/{useSyncRbac-Kt8Li0Yf-Z54sMEPM.mjs → useSyncRbac-83vFRiaG-ov11t-T1.mjs} +2 -2
- package/dist/_chunks/{useSyncRbac-Kt8Li0Yf-Z54sMEPM.mjs.map → useSyncRbac-83vFRiaG-ov11t-T1.mjs.map} +1 -1
- package/dist/admin/index.js +1 -2
- package/dist/admin/index.js.map +1 -1
- package/dist/admin/index.mjs +1 -2
- package/dist/admin/index.mjs.map +1 -1
- package/package.json +6 -6
- package/admin/src/pages/Roles/pages/ListPage/utils/api.js +0 -30
- package/dist/_chunks/EditViewPage-xYzUSAwS-5mOQ_-nB.mjs.map +0 -1
- package/dist/_chunks/ListViewPage-xOVa04T_-elahT0e9.js.map +0 -1
- package/dist/_chunks/ListViewPage-xOVa04T_-lbfb219V.mjs.map +0 -1
- package/dist/_chunks/index-53jX2hhF.mjs.map +0 -1
- package/dist/_chunks/index-5ZvCaCyY-06DLg5eU.mjs.map +0 -1
- package/dist/_chunks/index-5ZvCaCyY-JgYo3Jws.js.map +0 -1
- package/dist/_chunks/index-A3oJlPcE.mjs.map +0 -1
- package/dist/_chunks/index-MEUac_4V.js.map +0 -1
- package/dist/_chunks/index-N-GcFWtg.mjs.map +0 -1
- package/dist/_chunks/index-TJUxOCtJ.js.map +0 -1
- package/dist/_chunks/index-VgvlwVA7.js.map +0 -1
- package/dist/_chunks/index-bRuKnVcH.js.map +0 -1
- package/dist/_chunks/index-ee_14Ldw.mjs.map +0 -1
- package/dist/_chunks/index-mzJ2Vb5u.js.map +0 -1
- package/dist/_chunks/index-vXywiVeM.mjs.map +0 -1
package/dist/_chunks/{EditViewPage-xYzUSAwS-5mOQ_-nB.mjs → EditViewPage-kgrZ8rEg-GlayP0Uq.mjs}
RENAMED
|
@@ -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 {
|
|
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
|
|
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-YFPS5vYF-cugkJcLS.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
|
|
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-
|
|
22
|
+
import { u as useSyncRbac } from "./useSyncRbac-83vFRiaG-ov11t-T1.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
|
-
|
|
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 (
|
|
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
|
|
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
|
|
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
|
|
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 (!
|
|
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) &&
|
|
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) &&
|
|
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) ||
|
|
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" &&
|
|
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 (!
|
|
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 ||
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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 } =
|
|
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
|
-
|
|
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
|
-
|
|
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-
|
|
84382
|
+
//# sourceMappingURL=EditViewPage-kgrZ8rEg-GlayP0Uq.mjs.map
|