@strapi/plugin-users-permissions 5.0.0-beta.0 → 5.0.0-beta.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/dist/_chunks/{EditViewPage-1NY3YGcc-PZo-tzC4.mjs → EditViewPage-BJdNfzBZ-XIkFGBc4.mjs} +4 -6
- package/dist/_chunks/{EditViewPage-1NY3YGcc-PZo-tzC4.mjs.map → EditViewPage-BJdNfzBZ-XIkFGBc4.mjs.map} +1 -1
- package/dist/_chunks/{EditViewPage-1NY3YGcc-l5uN1p3e.js → EditViewPage-BJdNfzBZ-eKwHxgPQ.js} +163 -165
- package/dist/_chunks/{EditViewPage-1NY3YGcc-l5uN1p3e.js.map → EditViewPage-BJdNfzBZ-eKwHxgPQ.js.map} +1 -1
- package/dist/_chunks/{ListViewPage-rkQXnquk-rBwGjRm0.js → ListViewPage-FE12IpwT-Wq63ge4-.js} +106 -106
- package/dist/_chunks/{ListViewPage-rkQXnquk-rBwGjRm0.js.map → ListViewPage-FE12IpwT-Wq63ge4-.js.map} +1 -1
- package/dist/_chunks/{ListViewPage-rkQXnquk-LJPTb3bJ.mjs → ListViewPage-FE12IpwT-qmEuoG2g.mjs} +6 -6
- package/dist/_chunks/{ListViewPage-rkQXnquk-LJPTb3bJ.mjs.map → ListViewPage-FE12IpwT-qmEuoG2g.mjs.map} +1 -1
- package/dist/_chunks/{ReviewWorkflowsColumn-m0_IsejA-vbOQ9Ruh.mjs → ReviewWorkflowsColumn-NUu47oVz-8gQO_Y5x.mjs} +2 -2
- package/dist/_chunks/{ReviewWorkflowsColumn-m0_IsejA-vbOQ9Ruh.mjs.map → ReviewWorkflowsColumn-NUu47oVz-8gQO_Y5x.mjs.map} +1 -1
- package/dist/_chunks/{ReviewWorkflowsColumn-m0_IsejA-8zmlk45y.js → ReviewWorkflowsColumn-NUu47oVz-ARD7iQQF.js} +5 -5
- package/dist/_chunks/{ReviewWorkflowsColumn-m0_IsejA-8zmlk45y.js.map → ReviewWorkflowsColumn-NUu47oVz-ARD7iQQF.js.map} +1 -1
- package/dist/_chunks/{constants--j5MCV5y-TtrVffUD.js → constants-D6NLEhwu-4IL8biHd.js} +18 -18
- package/dist/_chunks/{constants--j5MCV5y-TtrVffUD.js.map → constants-D6NLEhwu-4IL8biHd.js.map} +1 -1
- package/dist/_chunks/{constants--j5MCV5y-h4BGe6Tp.mjs → constants-D6NLEhwu-gRKBHArd.mjs} +2 -2
- package/dist/_chunks/{constants--j5MCV5y-h4BGe6Tp.mjs.map → constants-D6NLEhwu-gRKBHArd.mjs.map} +1 -1
- package/dist/_chunks/{index-NzLAHRwx-MeSnW6w9.mjs → index-1NFAbkxM-Km1zKLTh.mjs} +11 -9
- package/dist/_chunks/{index-NzLAHRwx-MeSnW6w9.mjs.map → index-1NFAbkxM-Km1zKLTh.mjs.map} +1 -1
- package/dist/_chunks/{index-NzLAHRwx-bcHTdv6V.js → index-1NFAbkxM-c8HdvwSA.js} +11 -9
- package/dist/_chunks/{index-NzLAHRwx-bcHTdv6V.js.map → index-1NFAbkxM-c8HdvwSA.js.map} +1 -1
- package/dist/_chunks/{index-nKbtq7R-.js → index-46oU0LRy.js} +2 -2
- package/dist/_chunks/{index-nKbtq7R-.js.map → index-46oU0LRy.js.map} +1 -1
- package/dist/_chunks/{index-cC7LGLsK.mjs → index-DtWla9tx.mjs} +2 -2
- package/dist/_chunks/{index-cC7LGLsK.mjs.map → index-DtWla9tx.mjs.map} +1 -1
- package/dist/_chunks/{index-OPfJFEYD.mjs → index-G9pZniMC.mjs} +3 -3
- package/dist/_chunks/{index-OPfJFEYD.mjs.map → index-G9pZniMC.mjs.map} +1 -1
- package/dist/_chunks/{index-YtsLdO8d.js → index-JO4fO3Yj.js} +10 -10
- package/dist/_chunks/{index-YtsLdO8d.js.map → index-JO4fO3Yj.js.map} +1 -1
- package/dist/_chunks/{index-VQ3uu7FR.mjs → index-PTS42_em.mjs} +10 -10
- package/dist/_chunks/{index-VQ3uu7FR.mjs.map → index-PTS42_em.mjs.map} +1 -1
- package/dist/_chunks/{index-deaP9rgn.js → index-UxzhJuP2.js} +4 -4
- package/dist/_chunks/{index-deaP9rgn.js.map → index-UxzhJuP2.js.map} +1 -1
- package/dist/_chunks/{index-eH8XAk_H.mjs → index-Vg50EMBp.mjs} +2 -2
- package/dist/_chunks/{index-eH8XAk_H.mjs.map → index-Vg50EMBp.mjs.map} +1 -1
- package/dist/_chunks/{index-Omcy-t4F.js → index-_UNneVIg.js} +2 -2
- package/dist/_chunks/{index-Omcy-t4F.js.map → index-_UNneVIg.js.map} +1 -1
- package/dist/_chunks/{index-AT8MwqgE.js → index-gw-9XoIT.js} +4 -4
- package/dist/_chunks/{index-AT8MwqgE.js.map → index-gw-9XoIT.js.map} +1 -1
- package/dist/_chunks/{index-i1lZHF3N.mjs → index-oUZpvYqS.mjs} +3 -3
- package/dist/_chunks/{index-i1lZHF3N.mjs.map → index-oUZpvYqS.mjs.map} +1 -1
- package/dist/_chunks/{useSyncRbac-Od0wrAnD-mYMbQBry.js → useSyncRbac-LNOzRXJ5-5S0qhFuZ.js} +7 -7
- package/dist/_chunks/{useSyncRbac-Od0wrAnD-mYMbQBry.js.map → useSyncRbac-LNOzRXJ5-5S0qhFuZ.js.map} +1 -1
- package/dist/_chunks/{useSyncRbac-Od0wrAnD-fP3UP9Sk.mjs → useSyncRbac-LNOzRXJ5-PZzFwA1X.mjs} +2 -2
- package/dist/_chunks/{useSyncRbac-Od0wrAnD-fP3UP9Sk.mjs.map → useSyncRbac-LNOzRXJ5-PZzFwA1X.mjs.map} +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/package.json +6 -6
- package/server/controllers/auth.js +1 -2
- package/server/controllers/user.js +3 -4
- package/server/services/user.js +3 -3
- package/server/utils/sanitize/sanitizers.js +5 -1
package/dist/_chunks/{EditViewPage-1NY3YGcc-l5uN1p3e.js → EditViewPage-BJdNfzBZ-eKwHxgPQ.js}
RENAMED
|
@@ -7,7 +7,7 @@ const Helmet = require("./Helmet-d9JljxUo.js");
|
|
|
7
7
|
const reactIntl = require("react-intl");
|
|
8
8
|
const reactRouterDom = require("react-router-dom");
|
|
9
9
|
const styled = require("styled-components");
|
|
10
|
-
const
|
|
10
|
+
const index1NFAbkxM = require("./index-1NFAbkxM-c8HdvwSA.js");
|
|
11
11
|
const Icons = require("@strapi/icons");
|
|
12
12
|
const createNextState2 = require("immer");
|
|
13
13
|
const debounce = require("lodash/debounce");
|
|
@@ -19,7 +19,7 @@ const require$$2 = require("path");
|
|
|
19
19
|
const require$$1$1 = require("url");
|
|
20
20
|
const require$$1 = require("fs");
|
|
21
21
|
const require$$8 = require("punycode");
|
|
22
|
-
const
|
|
22
|
+
const useSyncRbacLNOzRXJ5 = require("./useSyncRbac-LNOzRXJ5-5S0qhFuZ.js");
|
|
23
23
|
const _interopDefault = (e2) => e2 && e2.__esModule ? e2 : { default: e2 };
|
|
24
24
|
function _interopNamespace(e2) {
|
|
25
25
|
if (e2 && e2.__esModule)
|
|
@@ -10358,11 +10358,11 @@ const $5e63c961fc1ce211$export$8c6ed5c666ac1360 = /* @__PURE__ */ React.forwardR
|
|
|
10358
10358
|
} else
|
|
10359
10359
|
return child2;
|
|
10360
10360
|
});
|
|
10361
|
-
return /* @__PURE__ */ React.createElement($5e63c961fc1ce211$var$SlotClone,
|
|
10361
|
+
return /* @__PURE__ */ React.createElement($5e63c961fc1ce211$var$SlotClone, index1NFAbkxM._extends({}, slotProps, {
|
|
10362
10362
|
ref: forwardedRef
|
|
10363
10363
|
}), /* @__PURE__ */ React.isValidElement(newElement) ? /* @__PURE__ */ React.cloneElement(newElement, void 0, newChildren) : null);
|
|
10364
10364
|
}
|
|
10365
|
-
return /* @__PURE__ */ React.createElement($5e63c961fc1ce211$var$SlotClone,
|
|
10365
|
+
return /* @__PURE__ */ React.createElement($5e63c961fc1ce211$var$SlotClone, index1NFAbkxM._extends({}, slotProps, {
|
|
10366
10366
|
ref: forwardedRef
|
|
10367
10367
|
}), children);
|
|
10368
10368
|
});
|
|
@@ -10417,7 +10417,7 @@ function $5e63c961fc1ce211$var$mergeProps(slotProps, childProps) {
|
|
|
10417
10417
|
}
|
|
10418
10418
|
function $e02a7d9cb1dc128c$export$c74125a8e3af6bb2(name2) {
|
|
10419
10419
|
const PROVIDER_NAME = name2 + "CollectionProvider";
|
|
10420
|
-
const [createCollectionContext, createCollectionScope] =
|
|
10420
|
+
const [createCollectionContext, createCollectionScope] = index1NFAbkxM.$c512c27ab02ef895$export$50c7b4e9d9f19c1(PROVIDER_NAME);
|
|
10421
10421
|
const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(PROVIDER_NAME, {
|
|
10422
10422
|
collectionRef: {
|
|
10423
10423
|
current: null
|
|
@@ -10531,7 +10531,7 @@ const $8927f6f2acc4f386$export$250ffa63cdc0d034 = $8927f6f2acc4f386$var$NODES.re
|
|
|
10531
10531
|
React.useEffect(() => {
|
|
10532
10532
|
window[Symbol.for("radix-ui")] = true;
|
|
10533
10533
|
}, []);
|
|
10534
|
-
return /* @__PURE__ */ React.createElement(Comp,
|
|
10534
|
+
return /* @__PURE__ */ React.createElement(Comp, index1NFAbkxM._extends({}, primitiveProps, {
|
|
10535
10535
|
ref: forwardedRef
|
|
10536
10536
|
}));
|
|
10537
10537
|
});
|
|
@@ -10611,7 +10611,7 @@ const $d7bdfb9eb0fdf311$var$EVENT_OPTIONS = {
|
|
|
10611
10611
|
};
|
|
10612
10612
|
const $d7bdfb9eb0fdf311$var$GROUP_NAME = "RovingFocusGroup";
|
|
10613
10613
|
const [$d7bdfb9eb0fdf311$var$Collection, $d7bdfb9eb0fdf311$var$useCollection, $d7bdfb9eb0fdf311$var$createCollectionScope] = $e02a7d9cb1dc128c$export$c74125a8e3af6bb2($d7bdfb9eb0fdf311$var$GROUP_NAME);
|
|
10614
|
-
const [$d7bdfb9eb0fdf311$var$createRovingFocusGroupContext, $d7bdfb9eb0fdf311$export$c7109489551a4f4] =
|
|
10614
|
+
const [$d7bdfb9eb0fdf311$var$createRovingFocusGroupContext, $d7bdfb9eb0fdf311$export$c7109489551a4f4] = index1NFAbkxM.$c512c27ab02ef895$export$50c7b4e9d9f19c1($d7bdfb9eb0fdf311$var$GROUP_NAME, [
|
|
10615
10615
|
$d7bdfb9eb0fdf311$var$createCollectionScope
|
|
10616
10616
|
]);
|
|
10617
10617
|
const [$d7bdfb9eb0fdf311$var$RovingFocusProvider, $d7bdfb9eb0fdf311$var$useRovingFocusContext] = $d7bdfb9eb0fdf311$var$createRovingFocusGroupContext($d7bdfb9eb0fdf311$var$GROUP_NAME);
|
|
@@ -10620,7 +10620,7 @@ const $d7bdfb9eb0fdf311$export$8699f7c8af148338 = /* @__PURE__ */ React.forwardR
|
|
|
10620
10620
|
scope: props.__scopeRovingFocusGroup
|
|
10621
10621
|
}, /* @__PURE__ */ React.createElement($d7bdfb9eb0fdf311$var$Collection.Slot, {
|
|
10622
10622
|
scope: props.__scopeRovingFocusGroup
|
|
10623
|
-
}, /* @__PURE__ */ React.createElement($d7bdfb9eb0fdf311$var$RovingFocusGroupImpl,
|
|
10623
|
+
}, /* @__PURE__ */ React.createElement($d7bdfb9eb0fdf311$var$RovingFocusGroupImpl, index1NFAbkxM._extends({}, props, {
|
|
10624
10624
|
ref: forwardedRef
|
|
10625
10625
|
}))));
|
|
10626
10626
|
});
|
|
@@ -10676,7 +10676,7 @@ const $d7bdfb9eb0fdf311$var$RovingFocusGroupImpl = /* @__PURE__ */ React.forward
|
|
|
10676
10676
|
),
|
|
10677
10677
|
[]
|
|
10678
10678
|
)
|
|
10679
|
-
}, /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div,
|
|
10679
|
+
}, /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, index1NFAbkxM._extends({
|
|
10680
10680
|
tabIndex: isTabbingBackOut || focusableItemsCount === 0 ? -1 : 0,
|
|
10681
10681
|
"data-orientation": orientation
|
|
10682
10682
|
}, groupProps, {
|
|
@@ -10746,7 +10746,7 @@ const $d7bdfb9eb0fdf311$export$ab9df7c53fe8454 = /* @__PURE__ */ React.forwardRe
|
|
|
10746
10746
|
id: id2,
|
|
10747
10747
|
focusable,
|
|
10748
10748
|
active
|
|
10749
|
-
}, /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span,
|
|
10749
|
+
}, /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, index1NFAbkxM._extends({
|
|
10750
10750
|
tabIndex: isCurrentTabStop ? 0 : -1,
|
|
10751
10751
|
"data-orientation": context.orientation
|
|
10752
10752
|
}, itemProps, {
|
|
@@ -10853,7 +10853,7 @@ const $89eedd556c436f6a$export$1ff3c3f08ae963c0 = /* @__PURE__ */ React.forwardR
|
|
|
10853
10853
|
"aria-orientation": ariaOrientation,
|
|
10854
10854
|
role: "separator"
|
|
10855
10855
|
};
|
|
10856
|
-
return /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div,
|
|
10856
|
+
return /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, index1NFAbkxM._extends({
|
|
10857
10857
|
"data-orientation": orientation
|
|
10858
10858
|
}, semanticProps, domProps, {
|
|
10859
10859
|
ref: forwardedRef
|
|
@@ -10886,7 +10886,7 @@ const $b3bbe2732c13b576$export$bea8ebba691c5813 = /* @__PURE__ */ React.forwardR
|
|
|
10886
10886
|
onChange: onPressedChange,
|
|
10887
10887
|
defaultProp: defaultPressed
|
|
10888
10888
|
});
|
|
10889
|
-
return /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button,
|
|
10889
|
+
return /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button, index1NFAbkxM._extends({
|
|
10890
10890
|
type: "button",
|
|
10891
10891
|
"aria-pressed": pressed,
|
|
10892
10892
|
"data-state": pressed ? "on" : "off",
|
|
@@ -10900,7 +10900,7 @@ const $b3bbe2732c13b576$export$bea8ebba691c5813 = /* @__PURE__ */ React.forwardR
|
|
|
10900
10900
|
}));
|
|
10901
10901
|
});
|
|
10902
10902
|
const $6c1fd9e6a8969628$var$TOGGLE_GROUP_NAME = "ToggleGroup";
|
|
10903
|
-
const [$6c1fd9e6a8969628$var$createToggleGroupContext, $6c1fd9e6a8969628$export$d1c7c4bcd9f26dd4] =
|
|
10903
|
+
const [$6c1fd9e6a8969628$var$createToggleGroupContext, $6c1fd9e6a8969628$export$d1c7c4bcd9f26dd4] = index1NFAbkxM.$c512c27ab02ef895$export$50c7b4e9d9f19c1($6c1fd9e6a8969628$var$TOGGLE_GROUP_NAME, [
|
|
10904
10904
|
$d7bdfb9eb0fdf311$export$c7109489551a4f4
|
|
10905
10905
|
]);
|
|
10906
10906
|
const $6c1fd9e6a8969628$var$useRovingFocusGroupScope = $d7bdfb9eb0fdf311$export$c7109489551a4f4();
|
|
@@ -10908,13 +10908,13 @@ const $6c1fd9e6a8969628$export$af3ec21f6cfb5e30 = /* @__PURE__ */ React__namespa
|
|
|
10908
10908
|
const { type, ...toggleGroupProps } = props;
|
|
10909
10909
|
if (type === "single") {
|
|
10910
10910
|
const singleProps = toggleGroupProps;
|
|
10911
|
-
return /* @__PURE__ */ React__namespace.default.createElement($6c1fd9e6a8969628$var$ToggleGroupImplSingle,
|
|
10911
|
+
return /* @__PURE__ */ React__namespace.default.createElement($6c1fd9e6a8969628$var$ToggleGroupImplSingle, index1NFAbkxM._extends({}, singleProps, {
|
|
10912
10912
|
ref: forwardedRef
|
|
10913
10913
|
}));
|
|
10914
10914
|
}
|
|
10915
10915
|
if (type === "multiple") {
|
|
10916
10916
|
const multipleProps = toggleGroupProps;
|
|
10917
|
-
return /* @__PURE__ */ React__namespace.default.createElement($6c1fd9e6a8969628$var$ToggleGroupImplMultiple,
|
|
10917
|
+
return /* @__PURE__ */ React__namespace.default.createElement($6c1fd9e6a8969628$var$ToggleGroupImplMultiple, index1NFAbkxM._extends({}, multipleProps, {
|
|
10918
10918
|
ref: forwardedRef
|
|
10919
10919
|
}));
|
|
10920
10920
|
}
|
|
@@ -10942,7 +10942,7 @@ const $6c1fd9e6a8969628$var$ToggleGroupImplSingle = /* @__PURE__ */ React__names
|
|
|
10942
10942
|
setValue
|
|
10943
10943
|
]
|
|
10944
10944
|
)
|
|
10945
|
-
}, /* @__PURE__ */ React__namespace.default.createElement($6c1fd9e6a8969628$var$ToggleGroupImpl,
|
|
10945
|
+
}, /* @__PURE__ */ React__namespace.default.createElement($6c1fd9e6a8969628$var$ToggleGroupImpl, index1NFAbkxM._extends({}, toggleGroupSingleProps, {
|
|
10946
10946
|
ref: forwardedRef
|
|
10947
10947
|
})));
|
|
10948
10948
|
});
|
|
@@ -10981,7 +10981,7 @@ const $6c1fd9e6a8969628$var$ToggleGroupImplMultiple = /* @__PURE__ */ React__nam
|
|
|
10981
10981
|
value: value1,
|
|
10982
10982
|
onItemActivate: handleButtonActivate,
|
|
10983
10983
|
onItemDeactivate: handleButtonDeactivate
|
|
10984
|
-
}, /* @__PURE__ */ React__namespace.default.createElement($6c1fd9e6a8969628$var$ToggleGroupImpl,
|
|
10984
|
+
}, /* @__PURE__ */ React__namespace.default.createElement($6c1fd9e6a8969628$var$ToggleGroupImpl, index1NFAbkxM._extends({}, toggleGroupMultipleProps, {
|
|
10985
10985
|
ref: forwardedRef
|
|
10986
10986
|
})));
|
|
10987
10987
|
});
|
|
@@ -10999,15 +10999,15 @@ const $6c1fd9e6a8969628$var$ToggleGroupImpl = /* @__PURE__ */ React__namespace.d
|
|
|
10999
10999
|
scope: __scopeToggleGroup,
|
|
11000
11000
|
rovingFocus,
|
|
11001
11001
|
disabled
|
|
11002
|
-
}, rovingFocus ? /* @__PURE__ */ React__namespace.default.createElement($d7bdfb9eb0fdf311$export$be92b6f5f03c0fe9,
|
|
11002
|
+
}, rovingFocus ? /* @__PURE__ */ React__namespace.default.createElement($d7bdfb9eb0fdf311$export$be92b6f5f03c0fe9, index1NFAbkxM._extends({
|
|
11003
11003
|
asChild: true
|
|
11004
11004
|
}, rovingFocusGroupScope, {
|
|
11005
11005
|
orientation,
|
|
11006
11006
|
dir: direction2,
|
|
11007
11007
|
loop: loop2
|
|
11008
|
-
}), /* @__PURE__ */ React__namespace.default.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div,
|
|
11008
|
+
}), /* @__PURE__ */ React__namespace.default.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, index1NFAbkxM._extends({}, commonProps, {
|
|
11009
11009
|
ref: forwardedRef
|
|
11010
|
-
}))) : /* @__PURE__ */ React__namespace.default.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div,
|
|
11010
|
+
}))) : /* @__PURE__ */ React__namespace.default.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, index1NFAbkxM._extends({}, commonProps, {
|
|
11011
11011
|
ref: forwardedRef
|
|
11012
11012
|
})));
|
|
11013
11013
|
});
|
|
@@ -11024,15 +11024,15 @@ const $6c1fd9e6a8969628$export$b453109e13abe10b = /* @__PURE__ */ React__namespa
|
|
|
11024
11024
|
disabled
|
|
11025
11025
|
};
|
|
11026
11026
|
const ref = React__namespace.default.useRef(null);
|
|
11027
|
-
return context.rovingFocus ? /* @__PURE__ */ React__namespace.default.createElement($d7bdfb9eb0fdf311$export$6d08773d2e66f8f2,
|
|
11027
|
+
return context.rovingFocus ? /* @__PURE__ */ React__namespace.default.createElement($d7bdfb9eb0fdf311$export$6d08773d2e66f8f2, index1NFAbkxM._extends({
|
|
11028
11028
|
asChild: true
|
|
11029
11029
|
}, rovingFocusGroupScope, {
|
|
11030
11030
|
focusable: !disabled,
|
|
11031
11031
|
active: pressed,
|
|
11032
11032
|
ref
|
|
11033
|
-
}), /* @__PURE__ */ React__namespace.default.createElement($6c1fd9e6a8969628$var$ToggleGroupItemImpl,
|
|
11033
|
+
}), /* @__PURE__ */ React__namespace.default.createElement($6c1fd9e6a8969628$var$ToggleGroupItemImpl, index1NFAbkxM._extends({}, commonProps, {
|
|
11034
11034
|
ref: forwardedRef
|
|
11035
|
-
}))) : /* @__PURE__ */ React__namespace.default.createElement($6c1fd9e6a8969628$var$ToggleGroupItemImpl,
|
|
11035
|
+
}))) : /* @__PURE__ */ React__namespace.default.createElement($6c1fd9e6a8969628$var$ToggleGroupItemImpl, index1NFAbkxM._extends({}, commonProps, {
|
|
11036
11036
|
ref: forwardedRef
|
|
11037
11037
|
}));
|
|
11038
11038
|
});
|
|
@@ -11045,7 +11045,7 @@ const $6c1fd9e6a8969628$var$ToggleGroupItemImpl = /* @__PURE__ */ React__namespa
|
|
|
11045
11045
|
"aria-pressed": void 0
|
|
11046
11046
|
};
|
|
11047
11047
|
const typeProps = valueContext.type === "single" ? singleProps : void 0;
|
|
11048
|
-
return /* @__PURE__ */ React__namespace.default.createElement($b3bbe2732c13b576$export$bea8ebba691c5813,
|
|
11048
|
+
return /* @__PURE__ */ React__namespace.default.createElement($b3bbe2732c13b576$export$bea8ebba691c5813, index1NFAbkxM._extends({}, typeProps, itemProps, {
|
|
11049
11049
|
ref: forwardedRef,
|
|
11050
11050
|
onPressedChange: (pressed) => {
|
|
11051
11051
|
if (pressed)
|
|
@@ -11058,7 +11058,7 @@ const $6c1fd9e6a8969628$var$ToggleGroupItemImpl = /* @__PURE__ */ React__namespa
|
|
|
11058
11058
|
const $6c1fd9e6a8969628$export$be92b6f5f03c0fe9 = $6c1fd9e6a8969628$export$af3ec21f6cfb5e30;
|
|
11059
11059
|
const $6c1fd9e6a8969628$export$6d08773d2e66f8f2 = $6c1fd9e6a8969628$export$b453109e13abe10b;
|
|
11060
11060
|
const $3dc4ded751c8bdfb$var$TOOLBAR_NAME = "Toolbar";
|
|
11061
|
-
const [$3dc4ded751c8bdfb$var$createToolbarContext, $3dc4ded751c8bdfb$export$233e637670877d91] =
|
|
11061
|
+
const [$3dc4ded751c8bdfb$var$createToolbarContext, $3dc4ded751c8bdfb$export$233e637670877d91] = index1NFAbkxM.$c512c27ab02ef895$export$50c7b4e9d9f19c1($3dc4ded751c8bdfb$var$TOOLBAR_NAME, [
|
|
11062
11062
|
$d7bdfb9eb0fdf311$export$c7109489551a4f4,
|
|
11063
11063
|
$6c1fd9e6a8969628$export$d1c7c4bcd9f26dd4
|
|
11064
11064
|
]);
|
|
@@ -11073,13 +11073,13 @@ const $3dc4ded751c8bdfb$export$4c260019440d418f = /* @__PURE__ */ React.forwardR
|
|
|
11073
11073
|
scope: __scopeToolbar,
|
|
11074
11074
|
orientation,
|
|
11075
11075
|
dir: direction2
|
|
11076
|
-
}, /* @__PURE__ */ React.createElement($d7bdfb9eb0fdf311$export$be92b6f5f03c0fe9,
|
|
11076
|
+
}, /* @__PURE__ */ React.createElement($d7bdfb9eb0fdf311$export$be92b6f5f03c0fe9, index1NFAbkxM._extends({
|
|
11077
11077
|
asChild: true
|
|
11078
11078
|
}, rovingFocusGroupScope, {
|
|
11079
11079
|
orientation,
|
|
11080
11080
|
dir: direction2,
|
|
11081
11081
|
loop: loop2
|
|
11082
|
-
}), /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div,
|
|
11082
|
+
}), /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, index1NFAbkxM._extends({
|
|
11083
11083
|
role: "toolbar",
|
|
11084
11084
|
"aria-orientation": orientation,
|
|
11085
11085
|
dir: direction2
|
|
@@ -11091,7 +11091,7 @@ const $3dc4ded751c8bdfb$var$SEPARATOR_NAME = "ToolbarSeparator";
|
|
|
11091
11091
|
const $3dc4ded751c8bdfb$export$291e1a31e8ec7868 = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
11092
11092
|
const { __scopeToolbar, ...separatorProps } = props;
|
|
11093
11093
|
const context = $3dc4ded751c8bdfb$var$useToolbarContext($3dc4ded751c8bdfb$var$SEPARATOR_NAME, __scopeToolbar);
|
|
11094
|
-
return /* @__PURE__ */ React.createElement($89eedd556c436f6a$export$be92b6f5f03c0fe9,
|
|
11094
|
+
return /* @__PURE__ */ React.createElement($89eedd556c436f6a$export$be92b6f5f03c0fe9, index1NFAbkxM._extends({
|
|
11095
11095
|
orientation: context.orientation === "horizontal" ? "vertical" : "horizontal"
|
|
11096
11096
|
}, separatorProps, {
|
|
11097
11097
|
ref: forwardedRef
|
|
@@ -11100,11 +11100,11 @@ const $3dc4ded751c8bdfb$export$291e1a31e8ec7868 = /* @__PURE__ */ React.forwardR
|
|
|
11100
11100
|
const $3dc4ded751c8bdfb$export$e5c1a33878e86e9e = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
11101
11101
|
const { __scopeToolbar, ...buttonProps } = props;
|
|
11102
11102
|
const rovingFocusGroupScope = $3dc4ded751c8bdfb$var$useRovingFocusGroupScope(__scopeToolbar);
|
|
11103
|
-
return /* @__PURE__ */ React.createElement($d7bdfb9eb0fdf311$export$6d08773d2e66f8f2,
|
|
11103
|
+
return /* @__PURE__ */ React.createElement($d7bdfb9eb0fdf311$export$6d08773d2e66f8f2, index1NFAbkxM._extends({
|
|
11104
11104
|
asChild: true
|
|
11105
11105
|
}, rovingFocusGroupScope, {
|
|
11106
11106
|
focusable: !props.disabled
|
|
11107
|
-
}), /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button,
|
|
11107
|
+
}), /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button, index1NFAbkxM._extends({
|
|
11108
11108
|
type: "button"
|
|
11109
11109
|
}, buttonProps, {
|
|
11110
11110
|
ref: forwardedRef
|
|
@@ -11115,7 +11115,7 @@ const $3dc4ded751c8bdfb$export$aeae28cb17562c0b = /* @__PURE__ */ React.forwardR
|
|
|
11115
11115
|
const { __scopeToolbar, ...toggleGroupProps } = props;
|
|
11116
11116
|
const context = $3dc4ded751c8bdfb$var$useToolbarContext($3dc4ded751c8bdfb$var$TOGGLE_GROUP_NAME, __scopeToolbar);
|
|
11117
11117
|
const toggleGroupScope = $3dc4ded751c8bdfb$var$useToggleGroupScope(__scopeToolbar);
|
|
11118
|
-
return /* @__PURE__ */ React.createElement($6c1fd9e6a8969628$export$be92b6f5f03c0fe9,
|
|
11118
|
+
return /* @__PURE__ */ React.createElement($6c1fd9e6a8969628$export$be92b6f5f03c0fe9, index1NFAbkxM._extends({
|
|
11119
11119
|
"data-orientation": context.orientation,
|
|
11120
11120
|
dir: context.dir
|
|
11121
11121
|
}, toggleGroupScope, toggleGroupProps, {
|
|
@@ -11129,9 +11129,9 @@ const $3dc4ded751c8bdfb$export$546b879b639844a1 = /* @__PURE__ */ React.forwardR
|
|
|
11129
11129
|
const scope = {
|
|
11130
11130
|
__scopeToolbar: props.__scopeToolbar
|
|
11131
11131
|
};
|
|
11132
|
-
return /* @__PURE__ */ React.createElement($3dc4ded751c8bdfb$export$e5c1a33878e86e9e,
|
|
11132
|
+
return /* @__PURE__ */ React.createElement($3dc4ded751c8bdfb$export$e5c1a33878e86e9e, index1NFAbkxM._extends({
|
|
11133
11133
|
asChild: true
|
|
11134
|
-
}, scope), /* @__PURE__ */ React.createElement($6c1fd9e6a8969628$export$6d08773d2e66f8f2,
|
|
11134
|
+
}, scope), /* @__PURE__ */ React.createElement($6c1fd9e6a8969628$export$6d08773d2e66f8f2, index1NFAbkxM._extends({}, toggleGroupScope, toggleItemProps, {
|
|
11135
11135
|
ref: forwardedRef
|
|
11136
11136
|
})));
|
|
11137
11137
|
});
|
|
@@ -25605,7 +25605,7 @@ picocolors_browser.exports = create();
|
|
|
25605
25605
|
picocolors_browser.exports.createColors = create;
|
|
25606
25606
|
var picocolors_browserExports = picocolors_browser.exports;
|
|
25607
25607
|
let pico = picocolors_browserExports;
|
|
25608
|
-
let terminalHighlight$1 =
|
|
25608
|
+
let terminalHighlight$1 = index1NFAbkxM.require$$0;
|
|
25609
25609
|
let CssSyntaxError$3 = class CssSyntaxError extends Error {
|
|
25610
25610
|
constructor(message, line, column, source2, file, plugin2) {
|
|
25611
25611
|
super(message);
|
|
@@ -26377,7 +26377,7 @@ let nanoid$1 = (size2 = 21) => {
|
|
|
26377
26377
|
return id2;
|
|
26378
26378
|
};
|
|
26379
26379
|
var nonSecure = { nanoid: nanoid$1, customAlphabet };
|
|
26380
|
-
let { SourceMapConsumer: SourceMapConsumer$2, SourceMapGenerator: SourceMapGenerator$2 } =
|
|
26380
|
+
let { SourceMapConsumer: SourceMapConsumer$2, SourceMapGenerator: SourceMapGenerator$2 } = index1NFAbkxM.require$$0;
|
|
26381
26381
|
let { existsSync, readFileSync } = require$$1__default.default;
|
|
26382
26382
|
let { dirname: dirname$1, join: join$1 } = require$$2__default.default;
|
|
26383
26383
|
function fromBase64(str) {
|
|
@@ -26496,11 +26496,11 @@ let PreviousMap$2 = class PreviousMap {
|
|
|
26496
26496
|
};
|
|
26497
26497
|
var previousMap = PreviousMap$2;
|
|
26498
26498
|
PreviousMap$2.default = PreviousMap$2;
|
|
26499
|
-
let { SourceMapConsumer: SourceMapConsumer$1, SourceMapGenerator: SourceMapGenerator$1 } =
|
|
26499
|
+
let { SourceMapConsumer: SourceMapConsumer$1, SourceMapGenerator: SourceMapGenerator$1 } = index1NFAbkxM.require$$0;
|
|
26500
26500
|
let { fileURLToPath, pathToFileURL: pathToFileURL$1 } = require$$1__default$1.default;
|
|
26501
26501
|
let { isAbsolute, resolve: resolve$1 } = require$$2__default.default;
|
|
26502
26502
|
let { nanoid } = nonSecure;
|
|
26503
|
-
let terminalHighlight =
|
|
26503
|
+
let terminalHighlight = index1NFAbkxM.require$$0;
|
|
26504
26504
|
let CssSyntaxError$1 = cssSyntaxError;
|
|
26505
26505
|
let PreviousMap$1 = previousMap;
|
|
26506
26506
|
let fromOffsetCache = Symbol("fromOffsetCache");
|
|
@@ -26702,7 +26702,7 @@ Input$4.default = Input$4;
|
|
|
26702
26702
|
if (terminalHighlight && terminalHighlight.registerInput) {
|
|
26703
26703
|
terminalHighlight.registerInput(Input$4);
|
|
26704
26704
|
}
|
|
26705
|
-
let { SourceMapConsumer, SourceMapGenerator } =
|
|
26705
|
+
let { SourceMapConsumer, SourceMapGenerator } = index1NFAbkxM.require$$0;
|
|
26706
26706
|
let { dirname, relative, resolve, sep } = require$$2__default.default;
|
|
26707
26707
|
let { pathToFileURL } = require$$1__default$1.default;
|
|
26708
26708
|
let Input$3 = input;
|
|
@@ -79008,7 +79008,7 @@ const useLazyComponents = (componentUids = []) => {
|
|
|
79008
79008
|
const [lazyComponentStore, setLazyComponentStore] = React.useState(Object.fromEntries(componentStore));
|
|
79009
79009
|
const newUids = componentUids.filter((uid) => !componentStore.get(uid));
|
|
79010
79010
|
const [loading, setLoading] = React.useState(() => !!newUids.length);
|
|
79011
|
-
const getCustomField =
|
|
79011
|
+
const getCustomField = index1NFAbkxM.useStrapiApp("useLazyComponents", (state) => state.customFields.get);
|
|
79012
79012
|
React.useEffect(() => {
|
|
79013
79013
|
const setStore = (store) => {
|
|
79014
79014
|
setLazyComponentStore(store);
|
|
@@ -79310,7 +79310,7 @@ const Image = ({ attributes, children, element }) => {
|
|
|
79310
79310
|
const ImageDialog = () => {
|
|
79311
79311
|
const [isOpen, setIsOpen] = React__namespace.useState(true);
|
|
79312
79312
|
const { editor } = useBlocksEditorContext("ImageDialog");
|
|
79313
|
-
const components =
|
|
79313
|
+
const components = index1NFAbkxM.useStrapiApp("ImageDialog", (state) => state.components);
|
|
79314
79314
|
if (!components || !isOpen)
|
|
79315
79315
|
return null;
|
|
79316
79316
|
const MediaLibraryDialog = components["media-library"];
|
|
@@ -79348,7 +79348,7 @@ const ImageDialog = () => {
|
|
|
79348
79348
|
const nodeImage = {
|
|
79349
79349
|
...expectedImage,
|
|
79350
79350
|
alternativeText: expectedImage.alternativeText || expectedImage.name,
|
|
79351
|
-
url:
|
|
79351
|
+
url: index1NFAbkxM.prefixFileUrlWithBackendUrl(image3.url)
|
|
79352
79352
|
};
|
|
79353
79353
|
return nodeImage;
|
|
79354
79354
|
});
|
|
@@ -80327,8 +80327,8 @@ const DropPlaceholder = styled__default.default(designSystem.Box)`
|
|
|
80327
80327
|
|
|
80328
80328
|
// Show drop placeholder 8px above or below the drop target
|
|
80329
80329
|
${({ dragDirection, theme, placeholderMargin }) => styled.css`
|
|
80330
|
-
top: ${dragDirection ===
|
|
80331
|
-
bottom: ${dragDirection ===
|
|
80330
|
+
top: ${dragDirection === index1NFAbkxM.DIRECTIONS.UPWARD && `-${theme.spaces[placeholderMargin]}`};
|
|
80331
|
+
bottom: ${dragDirection === index1NFAbkxM.DIRECTIONS.DOWNWARD && `-${theme.spaces[placeholderMargin]}`};
|
|
80332
80332
|
`}
|
|
80333
80333
|
`;
|
|
80334
80334
|
const DragItem = styled__default.default(designSystem.Flex)`
|
|
@@ -80399,7 +80399,7 @@ const DragAndDropElement = ({
|
|
|
80399
80399
|
setLiveText(
|
|
80400
80400
|
formatMessage(
|
|
80401
80401
|
{
|
|
80402
|
-
id:
|
|
80402
|
+
id: index1NFAbkxM.getTranslation("components.Blocks.dnd.reorder"),
|
|
80403
80403
|
defaultMessage: "{item}, moved. New position in the editor: {position}."
|
|
80404
80404
|
},
|
|
80405
80405
|
{
|
|
@@ -80411,8 +80411,8 @@ const DragAndDropElement = ({
|
|
|
80411
80411
|
},
|
|
80412
80412
|
[editor, formatMessage, name2, setLiveText]
|
|
80413
80413
|
);
|
|
80414
|
-
const [{ handlerId, isDragging, isOverDropTarget, direction: direction2 }, blockRef, dropRef, dragRef] =
|
|
80415
|
-
type: `${
|
|
80414
|
+
const [{ handlerId, isDragging, isOverDropTarget, direction: direction2 }, blockRef, dropRef, dragRef] = index1NFAbkxM.useDragAndDrop(!disabled, {
|
|
80415
|
+
type: `${index1NFAbkxM.ItemTypes.BLOCKS}_${name2}`,
|
|
80416
80416
|
index,
|
|
80417
80417
|
item: {
|
|
80418
80418
|
index,
|
|
@@ -80479,7 +80479,7 @@ const DragAndDropElement = ({
|
|
|
80479
80479
|
role: "button",
|
|
80480
80480
|
tabIndex: 0,
|
|
80481
80481
|
"aria-label": formatMessage({
|
|
80482
|
-
id:
|
|
80482
|
+
id: index1NFAbkxM.getTranslation("components.DragHandle-label"),
|
|
80483
80483
|
defaultMessage: "Drag"
|
|
80484
80484
|
}),
|
|
80485
80485
|
onClick: (e2) => e2.stopPropagation(),
|
|
@@ -80505,7 +80505,7 @@ const CloneDragItem = ({ children, dragHandleTopMargin }) => {
|
|
|
80505
80505
|
forwardedAs: "div",
|
|
80506
80506
|
role: "button",
|
|
80507
80507
|
"aria-label": formatMessage({
|
|
80508
|
-
id:
|
|
80508
|
+
id: index1NFAbkxM.getTranslation("components.DragHandle-label"),
|
|
80509
80509
|
defaultMessage: "Drag"
|
|
80510
80510
|
}),
|
|
80511
80511
|
dragHandleTopMargin,
|
|
@@ -80580,7 +80580,7 @@ const BlocksContent = ({ placeholder, ariaLabelId }) => {
|
|
|
80580
80580
|
setLiveText(
|
|
80581
80581
|
formatMessage(
|
|
80582
80582
|
{
|
|
80583
|
-
id:
|
|
80583
|
+
id: index1NFAbkxM.getTranslation("components.Blocks.dnd.reorder"),
|
|
80584
80584
|
defaultMessage: "{item}, moved. New position in the editor: {position}."
|
|
80585
80585
|
},
|
|
80586
80586
|
{
|
|
@@ -80811,7 +80811,7 @@ const EditorLayout$1 = ({
|
|
|
80811
80811
|
CollapseIconButton,
|
|
80812
80812
|
{
|
|
80813
80813
|
"aria-label": formatMessage({
|
|
80814
|
-
id:
|
|
80814
|
+
id: index1NFAbkxM.getTranslation("components.Blocks.collapse"),
|
|
80815
80815
|
defaultMessage: "Collapse"
|
|
80816
80816
|
}),
|
|
80817
80817
|
onClick: onCollapse,
|
|
@@ -81018,7 +81018,7 @@ const selectorBlockKeys = [
|
|
|
81018
81018
|
const isSelectorBlockKey = (key2) => {
|
|
81019
81019
|
return typeof key2 === "string" && selectorBlockKeys.includes(key2);
|
|
81020
81020
|
};
|
|
81021
|
-
const [BlocksEditorProvider, usePartialBlocksEditorContext] =
|
|
81021
|
+
const [BlocksEditorProvider, usePartialBlocksEditorContext] = index1NFAbkxM.$c512c27ab02ef895$export$fd42f52fd3ae1109("BlocksEditor");
|
|
81022
81022
|
function useBlocksEditorContext(consumerName) {
|
|
81023
81023
|
const context = usePartialBlocksEditorContext(consumerName);
|
|
81024
81024
|
const editor = useSlate();
|
|
@@ -81089,7 +81089,7 @@ const BlocksEditor = React__namespace.forwardRef(
|
|
|
81089
81089
|
};
|
|
81090
81090
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
81091
81091
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.VisuallyHidden, { id: ariaDescriptionId, children: formatMessage({
|
|
81092
|
-
id:
|
|
81092
|
+
id: index1NFAbkxM.getTranslation("components.Blocks.dnd.instruction"),
|
|
81093
81093
|
defaultMessage: `To reorder blocks, press Command or Control along with Shift and the Up or Down arrow keys`
|
|
81094
81094
|
}) }),
|
|
81095
81095
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.VisuallyHidden, { "aria-live": "assertive", children: liveText }),
|
|
@@ -81123,7 +81123,7 @@ const BlocksEditor = React__namespace.forwardRef(
|
|
|
81123
81123
|
ExpandIconButton,
|
|
81124
81124
|
{
|
|
81125
81125
|
"aria-label": formatMessage({
|
|
81126
|
-
id:
|
|
81126
|
+
id: index1NFAbkxM.getTranslation("components.Blocks.expand"),
|
|
81127
81127
|
defaultMessage: "Expand"
|
|
81128
81128
|
}),
|
|
81129
81129
|
onClick: handleToggleExpand,
|
|
@@ -81144,7 +81144,7 @@ const BlocksEditor = React__namespace.forwardRef(
|
|
|
81144
81144
|
const BlocksInput = React__namespace.forwardRef(
|
|
81145
81145
|
({ label: label2, name: name2, required = false, hint, ...editorProps }, forwardedRef) => {
|
|
81146
81146
|
const id2 = React__namespace.useId();
|
|
81147
|
-
const field =
|
|
81147
|
+
const field = index1NFAbkxM.useField(name2);
|
|
81148
81148
|
return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field, { id: id2, name: name2, hint, error: field.error, required, children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", alignItems: "stretch", gap: 1, children: [
|
|
81149
81149
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.FieldLabel, { children: label2 }),
|
|
81150
81150
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -81213,7 +81213,7 @@ const prepareTempKeys = traverseData(
|
|
|
81213
81213
|
(attribute2) => attribute2.type === "component" && attribute2.repeatable || attribute2.type === "dynamiczone",
|
|
81214
81214
|
(data) => {
|
|
81215
81215
|
if (Array.isArray(data) && data.length > 0) {
|
|
81216
|
-
const keys =
|
|
81216
|
+
const keys = index1NFAbkxM.generateNKeysBetween(void 0, void 0, data.length);
|
|
81217
81217
|
return data.map((datum, index) => ({
|
|
81218
81218
|
...datum,
|
|
81219
81219
|
__temp_key__: keys[index]
|
|
@@ -81226,7 +81226,7 @@ const removeFieldsThatDontExistOnSchema = (schema) => (data) => {
|
|
|
81226
81226
|
const schemaKeys = Object.keys(schema.attributes);
|
|
81227
81227
|
const dataKeys = Object.keys(data);
|
|
81228
81228
|
const keysToRemove = dataKeys.filter((key2) => !schemaKeys.includes(key2));
|
|
81229
|
-
const revisedData = [...keysToRemove, ...
|
|
81229
|
+
const revisedData = [...keysToRemove, ...index1NFAbkxM.DOCUMENT_META_FIELDS].reduce((acc, key2) => {
|
|
81230
81230
|
delete acc[key2];
|
|
81231
81231
|
return acc;
|
|
81232
81232
|
}, structuredClone(data));
|
|
@@ -81273,7 +81273,7 @@ const createDefaultForm = (contentType, components = {}) => {
|
|
|
81273
81273
|
};
|
|
81274
81274
|
const Initializer = ({ disabled, name: name2, onClick }) => {
|
|
81275
81275
|
const { formatMessage } = reactIntl.useIntl();
|
|
81276
|
-
const field =
|
|
81276
|
+
const field = index1NFAbkxM.useField(name2);
|
|
81277
81277
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
81278
81278
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
81279
81279
|
designSystem.Box,
|
|
@@ -81290,7 +81290,7 @@ const Initializer = ({ disabled, name: name2, onClick }) => {
|
|
|
81290
81290
|
children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", gap: 2, children: [
|
|
81291
81291
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { justifyContent: "center", children: /* @__PURE__ */ jsxRuntime.jsx(CircleIcon, {}) }),
|
|
81292
81292
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { justifyContent: "center", children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { textColor: "primary600", variant: "pi", fontWeight: "bold", children: formatMessage({
|
|
81293
|
-
id:
|
|
81293
|
+
id: index1NFAbkxM.getTranslation("components.empty-repeatable"),
|
|
81294
81294
|
defaultMessage: "No entry yet. Click on the button below to add one."
|
|
81295
81295
|
}) }) })
|
|
81296
81296
|
] })
|
|
@@ -81312,12 +81312,12 @@ const CircleIcon = styled__default.default(Icons.PlusCircle)`
|
|
|
81312
81312
|
const NonRepeatableComponent = ({ attribute: attribute2, name: name2 }) => {
|
|
81313
81313
|
const {
|
|
81314
81314
|
edit: { components }
|
|
81315
|
-
} =
|
|
81316
|
-
const { value } =
|
|
81317
|
-
const level =
|
|
81315
|
+
} = index1NFAbkxM.useDocLayout();
|
|
81316
|
+
const { value } = index1NFAbkxM.useField(name2);
|
|
81317
|
+
const level = index1NFAbkxM.useComponent("NonRepeatableComponent", (state) => state.level);
|
|
81318
81318
|
const { layout } = components[attribute2.component];
|
|
81319
81319
|
const isNested = level > 0;
|
|
81320
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
81320
|
+
return /* @__PURE__ */ jsxRuntime.jsx(index1NFAbkxM.ComponentProvider, { id: value?.id, uid: attribute2.component, level: level + 1, type: "component", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
81321
81321
|
designSystem.Box,
|
|
81322
81322
|
{
|
|
81323
81323
|
background: "neutral100",
|
|
@@ -81342,15 +81342,15 @@ const RepeatableComponent = ({
|
|
|
81342
81342
|
name: name2,
|
|
81343
81343
|
mainField
|
|
81344
81344
|
}) => {
|
|
81345
|
-
const { toggleNotification } =
|
|
81345
|
+
const { toggleNotification } = index1NFAbkxM.useNotification();
|
|
81346
81346
|
const { formatMessage } = reactIntl.useIntl();
|
|
81347
81347
|
const { search: searchString } = reactRouterDom.useLocation();
|
|
81348
81348
|
const search = React__namespace.useMemo(() => new URLSearchParams(searchString), [searchString]);
|
|
81349
|
-
const { components } =
|
|
81350
|
-
const { value = [], error: error2 } =
|
|
81351
|
-
const addFieldRow =
|
|
81352
|
-
const moveFieldRow =
|
|
81353
|
-
const removeFieldRow =
|
|
81349
|
+
const { components } = index1NFAbkxM.useDoc();
|
|
81350
|
+
const { value = [], error: error2 } = index1NFAbkxM.useField(name2);
|
|
81351
|
+
const addFieldRow = index1NFAbkxM.useForm("RepeatableComponent", (state) => state.addFieldRow);
|
|
81352
|
+
const moveFieldRow = index1NFAbkxM.useForm("RepeatableComponent", (state) => state.moveFieldRow);
|
|
81353
|
+
const removeFieldRow = index1NFAbkxM.useForm("RepeatableComponent", (state) => state.removeFieldRow);
|
|
81354
81354
|
const { max = Infinity } = attribute2;
|
|
81355
81355
|
const [collapseToOpen, setCollapseToOpen] = React__namespace.useState(null);
|
|
81356
81356
|
const [liveText, setLiveText] = React__namespace.useState("");
|
|
@@ -81361,9 +81361,9 @@ const RepeatableComponent = ({
|
|
|
81361
81361
|
return void 0;
|
|
81362
81362
|
}
|
|
81363
81363
|
const [, path3] = fieldParam.split(`${name2}.`);
|
|
81364
|
-
if (
|
|
81364
|
+
if (index1NFAbkxM.getIn(value, path3, void 0) !== void 0) {
|
|
81365
81365
|
const [subpath] = path3.split(".");
|
|
81366
|
-
return
|
|
81366
|
+
return index1NFAbkxM.getIn(value, subpath, void 0)?.__temp_key__;
|
|
81367
81367
|
}
|
|
81368
81368
|
}
|
|
81369
81369
|
return void 0;
|
|
@@ -81386,7 +81386,7 @@ const RepeatableComponent = ({
|
|
|
81386
81386
|
toggleNotification({
|
|
81387
81387
|
type: "info",
|
|
81388
81388
|
message: formatMessage({
|
|
81389
|
-
id:
|
|
81389
|
+
id: index1NFAbkxM.getTranslation("components.notification.info.maximum-requirement")
|
|
81390
81390
|
})
|
|
81391
81391
|
});
|
|
81392
81392
|
}
|
|
@@ -81395,7 +81395,7 @@ const RepeatableComponent = ({
|
|
|
81395
81395
|
setLiveText(
|
|
81396
81396
|
formatMessage(
|
|
81397
81397
|
{
|
|
81398
|
-
id:
|
|
81398
|
+
id: index1NFAbkxM.getTranslation("dnd.reorder"),
|
|
81399
81399
|
defaultMessage: "{item}, moved. New position in list: {position}."
|
|
81400
81400
|
},
|
|
81401
81401
|
{
|
|
@@ -81418,7 +81418,7 @@ const RepeatableComponent = ({
|
|
|
81418
81418
|
setLiveText(
|
|
81419
81419
|
formatMessage(
|
|
81420
81420
|
{
|
|
81421
|
-
id:
|
|
81421
|
+
id: index1NFAbkxM.getTranslation("dnd.cancel-item"),
|
|
81422
81422
|
defaultMessage: "{item}, dropped. Re-order cancelled."
|
|
81423
81423
|
},
|
|
81424
81424
|
{
|
|
@@ -81431,7 +81431,7 @@ const RepeatableComponent = ({
|
|
|
81431
81431
|
setLiveText(
|
|
81432
81432
|
formatMessage(
|
|
81433
81433
|
{
|
|
81434
|
-
id:
|
|
81434
|
+
id: index1NFAbkxM.getTranslation("dnd.grab-item"),
|
|
81435
81435
|
defaultMessage: `{item}, grabbed. Current position in list: {position}. Press up and down arrow to change position, Spacebar to drop, Escape to cancel.`
|
|
81436
81436
|
},
|
|
81437
81437
|
{
|
|
@@ -81445,7 +81445,7 @@ const RepeatableComponent = ({
|
|
|
81445
81445
|
setLiveText(
|
|
81446
81446
|
formatMessage(
|
|
81447
81447
|
{
|
|
81448
|
-
id:
|
|
81448
|
+
id: index1NFAbkxM.getTranslation("dnd.drop-item"),
|
|
81449
81449
|
defaultMessage: `{item}, dropped. Final position in list: {position}.`
|
|
81450
81450
|
},
|
|
81451
81451
|
{
|
|
@@ -81456,20 +81456,20 @@ const RepeatableComponent = ({
|
|
|
81456
81456
|
);
|
|
81457
81457
|
};
|
|
81458
81458
|
const ariaDescriptionId = React__namespace.useId();
|
|
81459
|
-
const level =
|
|
81459
|
+
const level = index1NFAbkxM.useComponent("RepeatableComponent", (state) => state.level);
|
|
81460
81460
|
if (value.length === 0) {
|
|
81461
81461
|
return /* @__PURE__ */ jsxRuntime.jsx(Initializer, { disabled, name: name2, onClick: handleClick });
|
|
81462
81462
|
}
|
|
81463
81463
|
return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Box, { hasRadius: true, children: [
|
|
81464
81464
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.VisuallyHidden, { id: ariaDescriptionId, children: formatMessage({
|
|
81465
|
-
id:
|
|
81465
|
+
id: index1NFAbkxM.getTranslation("dnd.instructions"),
|
|
81466
81466
|
defaultMessage: `Press spacebar to grab and re-order`
|
|
81467
81467
|
}) }),
|
|
81468
81468
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.VisuallyHidden, { "aria-live": "assertive", children: liveText }),
|
|
81469
81469
|
/* @__PURE__ */ jsxRuntime.jsxs(AccordionGroup, { error: error2, children: [
|
|
81470
81470
|
/* @__PURE__ */ jsxRuntime.jsx(AccordionContent, { "aria-describedby": ariaDescriptionId, children: value.map(({ __temp_key__: key2, id: id2 }, index) => {
|
|
81471
81471
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
81472
|
-
|
|
81472
|
+
index1NFAbkxM.ComponentProvider,
|
|
81473
81473
|
{
|
|
81474
81474
|
id: id2,
|
|
81475
81475
|
uid: attribute2.component,
|
|
@@ -81501,7 +81501,7 @@ const RepeatableComponent = ({
|
|
|
81501
81501
|
);
|
|
81502
81502
|
}) }),
|
|
81503
81503
|
/* @__PURE__ */ jsxRuntime.jsx(AccordionFooter, { children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { justifyContent: "center", height: "48px", background: "neutral0", children: /* @__PURE__ */ jsxRuntime.jsx(TextButtonCustom, { disabled, onClick: handleClick, startIcon: /* @__PURE__ */ jsxRuntime.jsx(Icons.Plus, {}), children: formatMessage({
|
|
81504
|
-
id:
|
|
81504
|
+
id: index1NFAbkxM.getTranslation("containers.EditView.add.new-entry"),
|
|
81505
81505
|
defaultMessage: "Add an entry"
|
|
81506
81506
|
}) }) }) })
|
|
81507
81507
|
] })
|
|
@@ -81616,15 +81616,15 @@ const Component = ({
|
|
|
81616
81616
|
const { formatMessage } = reactIntl.useIntl();
|
|
81617
81617
|
const {
|
|
81618
81618
|
edit: { components }
|
|
81619
|
-
} =
|
|
81619
|
+
} = index1NFAbkxM.useDocLayout();
|
|
81620
81620
|
const { layout } = components[attribute2.component];
|
|
81621
|
-
const displayValue =
|
|
81622
|
-
return
|
|
81621
|
+
const displayValue = index1NFAbkxM.useForm("RepeatableComponent", (state) => {
|
|
81622
|
+
return index1NFAbkxM.getIn(state.values, [...name2.split("."), mainField.name]);
|
|
81623
81623
|
});
|
|
81624
81624
|
const accordionRef = React__namespace.useRef(null);
|
|
81625
81625
|
const componentKey = name2.split(".").slice(0, -1).join(".");
|
|
81626
|
-
const [{ handlerId, isDragging, handleKeyDown }, boxRef, dropRef, dragRef, dragPreviewRef] =
|
|
81627
|
-
type: `${
|
|
81626
|
+
const [{ handlerId, isDragging, handleKeyDown }, boxRef, dropRef, dragRef, dragPreviewRef] = index1NFAbkxM.useDragAndDrop(!disabled, {
|
|
81627
|
+
type: `${index1NFAbkxM.ItemTypes.COMPONENT}_${componentKey}`,
|
|
81628
81628
|
index,
|
|
81629
81629
|
item: {
|
|
81630
81630
|
index,
|
|
@@ -81636,7 +81636,7 @@ const Component = ({
|
|
|
81636
81636
|
...dragProps
|
|
81637
81637
|
});
|
|
81638
81638
|
React__namespace.useEffect(() => {
|
|
81639
|
-
dragPreviewRef(
|
|
81639
|
+
dragPreviewRef(index1NFAbkxM.getEmptyImage(), { captureDraggingState: false });
|
|
81640
81640
|
}, [dragPreviewRef, index]);
|
|
81641
81641
|
const composedAccordionRefs = designSystem.useComposedRefs(accordionRef, dragRef);
|
|
81642
81642
|
const composedBoxRefs = designSystem.useComposedRefs(boxRef, dropRef);
|
|
@@ -81652,7 +81652,7 @@ const Component = ({
|
|
|
81652
81652
|
borderWidth: 0,
|
|
81653
81653
|
onClick: onDeleteComponent,
|
|
81654
81654
|
label: formatMessage({
|
|
81655
|
-
id:
|
|
81655
|
+
id: index1NFAbkxM.getTranslation("containers.Edit.delete"),
|
|
81656
81656
|
defaultMessage: "Delete"
|
|
81657
81657
|
}),
|
|
81658
81658
|
icon: /* @__PURE__ */ jsxRuntime.jsx(Icons.Trash, {})
|
|
@@ -81670,7 +81670,7 @@ const Component = ({
|
|
|
81670
81670
|
onClick: (e2) => e2.stopPropagation(),
|
|
81671
81671
|
"data-handler-id": handlerId,
|
|
81672
81672
|
label: formatMessage({
|
|
81673
|
-
id:
|
|
81673
|
+
id: index1NFAbkxM.getTranslation("components.DragHandle-label"),
|
|
81674
81674
|
defaultMessage: "Drag"
|
|
81675
81675
|
}),
|
|
81676
81676
|
onKeyDown: handleKeyDown,
|
|
@@ -81717,9 +81717,9 @@ const ComponentInput = ({
|
|
|
81717
81717
|
...props
|
|
81718
81718
|
}) => {
|
|
81719
81719
|
const { formatMessage } = reactIntl.useIntl();
|
|
81720
|
-
const field =
|
|
81720
|
+
const field = index1NFAbkxM.useField(name2);
|
|
81721
81721
|
const showResetComponent = !attribute2.repeatable && field.value && !disabled;
|
|
81722
|
-
const { components } =
|
|
81722
|
+
const { components } = index1NFAbkxM.useDoc();
|
|
81723
81723
|
const handleInitialisationClick = () => {
|
|
81724
81724
|
const schema = components[attribute2.component];
|
|
81725
81725
|
const form = createDefaultForm(schema, components);
|
|
@@ -81751,7 +81751,7 @@ const ComponentInput = ({
|
|
|
81751
81751
|
designSystem.IconButton,
|
|
81752
81752
|
{
|
|
81753
81753
|
label: formatMessage({
|
|
81754
|
-
id:
|
|
81754
|
+
id: index1NFAbkxM.getTranslation("components.reset-entry"),
|
|
81755
81755
|
defaultMessage: "Reset Entry"
|
|
81756
81756
|
}),
|
|
81757
81757
|
icon: /* @__PURE__ */ jsxRuntime.jsx(Icons.Trash, {}),
|
|
@@ -81956,7 +81956,7 @@ const ComponentPicker = ({
|
|
|
81956
81956
|
hasRadius: true,
|
|
81957
81957
|
children: [
|
|
81958
81958
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { justifyContent: "center", children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { fontWeight: "bold", textColor: "neutral600", children: formatMessage({
|
|
81959
|
-
id:
|
|
81959
|
+
id: index1NFAbkxM.getTranslation("components.DynamicZone.ComponentPicker-label"),
|
|
81960
81960
|
defaultMessage: "Pick one component"
|
|
81961
81961
|
}) }) }),
|
|
81962
81962
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { paddingTop: 2, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.KeyboardNavigable, { attributeName: "data-strapi-accordion-toggle", children: Object.entries(dynamicComponentsByCategory).map(([category, components], index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -81990,13 +81990,13 @@ const DynamicComponent = ({
|
|
|
81990
81990
|
}) => {
|
|
81991
81991
|
const [isOpen, setIsOpen] = React__namespace.useState(true);
|
|
81992
81992
|
const { formatMessage } = reactIntl.useIntl();
|
|
81993
|
-
const formValues =
|
|
81993
|
+
const formValues = index1NFAbkxM.useForm("DynamicComponent", (state) => state.values);
|
|
81994
81994
|
const {
|
|
81995
81995
|
edit: { components }
|
|
81996
|
-
} =
|
|
81996
|
+
} = index1NFAbkxM.useDocLayout();
|
|
81997
81997
|
const title = React__namespace.useMemo(() => {
|
|
81998
81998
|
const { mainField } = components[componentUid]?.settings ?? { mainField: "id" };
|
|
81999
|
-
const mainFieldValue =
|
|
81999
|
+
const mainFieldValue = index1NFAbkxM.getIn(formValues, `${name2}.${index}.${mainField}`);
|
|
82000
82000
|
const displayedValue = mainField === "id" ? "" : String(mainFieldValue).trim();
|
|
82001
82001
|
const mainValue = displayedValue.length > 0 ? `- ${displayedValue}` : displayedValue;
|
|
82002
82002
|
return mainValue;
|
|
@@ -82011,8 +82011,8 @@ const DynamicComponent = ({
|
|
|
82011
82011
|
const handleToggle = () => {
|
|
82012
82012
|
setIsOpen((s) => !s);
|
|
82013
82013
|
};
|
|
82014
|
-
const [{ handlerId, isDragging, handleKeyDown }, boxRef, dropRef, dragRef, dragPreviewRef] =
|
|
82015
|
-
type: `${
|
|
82014
|
+
const [{ handlerId, isDragging, handleKeyDown }, boxRef, dropRef, dragRef, dragPreviewRef] = index1NFAbkxM.useDragAndDrop(!disabled, {
|
|
82015
|
+
type: `${index1NFAbkxM.ItemTypes.DYNAMIC_ZONE}_${name2}`,
|
|
82016
82016
|
index,
|
|
82017
82017
|
item: {
|
|
82018
82018
|
index,
|
|
@@ -82025,7 +82025,7 @@ const DynamicComponent = ({
|
|
|
82025
82025
|
onCancel
|
|
82026
82026
|
});
|
|
82027
82027
|
React__namespace.useEffect(() => {
|
|
82028
|
-
dragPreviewRef(
|
|
82028
|
+
dragPreviewRef(index1NFAbkxM.getEmptyImage(), { captureDraggingState: false });
|
|
82029
82029
|
}, [dragPreviewRef, index]);
|
|
82030
82030
|
const composedBoxRefs = designSystem.useComposedRefs(boxRef, dropRef);
|
|
82031
82031
|
const accordionActions = disabled ? null : /* @__PURE__ */ jsxRuntime.jsxs(ActionsFlex, { gap: 0, children: [
|
|
@@ -82035,7 +82035,7 @@ const DynamicComponent = ({
|
|
|
82035
82035
|
borderWidth: 0,
|
|
82036
82036
|
label: formatMessage(
|
|
82037
82037
|
{
|
|
82038
|
-
id:
|
|
82038
|
+
id: index1NFAbkxM.getTranslation("components.DynamicZone.delete-label"),
|
|
82039
82039
|
defaultMessage: "Delete {name}"
|
|
82040
82040
|
},
|
|
82041
82041
|
{ name: title }
|
|
@@ -82055,7 +82055,7 @@ const DynamicComponent = ({
|
|
|
82055
82055
|
"data-handler-id": handlerId,
|
|
82056
82056
|
ref: dragRef,
|
|
82057
82057
|
label: formatMessage({
|
|
82058
|
-
id:
|
|
82058
|
+
id: index1NFAbkxM.getTranslation("components.DragHandle-label"),
|
|
82059
82059
|
defaultMessage: "Drag"
|
|
82060
82060
|
}),
|
|
82061
82061
|
onKeyDown: handleKeyDown,
|
|
@@ -82066,14 +82066,14 @@ const DynamicComponent = ({
|
|
|
82066
82066
|
/* @__PURE__ */ jsxRuntime.jsxs(v2.Menu.Trigger, { size: "S", endIcon: null, paddingLeft: 2, paddingRight: 2, children: [
|
|
82067
82067
|
/* @__PURE__ */ jsxRuntime.jsx(Icons.More, { "aria-hidden": true, focusable: false }),
|
|
82068
82068
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.VisuallyHidden, { as: "span", children: formatMessage({
|
|
82069
|
-
id:
|
|
82069
|
+
id: index1NFAbkxM.getTranslation("components.DynamicZone.more-actions"),
|
|
82070
82070
|
defaultMessage: "More actions"
|
|
82071
82071
|
}) })
|
|
82072
82072
|
] }),
|
|
82073
82073
|
/* @__PURE__ */ jsxRuntime.jsxs(v2.Menu.Content, { children: [
|
|
82074
82074
|
/* @__PURE__ */ jsxRuntime.jsxs(v2.Menu.SubRoot, { children: [
|
|
82075
82075
|
/* @__PURE__ */ jsxRuntime.jsx(v2.Menu.SubTrigger, { children: formatMessage({
|
|
82076
|
-
id:
|
|
82076
|
+
id: index1NFAbkxM.getTranslation("components.DynamicZone.add-item-above"),
|
|
82077
82077
|
defaultMessage: "Add component above"
|
|
82078
82078
|
}) }),
|
|
82079
82079
|
/* @__PURE__ */ jsxRuntime.jsx(v2.Menu.SubContent, { children: Object.entries(dynamicComponentsByCategory).map(([category, components2]) => /* @__PURE__ */ jsxRuntime.jsxs(React__namespace.Fragment, { children: [
|
|
@@ -82083,7 +82083,7 @@ const DynamicComponent = ({
|
|
|
82083
82083
|
] }),
|
|
82084
82084
|
/* @__PURE__ */ jsxRuntime.jsxs(v2.Menu.SubRoot, { children: [
|
|
82085
82085
|
/* @__PURE__ */ jsxRuntime.jsx(v2.Menu.SubTrigger, { children: formatMessage({
|
|
82086
|
-
id:
|
|
82086
|
+
id: index1NFAbkxM.getTranslation("components.DynamicZone.add-item-below"),
|
|
82087
82087
|
defaultMessage: "Add component below"
|
|
82088
82088
|
}) }),
|
|
82089
82089
|
/* @__PURE__ */ jsxRuntime.jsx(v2.Menu.SubContent, { children: Object.entries(dynamicComponentsByCategory).map(([category, components2]) => /* @__PURE__ */ jsxRuntime.jsxs(React__namespace.Fragment, { children: [
|
|
@@ -82192,7 +82192,7 @@ const DynamicZoneLabel = ({
|
|
|
82192
82192
|
}
|
|
82193
82193
|
) });
|
|
82194
82194
|
};
|
|
82195
|
-
const [DynamicZoneProvider, useDynamicZone] =
|
|
82195
|
+
const [DynamicZoneProvider, useDynamicZone] = index1NFAbkxM.createContext(
|
|
82196
82196
|
"DynamicZone",
|
|
82197
82197
|
{
|
|
82198
82198
|
isInDynamicZone: false
|
|
@@ -82209,8 +82209,8 @@ const DynamicZone = ({
|
|
|
82209
82209
|
const { max = Infinity, min = -Infinity } = attribute2 ?? {};
|
|
82210
82210
|
const [addComponentIsOpen, setAddComponentIsOpen] = React__namespace.useState(false);
|
|
82211
82211
|
const [liveText, setLiveText] = React__namespace.useState("");
|
|
82212
|
-
const { components } =
|
|
82213
|
-
const { addFieldRow, removeFieldRow, moveFieldRow } =
|
|
82212
|
+
const { components } = index1NFAbkxM.useDoc();
|
|
82213
|
+
const { addFieldRow, removeFieldRow, moveFieldRow } = index1NFAbkxM.useForm(
|
|
82214
82214
|
"DynamicZone",
|
|
82215
82215
|
({ addFieldRow: addFieldRow2, removeFieldRow: removeFieldRow2, moveFieldRow: moveFieldRow2 }) => ({
|
|
82216
82216
|
addFieldRow: addFieldRow2,
|
|
@@ -82218,9 +82218,7 @@ const DynamicZone = ({
|
|
|
82218
82218
|
moveFieldRow: moveFieldRow2
|
|
82219
82219
|
})
|
|
82220
82220
|
);
|
|
82221
|
-
const { value = [], error: error2 } =
|
|
82222
|
-
name2
|
|
82223
|
-
);
|
|
82221
|
+
const { value = [], error: error2 } = index1NFAbkxM.useField(name2);
|
|
82224
82222
|
const dynamicComponentsByCategory = React__namespace.useMemo(() => {
|
|
82225
82223
|
return attribute2.components.reduce((acc, componentUid) => {
|
|
82226
82224
|
const { category, info } = components[componentUid] ?? { info: {} };
|
|
@@ -82233,7 +82231,7 @@ const DynamicZone = ({
|
|
|
82233
82231
|
}, {});
|
|
82234
82232
|
}, [attribute2.components, components]);
|
|
82235
82233
|
const { formatMessage } = reactIntl.useIntl();
|
|
82236
|
-
const { toggleNotification } =
|
|
82234
|
+
const { toggleNotification } = index1NFAbkxM.useNotification();
|
|
82237
82235
|
const dynamicDisplayedComponentsLength = value.length;
|
|
82238
82236
|
const handleAddComponent = (uid, position) => {
|
|
82239
82237
|
setAddComponentIsOpen(false);
|
|
@@ -82253,7 +82251,7 @@ const DynamicZone = ({
|
|
|
82253
82251
|
toggleNotification({
|
|
82254
82252
|
type: "info",
|
|
82255
82253
|
message: formatMessage({
|
|
82256
|
-
id:
|
|
82254
|
+
id: index1NFAbkxM.getTranslation("components.notification.info.maximum-requirement")
|
|
82257
82255
|
})
|
|
82258
82256
|
});
|
|
82259
82257
|
}
|
|
@@ -82262,7 +82260,7 @@ const DynamicZone = ({
|
|
|
82262
82260
|
setLiveText(
|
|
82263
82261
|
formatMessage(
|
|
82264
82262
|
{
|
|
82265
|
-
id:
|
|
82263
|
+
id: index1NFAbkxM.getTranslation("dnd.reorder"),
|
|
82266
82264
|
defaultMessage: "{item}, moved. New position in list: {position}."
|
|
82267
82265
|
},
|
|
82268
82266
|
{
|
|
@@ -82278,7 +82276,7 @@ const DynamicZone = ({
|
|
|
82278
82276
|
setLiveText(
|
|
82279
82277
|
formatMessage(
|
|
82280
82278
|
{
|
|
82281
|
-
id:
|
|
82279
|
+
id: index1NFAbkxM.getTranslation("dnd.cancel-item"),
|
|
82282
82280
|
defaultMessage: "{item}, dropped. Re-order cancelled."
|
|
82283
82281
|
},
|
|
82284
82282
|
{
|
|
@@ -82291,7 +82289,7 @@ const DynamicZone = ({
|
|
|
82291
82289
|
setLiveText(
|
|
82292
82290
|
formatMessage(
|
|
82293
82291
|
{
|
|
82294
|
-
id:
|
|
82292
|
+
id: index1NFAbkxM.getTranslation("dnd.grab-item"),
|
|
82295
82293
|
defaultMessage: `{item}, grabbed. Current position in list: {position}. Press up and down arrow to change position, Spacebar to drop, Escape to cancel.`
|
|
82296
82294
|
},
|
|
82297
82295
|
{
|
|
@@ -82305,7 +82303,7 @@ const DynamicZone = ({
|
|
|
82305
82303
|
setLiveText(
|
|
82306
82304
|
formatMessage(
|
|
82307
82305
|
{
|
|
82308
|
-
id:
|
|
82306
|
+
id: index1NFAbkxM.getTranslation("dnd.drop-item"),
|
|
82309
82307
|
defaultMessage: `{item}, dropped. Final position in list: {position}.`
|
|
82310
82308
|
},
|
|
82311
82309
|
{
|
|
@@ -82326,7 +82324,7 @@ const DynamicZone = ({
|
|
|
82326
82324
|
if (hasError && dynamicDisplayedComponentsLength > max) {
|
|
82327
82325
|
return formatMessage(
|
|
82328
82326
|
{
|
|
82329
|
-
id:
|
|
82327
|
+
id: index1NFAbkxM.getTranslation(`components.DynamicZone.extra-components`),
|
|
82330
82328
|
defaultMessage: "There {number, plural, =0 {are # extra components} one {is # extra component} other {are # extra components}}"
|
|
82331
82329
|
},
|
|
82332
82330
|
{
|
|
@@ -82337,7 +82335,7 @@ const DynamicZone = ({
|
|
|
82337
82335
|
if (hasError && dynamicDisplayedComponentsLength < min) {
|
|
82338
82336
|
return formatMessage(
|
|
82339
82337
|
{
|
|
82340
|
-
id:
|
|
82338
|
+
id: index1NFAbkxM.getTranslation(`components.DynamicZone.missing-components`),
|
|
82341
82339
|
defaultMessage: "There {number, plural, =0 {are # missing components} one {is # missing component} other {are # missing components}}"
|
|
82342
82340
|
},
|
|
82343
82341
|
{ number: min - dynamicDisplayedComponentsLength }
|
|
@@ -82345,13 +82343,13 @@ const DynamicZone = ({
|
|
|
82345
82343
|
}
|
|
82346
82344
|
return formatMessage(
|
|
82347
82345
|
{
|
|
82348
|
-
id:
|
|
82346
|
+
id: index1NFAbkxM.getTranslation("components.DynamicZone.add-component"),
|
|
82349
82347
|
defaultMessage: "Add a component to {componentName}"
|
|
82350
82348
|
},
|
|
82351
82349
|
{ componentName: label2 || name2 }
|
|
82352
82350
|
);
|
|
82353
82351
|
};
|
|
82354
|
-
const level =
|
|
82352
|
+
const level = index1NFAbkxM.useComponent("DynamicZone", (state) => state.level);
|
|
82355
82353
|
const ariaDescriptionId = React__namespace.useId();
|
|
82356
82354
|
return /* @__PURE__ */ jsxRuntime.jsx(DynamicZoneProvider, { isInDynamicZone: true, children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", alignItems: "stretch", gap: 6, children: [
|
|
82357
82355
|
dynamicDisplayedComponentsLength > 0 && /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Box, { children: [
|
|
@@ -82366,12 +82364,12 @@ const DynamicZone = ({
|
|
|
82366
82364
|
}
|
|
82367
82365
|
),
|
|
82368
82366
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.VisuallyHidden, { id: ariaDescriptionId, children: formatMessage({
|
|
82369
|
-
id:
|
|
82367
|
+
id: index1NFAbkxM.getTranslation("dnd.instructions"),
|
|
82370
82368
|
defaultMessage: `Press spacebar to grab and re-order`
|
|
82371
82369
|
}) }),
|
|
82372
82370
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.VisuallyHidden, { "aria-live": "assertive", children: liveText }),
|
|
82373
82371
|
/* @__PURE__ */ jsxRuntime.jsx("ol", { "aria-describedby": ariaDescriptionId, children: value.map((field, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
82374
|
-
|
|
82372
|
+
index1NFAbkxM.ComponentProvider,
|
|
82375
82373
|
{
|
|
82376
82374
|
level: level + 1,
|
|
82377
82375
|
uid: field.__component,
|
|
@@ -82417,7 +82415,7 @@ const DynamicZone = ({
|
|
|
82417
82415
|
)
|
|
82418
82416
|
] }) });
|
|
82419
82417
|
};
|
|
82420
|
-
const uidApi =
|
|
82418
|
+
const uidApi = index1NFAbkxM.contentManagerApi.injectEndpoints({
|
|
82421
82419
|
endpoints: (builder) => ({
|
|
82422
82420
|
getDefaultUID: builder.query({
|
|
82423
82421
|
query: ({ params, ...data }) => {
|
|
@@ -82459,17 +82457,17 @@ const { useGenerateUIDMutation, useGetDefaultUIDQuery, useGetAvailabilityQuery }
|
|
|
82459
82457
|
const UID_REGEX = /^[A-Za-z0-9-_.~]*$/;
|
|
82460
82458
|
const UIDInput = React__namespace.forwardRef(
|
|
82461
82459
|
({ hint, disabled, label: label2, name: name2, placeholder, required }, ref) => {
|
|
82462
|
-
const { model, id: id2 } =
|
|
82463
|
-
const allFormValues =
|
|
82460
|
+
const { model, id: id2 } = index1NFAbkxM.useDoc();
|
|
82461
|
+
const allFormValues = index1NFAbkxM.useForm("InputUID", (form) => form.values);
|
|
82464
82462
|
const [availability, setAvailability] = React__namespace.useState();
|
|
82465
82463
|
const [showRegenerate, setShowRegenerate] = React__namespace.useState(false);
|
|
82466
|
-
const field =
|
|
82464
|
+
const field = index1NFAbkxM.useField(name2);
|
|
82467
82465
|
const debouncedValue = useDebounce(field.value, 300);
|
|
82468
|
-
const { toggleNotification } =
|
|
82469
|
-
const { _unstableFormatAPIError: formatAPIError } =
|
|
82466
|
+
const { toggleNotification } = index1NFAbkxM.useNotification();
|
|
82467
|
+
const { _unstableFormatAPIError: formatAPIError } = index1NFAbkxM.useAPIErrorHandler();
|
|
82470
82468
|
const { formatMessage } = reactIntl.useIntl();
|
|
82471
|
-
const [{ query }] =
|
|
82472
|
-
const params = React__namespace.useMemo(() =>
|
|
82469
|
+
const [{ query }] = index1NFAbkxM.useQueryParams();
|
|
82470
|
+
const params = React__namespace.useMemo(() => index1NFAbkxM.buildValidParams(query), [query]);
|
|
82473
82471
|
const {
|
|
82474
82472
|
data: defaultGeneratedUID,
|
|
82475
82473
|
isLoading: isGeneratingDefaultUID,
|
|
@@ -82568,7 +82566,7 @@ const UIDInput = React__namespace.forwardRef(
|
|
|
82568
82566
|
};
|
|
82569
82567
|
}, [availabilityData]);
|
|
82570
82568
|
const isLoading = isGeneratingDefaultUID || isGeneratingUID || isCheckingAvailability;
|
|
82571
|
-
const fieldRef =
|
|
82569
|
+
const fieldRef = index1NFAbkxM.useFocusInputField(name2);
|
|
82572
82570
|
const composedRefs = designSystem.useComposedRefs(ref, fieldRef);
|
|
82573
82571
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
82574
82572
|
designSystem.TextInput,
|
|
@@ -83981,7 +83979,7 @@ const StyledFlex = styled__default.default(designSystem.Flex)`
|
|
|
83981
83979
|
`;
|
|
83982
83980
|
const Wysiwyg = React__namespace.forwardRef(
|
|
83983
83981
|
({ hint, disabled, label: label2, name: name2, placeholder, required }, forwardedRef) => {
|
|
83984
|
-
const field =
|
|
83982
|
+
const field = index1NFAbkxM.useField(name2);
|
|
83985
83983
|
const textareaRef = React__namespace.useRef(null);
|
|
83986
83984
|
const editorRef = React__namespace.useRef(
|
|
83987
83985
|
null
|
|
@@ -83989,7 +83987,7 @@ const Wysiwyg = React__namespace.forwardRef(
|
|
|
83989
83987
|
const [isPreviewMode, setIsPreviewMode] = React__namespace.useState(false);
|
|
83990
83988
|
const [mediaLibVisible, setMediaLibVisible] = React__namespace.useState(false);
|
|
83991
83989
|
const [isExpandMode, setIsExpandMode] = React__namespace.useState(false);
|
|
83992
|
-
const components =
|
|
83990
|
+
const components = index1NFAbkxM.useStrapiApp("ImageDialog", (state) => state.components);
|
|
83993
83991
|
const MediaLibraryDialog = components["media-library"];
|
|
83994
83992
|
const handleToggleMediaLib = () => setMediaLibVisible((prev) => !prev);
|
|
83995
83993
|
const handleTogglePreviewMode = () => setIsPreviewMode((prev) => !prev);
|
|
@@ -84037,7 +84035,7 @@ const Wysiwyg = React__namespace.forwardRef(
|
|
|
84037
84035
|
const handleSelectAssets = (files) => {
|
|
84038
84036
|
const formattedFiles = files.map((f) => ({
|
|
84039
84037
|
alt: f.alternativeText || f.name,
|
|
84040
|
-
url:
|
|
84038
|
+
url: index1NFAbkxM.prefixFileUrlWithBackendUrl(f.url),
|
|
84041
84039
|
mime: f.mime
|
|
84042
84040
|
}));
|
|
84043
84041
|
insertFile(editorRef, formattedFiles);
|
|
@@ -84095,18 +84093,18 @@ const Wysiwyg = React__namespace.forwardRef(
|
|
|
84095
84093
|
}
|
|
84096
84094
|
);
|
|
84097
84095
|
const InputRenderer = ({ visible, hint: providedHint, ...props }) => {
|
|
84098
|
-
const { id: id2 } =
|
|
84099
|
-
const isFormDisabled =
|
|
84096
|
+
const { id: id2 } = index1NFAbkxM.useDoc();
|
|
84097
|
+
const isFormDisabled = index1NFAbkxM.useForm("InputRenderer", (state) => state.disabled);
|
|
84100
84098
|
const isInDynamicZone = useDynamicZone("isInDynamicZone", (state) => state.isInDynamicZone);
|
|
84101
|
-
const canCreateFields =
|
|
84102
|
-
const canReadFields =
|
|
84103
|
-
const canUpdateFields =
|
|
84104
|
-
const canUserAction =
|
|
84099
|
+
const canCreateFields = index1NFAbkxM.useDocumentRBAC("InputRenderer", (rbac) => rbac.canCreateFields);
|
|
84100
|
+
const canReadFields = index1NFAbkxM.useDocumentRBAC("InputRenderer", (rbac) => rbac.canReadFields);
|
|
84101
|
+
const canUpdateFields = index1NFAbkxM.useDocumentRBAC("InputRenderer", (rbac) => rbac.canUpdateFields);
|
|
84102
|
+
const canUserAction = index1NFAbkxM.useDocumentRBAC("InputRenderer", (rbac) => rbac.canUserAction);
|
|
84105
84103
|
const editableFields = id2 ? canUpdateFields : canCreateFields;
|
|
84106
84104
|
const readableFields = id2 ? canReadFields : canCreateFields;
|
|
84107
84105
|
const canUserReadField = canUserAction(props.name, readableFields, props.type);
|
|
84108
84106
|
const canUserEditField = canUserAction(props.name, editableFields, props.type);
|
|
84109
|
-
const fields =
|
|
84107
|
+
const fields = index1NFAbkxM.useStrapiApp("InputRenderer", (app) => app.fields);
|
|
84110
84108
|
const { lazyComponentStore } = useLazyComponents(
|
|
84111
84109
|
attributeHasCustomFieldProperty(props.attribute) ? [props.attribute.customField] : void 0
|
|
84112
84110
|
);
|
|
@@ -84124,7 +84122,7 @@ const InputRenderer = ({ visible, hint: providedHint, ...props }) => {
|
|
|
84124
84122
|
return /* @__PURE__ */ jsxRuntime.jsx(CustomInput, { ...props, hint, disabled: fieldIsDisabled });
|
|
84125
84123
|
} else {
|
|
84126
84124
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
84127
|
-
|
|
84125
|
+
index1NFAbkxM.InputRenderer,
|
|
84128
84126
|
{
|
|
84129
84127
|
...props,
|
|
84130
84128
|
hint,
|
|
@@ -84147,14 +84145,14 @@ const InputRenderer = ({ visible, hint: providedHint, ...props }) => {
|
|
|
84147
84145
|
case "dynamiczone":
|
|
84148
84146
|
return /* @__PURE__ */ jsxRuntime.jsx(DynamicZone, { ...props, hint, disabled: fieldIsDisabled });
|
|
84149
84147
|
case "relation":
|
|
84150
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
84148
|
+
return /* @__PURE__ */ jsxRuntime.jsx(index1NFAbkxM.RelationsField, { ...props, hint, disabled: fieldIsDisabled });
|
|
84151
84149
|
case "richtext":
|
|
84152
84150
|
return /* @__PURE__ */ jsxRuntime.jsx(Wysiwyg, { ...props, hint, type: props.type, disabled: fieldIsDisabled });
|
|
84153
84151
|
case "uid":
|
|
84154
84152
|
return /* @__PURE__ */ jsxRuntime.jsx(UIDInput, { ...props, hint, type: props.type, disabled: fieldIsDisabled });
|
|
84155
84153
|
case "enumeration":
|
|
84156
84154
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
84157
|
-
|
|
84155
|
+
index1NFAbkxM.InputRenderer,
|
|
84158
84156
|
{
|
|
84159
84157
|
...props,
|
|
84160
84158
|
hint,
|
|
@@ -84166,7 +84164,7 @@ const InputRenderer = ({ visible, hint: providedHint, ...props }) => {
|
|
|
84166
84164
|
default:
|
|
84167
84165
|
const { unique: _unique, mainField: _mainField, ...restProps } = props;
|
|
84168
84166
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
84169
|
-
|
|
84167
|
+
index1NFAbkxM.InputRenderer,
|
|
84170
84168
|
{
|
|
84171
84169
|
...restProps,
|
|
84172
84170
|
hint,
|
|
@@ -84258,9 +84256,9 @@ const EditViewPage = () => {
|
|
|
84258
84256
|
query: { status }
|
|
84259
84257
|
},
|
|
84260
84258
|
setQuery
|
|
84261
|
-
] =
|
|
84259
|
+
] = index1NFAbkxM.useQueryParams();
|
|
84262
84260
|
const { formatMessage } = reactIntl.useIntl();
|
|
84263
|
-
const { toggleNotification } =
|
|
84261
|
+
const { toggleNotification } = index1NFAbkxM.useNotification();
|
|
84264
84262
|
const tabApi = React__namespace.useRef(null);
|
|
84265
84263
|
const {
|
|
84266
84264
|
document: document2,
|
|
@@ -84271,7 +84269,7 @@ const EditViewPage = () => {
|
|
|
84271
84269
|
collectionType,
|
|
84272
84270
|
id: id2,
|
|
84273
84271
|
model
|
|
84274
|
-
} =
|
|
84272
|
+
} = index1NFAbkxM.useDoc();
|
|
84275
84273
|
const hasDraftAndPublished = schema?.options?.draftAndPublish ?? false;
|
|
84276
84274
|
React__namespace.useEffect(() => {
|
|
84277
84275
|
if (tabApi.current && hasDraftAndPublished) {
|
|
@@ -84287,8 +84285,8 @@ const EditViewPage = () => {
|
|
|
84287
84285
|
});
|
|
84288
84286
|
}
|
|
84289
84287
|
});
|
|
84290
|
-
const isLoadingActionsRBAC =
|
|
84291
|
-
const isSingleType = collectionType ===
|
|
84288
|
+
const isLoadingActionsRBAC = index1NFAbkxM.useDocumentRBAC("EditViewPage", (state) => state.isLoading);
|
|
84289
|
+
const isSingleType = collectionType === index1NFAbkxM.SINGLE_TYPES;
|
|
84292
84290
|
const isCreatingDocument = !id2 && !isSingleType;
|
|
84293
84291
|
const {
|
|
84294
84292
|
isLoading: isLoadingLayout,
|
|
@@ -84296,7 +84294,7 @@ const EditViewPage = () => {
|
|
|
84296
84294
|
layout,
|
|
84297
84295
|
settings: { mainField }
|
|
84298
84296
|
}
|
|
84299
|
-
} =
|
|
84297
|
+
} = index1NFAbkxM.useDocumentLayout(model);
|
|
84300
84298
|
const { isLazyLoading } = useLazyComponents([]);
|
|
84301
84299
|
const isLoading = isLoadingActionsRBAC || isLoadingDocument || isLoadingLayout || isLazyLoading;
|
|
84302
84300
|
const initialValues = React__namespace.useMemo(() => {
|
|
@@ -84307,10 +84305,10 @@ const EditViewPage = () => {
|
|
|
84307
84305
|
return transformDocument(schema, components)(form);
|
|
84308
84306
|
}, [document2, isCreatingDocument, isSingleType, schema, components]);
|
|
84309
84307
|
if (isLoading && !document2?.documentId) {
|
|
84310
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
84308
|
+
return /* @__PURE__ */ jsxRuntime.jsx(index1NFAbkxM.Page.Loading, {});
|
|
84311
84309
|
}
|
|
84312
84310
|
if (!initialValues) {
|
|
84313
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
84311
|
+
return /* @__PURE__ */ jsxRuntime.jsx(index1NFAbkxM.Page.Error, {});
|
|
84314
84312
|
}
|
|
84315
84313
|
const handleTabChange = (index, { resetForm }) => {
|
|
84316
84314
|
if (index === 0) {
|
|
@@ -84324,15 +84322,15 @@ const EditViewPage = () => {
|
|
|
84324
84322
|
return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Main, { paddingLeft: 10, paddingRight: 10, children: [
|
|
84325
84323
|
/* @__PURE__ */ jsxRuntime.jsx(Helmet.HelmetExport, { title: `${documentTitle} | Strapi` }),
|
|
84326
84324
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
84327
|
-
|
|
84325
|
+
index1NFAbkxM.Form,
|
|
84328
84326
|
{
|
|
84329
84327
|
disabled: hasDraftAndPublished && status === "published",
|
|
84330
84328
|
initialValues,
|
|
84331
84329
|
method: isCreatingDocument ? "POST" : "PUT",
|
|
84332
|
-
validationSchema:
|
|
84330
|
+
validationSchema: index1NFAbkxM.createYupSchema(schema?.attributes, components),
|
|
84333
84331
|
children: ({ resetForm }) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
84334
84332
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
84335
|
-
|
|
84333
|
+
index1NFAbkxM.Header,
|
|
84336
84334
|
{
|
|
84337
84335
|
isCreating: isCreatingDocument,
|
|
84338
84336
|
status: hasDraftAndPublished ? getDocumentStatus(document2, meta) : void 0,
|
|
@@ -84345,7 +84343,7 @@ const EditViewPage = () => {
|
|
|
84345
84343
|
ref: tabApi,
|
|
84346
84344
|
variant: "simple",
|
|
84347
84345
|
label: formatMessage({
|
|
84348
|
-
id:
|
|
84346
|
+
id: index1NFAbkxM.getTranslation("containers.edit.tabs.label"),
|
|
84349
84347
|
defaultMessage: "Document status"
|
|
84350
84348
|
}),
|
|
84351
84349
|
initialSelectedTabIndex: hasDraftAndPublished && status === "published" ? 1 : 0,
|
|
@@ -84355,11 +84353,11 @@ const EditViewPage = () => {
|
|
|
84355
84353
|
children: [
|
|
84356
84354
|
hasDraftAndPublished ? /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Tabs, { children: [
|
|
84357
84355
|
/* @__PURE__ */ jsxRuntime.jsx(StatusTab, { children: formatMessage({
|
|
84358
|
-
id:
|
|
84356
|
+
id: index1NFAbkxM.getTranslation("containers.edit.tabs.draft"),
|
|
84359
84357
|
defaultMessage: "draft"
|
|
84360
84358
|
}) }),
|
|
84361
84359
|
/* @__PURE__ */ jsxRuntime.jsx(StatusTab, { disabled: !meta || meta.availableStatus.length === 0, children: formatMessage({
|
|
84362
|
-
id:
|
|
84360
|
+
id: index1NFAbkxM.getTranslation("containers.edit.tabs.published"),
|
|
84363
84361
|
defaultMessage: "published"
|
|
84364
84362
|
}) })
|
|
84365
84363
|
] }) : null,
|
|
@@ -84368,12 +84366,12 @@ const EditViewPage = () => {
|
|
|
84368
84366
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.TabPanel, { children: /* @__PURE__ */ jsxRuntime.jsx(FormLayout, { layout }) }),
|
|
84369
84367
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.TabPanel, { children: /* @__PURE__ */ jsxRuntime.jsx(FormLayout, { layout }) })
|
|
84370
84368
|
] }) }),
|
|
84371
|
-
/* @__PURE__ */ jsxRuntime.jsx(designSystem.GridItem, { col: 3, s: 12, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
84369
|
+
/* @__PURE__ */ jsxRuntime.jsx(designSystem.GridItem, { col: 3, s: 12, children: /* @__PURE__ */ jsxRuntime.jsx(index1NFAbkxM.Panels, {}) })
|
|
84372
84370
|
] })
|
|
84373
84371
|
]
|
|
84374
84372
|
}
|
|
84375
84373
|
),
|
|
84376
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
84374
|
+
/* @__PURE__ */ jsxRuntime.jsx(index1NFAbkxM.Blocker, {})
|
|
84377
84375
|
] })
|
|
84378
84376
|
}
|
|
84379
84377
|
)
|
|
@@ -84395,16 +84393,16 @@ const getDocumentStatus = (document2, meta) => {
|
|
|
84395
84393
|
};
|
|
84396
84394
|
const ProtectedEditViewPage = () => {
|
|
84397
84395
|
const { slug } = reactRouterDom.useParams();
|
|
84398
|
-
const [{ query }] =
|
|
84399
|
-
const { permissions = [], isLoading, isError } =
|
|
84396
|
+
const [{ query }] = index1NFAbkxM.useQueryParams();
|
|
84397
|
+
const { permissions = [], isLoading, isError } = useSyncRbacLNOzRXJ5.useSyncRbac(slug ?? "", query, "editView");
|
|
84400
84398
|
if (isLoading) {
|
|
84401
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
84399
|
+
return /* @__PURE__ */ jsxRuntime.jsx(index1NFAbkxM.Page.Loading, {});
|
|
84402
84400
|
}
|
|
84403
84401
|
if (!isLoading && isError || !slug) {
|
|
84404
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
84402
|
+
return /* @__PURE__ */ jsxRuntime.jsx(index1NFAbkxM.Page.Error, {});
|
|
84405
84403
|
}
|
|
84406
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
84404
|
+
return /* @__PURE__ */ jsxRuntime.jsx(index1NFAbkxM.Page.Protect, { permissions, children: ({ permissions: permissions2 }) => /* @__PURE__ */ jsxRuntime.jsx(index1NFAbkxM.DocumentRBAC, { permissions: permissions2, children: /* @__PURE__ */ jsxRuntime.jsx(EditViewPage, {}) }) });
|
|
84407
84405
|
};
|
|
84408
84406
|
exports.EditViewPage = EditViewPage;
|
|
84409
84407
|
exports.ProtectedEditViewPage = ProtectedEditViewPage;
|
|
84410
|
-
//# sourceMappingURL=EditViewPage-
|
|
84408
|
+
//# sourceMappingURL=EditViewPage-BJdNfzBZ-eKwHxgPQ.js.map
|