@strapi/content-manager 5.5.2 → 5.7.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/{ComponentConfigurationPage-CzVt9QCC.mjs → ComponentConfigurationPage-5lpPBn6n.mjs} +3 -3
- package/dist/_chunks/{ComponentConfigurationPage-CzVt9QCC.mjs.map → ComponentConfigurationPage-5lpPBn6n.mjs.map} +1 -1
- package/dist/_chunks/{ComponentConfigurationPage-DYq8aqos.js → ComponentConfigurationPage-Cqx0YI3k.js} +3 -3
- package/dist/_chunks/{ComponentConfigurationPage-DYq8aqos.js.map → ComponentConfigurationPage-Cqx0YI3k.js.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-C9IATpr0.js → EditConfigurationPage-B77EOaXZ.js} +3 -3
- package/dist/_chunks/{EditConfigurationPage-C9IATpr0.js.map → EditConfigurationPage-B77EOaXZ.js.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-CLDwrUv5.mjs → EditConfigurationPage-CmadFlTu.mjs} +3 -3
- package/dist/_chunks/{EditConfigurationPage-CLDwrUv5.mjs.map → EditConfigurationPage-CmadFlTu.mjs.map} +1 -1
- package/dist/_chunks/{EditViewPage-DtKM7Jgw.mjs → EditViewPage-BZ7rKgPR.mjs} +3 -3
- package/dist/_chunks/{EditViewPage-DtKM7Jgw.mjs.map → EditViewPage-BZ7rKgPR.mjs.map} +1 -1
- package/dist/_chunks/{EditViewPage-Ch-uBvbv.js → EditViewPage-C3MotJ5Y.js} +3 -3
- package/dist/_chunks/{EditViewPage-Ch-uBvbv.js.map → EditViewPage-C3MotJ5Y.js.map} +1 -1
- package/dist/_chunks/{Field-Bn1jgMeF.mjs → Field-BJaY6geG.mjs} +107 -55
- package/dist/_chunks/Field-BJaY6geG.mjs.map +1 -0
- package/dist/_chunks/{Field-B9ADaInZ.js → Field-vX6JQNBo.js} +108 -55
- package/dist/_chunks/Field-vX6JQNBo.js.map +1 -0
- package/dist/_chunks/{Form-BB5i9Pxl.mjs → Form-C_jE1jPl.mjs} +2 -2
- package/dist/_chunks/{Form-BB5i9Pxl.mjs.map → Form-C_jE1jPl.mjs.map} +1 -1
- package/dist/_chunks/{Form-C3kjKrPw.js → Form-DPpf_c44.js} +2 -2
- package/dist/_chunks/{Form-C3kjKrPw.js.map → Form-DPpf_c44.js.map} +1 -1
- package/dist/_chunks/{History-Cw2Q7OQL.mjs → History-BP-pdhNW.mjs} +4 -4
- package/dist/_chunks/{History-Cw2Q7OQL.mjs.map → History-BP-pdhNW.mjs.map} +1 -1
- package/dist/_chunks/{History-AwrK0-SA.js → History-DeE6TOuC.js} +4 -4
- package/dist/_chunks/{History-AwrK0-SA.js.map → History-DeE6TOuC.js.map} +1 -1
- package/dist/_chunks/{ListConfigurationPage-B47JIu1e.mjs → ListConfigurationPage-2szESU8j.mjs} +2 -2
- package/dist/_chunks/{ListConfigurationPage-B47JIu1e.mjs.map → ListConfigurationPage-2szESU8j.mjs.map} +1 -1
- package/dist/_chunks/{ListConfigurationPage-CNTJ0DBm.js → ListConfigurationPage-BXxZjcqK.js} +2 -2
- package/dist/_chunks/{ListConfigurationPage-CNTJ0DBm.js.map → ListConfigurationPage-BXxZjcqK.js.map} +1 -1
- package/dist/_chunks/{ListViewPage-Be_UEBar.js → ListViewPage-DvLCUKIZ.js} +3 -3
- package/dist/_chunks/{ListViewPage-Be_UEBar.js.map → ListViewPage-DvLCUKIZ.js.map} +1 -1
- package/dist/_chunks/{ListViewPage-DuvjX6ra.mjs → ListViewPage-LsX6rtaE.mjs} +3 -3
- package/dist/_chunks/{ListViewPage-DuvjX6ra.mjs.map → ListViewPage-LsX6rtaE.mjs.map} +1 -1
- package/dist/_chunks/{NoContentTypePage-B1J0KUCO.js → NoContentTypePage-DVpSHdbK.js} +2 -2
- package/dist/_chunks/{NoContentTypePage-B1J0KUCO.js.map → NoContentTypePage-DVpSHdbK.js.map} +1 -1
- package/dist/_chunks/{NoContentTypePage-C6M-Q0Tv.mjs → NoContentTypePage-DjczGlTV.mjs} +2 -2
- package/dist/_chunks/{NoContentTypePage-C6M-Q0Tv.mjs.map → NoContentTypePage-DjczGlTV.mjs.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-CAi3zCAD.mjs → NoPermissionsPage-Bd8sfYwk.mjs} +2 -2
- package/dist/_chunks/{NoPermissionsPage-CAi3zCAD.mjs.map → NoPermissionsPage-Bd8sfYwk.mjs.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-CN34TlEE.js → NoPermissionsPage-kuqMlHjA.js} +2 -2
- package/dist/_chunks/{NoPermissionsPage-CN34TlEE.js.map → NoPermissionsPage-kuqMlHjA.js.map} +1 -1
- package/dist/_chunks/{Preview-BrBRcL10.mjs → Preview-B5EhOG_S.mjs} +5 -4
- package/dist/_chunks/Preview-B5EhOG_S.mjs.map +1 -0
- package/dist/_chunks/{Preview-DOqm5jcJ.js → Preview-y1GVg5Fa.js} +5 -4
- package/dist/_chunks/Preview-y1GVg5Fa.js.map +1 -0
- package/dist/_chunks/{Relations-_K-HYOiM.mjs → Relations-DFAdJdNd.mjs} +3 -3
- package/dist/_chunks/{Relations-_K-HYOiM.mjs.map → Relations-DFAdJdNd.mjs.map} +1 -1
- package/dist/_chunks/{Relations-xtKZHtTN.js → Relations-DhF1xMOX.js} +3 -3
- package/dist/_chunks/{Relations-xtKZHtTN.js.map → Relations-DhF1xMOX.js.map} +1 -1
- package/dist/_chunks/{en-BK8Xyl5I.js → en-BzQmavmK.js} +7 -2
- package/dist/_chunks/{en-BK8Xyl5I.js.map → en-BzQmavmK.js.map} +1 -1
- package/dist/_chunks/{en-Dtk_ot79.mjs → en-CSxLmrh1.mjs} +7 -2
- package/dist/_chunks/{en-Dtk_ot79.mjs.map → en-CSxLmrh1.mjs.map} +1 -1
- package/dist/_chunks/{index-tETMKK2G.mjs → index-DLg9rmnQ.mjs} +38 -27
- package/dist/_chunks/index-DLg9rmnQ.mjs.map +1 -0
- package/dist/_chunks/{index-BlX-OdHL.js → index-DxfsPVeu.js} +38 -27
- package/dist/_chunks/index-DxfsPVeu.js.map +1 -0
- package/dist/_chunks/{layout-D8Sz3KxF.js → layout-DBUQ2Qyu.js} +3 -3
- package/dist/_chunks/{layout-D8Sz3KxF.js.map → layout-DBUQ2Qyu.js.map} +1 -1
- package/dist/_chunks/{layout-BaQBaz56.mjs → layout-DFaQLD_J.mjs} +3 -3
- package/dist/_chunks/{layout-BaQBaz56.mjs.map → layout-DFaQLD_J.mjs.map} +1 -1
- package/dist/_chunks/{relations-CAbbX8Sa.js → relations-DjaW8yCa.js} +2 -2
- package/dist/_chunks/{relations-CAbbX8Sa.js.map → relations-DjaW8yCa.js.map} +1 -1
- package/dist/_chunks/{relations-CsfmCqOU.mjs → relations-DtF9-7LN.mjs} +2 -2
- package/dist/_chunks/{relations-CsfmCqOU.mjs.map → relations-DtF9-7LN.mjs.map} +1 -1
- package/dist/admin/index.js +2 -1
- package/dist/admin/index.js.map +1 -1
- package/dist/admin/index.mjs +2 -1
- package/dist/admin/src/exports.d.ts +1 -0
- package/dist/admin/src/history/services/historyVersion.d.ts +1 -1
- package/dist/admin/src/pages/EditView/components/DocumentStatus.d.ts +1 -1
- package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/Blocks/Code.d.ts +7 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/Blocks/utils/prismLanguages.d.ts +49 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/utils/constants.d.ts +1 -0
- package/dist/admin/src/preview/services/preview.d.ts +1 -1
- package/dist/admin/src/services/api.d.ts +1 -1
- package/dist/admin/src/services/components.d.ts +2 -2
- package/dist/admin/src/services/contentTypes.d.ts +3 -3
- package/dist/admin/src/services/documents.d.ts +16 -16
- package/dist/admin/src/services/init.d.ts +1 -1
- package/dist/admin/src/services/relations.d.ts +2 -2
- package/dist/admin/src/services/uid.d.ts +3 -3
- package/dist/server/index.js +74 -66
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +75 -67
- package/dist/server/index.mjs.map +1 -1
- package/dist/server/src/controllers/utils/metadata.d.ts +1 -0
- package/dist/server/src/controllers/utils/metadata.d.ts.map +1 -1
- package/dist/server/src/index.d.ts +3 -2
- package/dist/server/src/index.d.ts.map +1 -1
- package/dist/server/src/preview/index.d.ts.map +1 -1
- package/dist/server/src/services/document-metadata.d.ts +4 -2
- package/dist/server/src/services/document-metadata.d.ts.map +1 -1
- package/dist/server/src/services/index.d.ts +3 -2
- package/dist/server/src/services/index.d.ts.map +1 -1
- package/dist/server/src/services/utils/configuration/index.d.ts +2 -2
- package/dist/server/src/services/utils/configuration/layouts.d.ts +2 -2
- package/dist/server/src/services/utils/populate.d.ts +2 -2
- package/dist/server/src/services/utils/populate.d.ts.map +1 -1
- package/package.json +9 -6
- package/dist/_chunks/Field-B9ADaInZ.js.map +0 -1
- package/dist/_chunks/Field-Bn1jgMeF.mjs.map +0 -1
- package/dist/_chunks/Preview-BrBRcL10.mjs.map +0 -1
- package/dist/_chunks/Preview-DOqm5jcJ.js.map +0 -1
- package/dist/_chunks/index-BlX-OdHL.js.map +0 -1
- package/dist/_chunks/index-tETMKK2G.mjs.map +0 -1
- package/dist/admin/src/preview/constants.d.ts +0 -1
- package/dist/server/src/preview/constants.d.ts +0 -2
- package/dist/server/src/preview/constants.d.ts.map +0 -1
@@ -5,9 +5,9 @@ const strapiAdmin = require("@strapi/admin/strapi-admin");
|
|
5
5
|
const designSystem = require("@strapi/design-system");
|
6
6
|
const pipe$1 = require("lodash/fp/pipe");
|
7
7
|
const reactIntl = require("react-intl");
|
8
|
-
const index = require("./index-
|
8
|
+
const index = require("./index-DxfsPVeu.js");
|
9
9
|
const fractionalIndexing = require("fractional-indexing");
|
10
|
-
const Relations = require("./Relations-
|
10
|
+
const Relations = require("./Relations-DhF1xMOX.js");
|
11
11
|
const Icons = require("@strapi/icons");
|
12
12
|
const styledComponents = require("styled-components");
|
13
13
|
const ComponentIcon = require("./ComponentIcon-CRbtQEUV.js");
|
@@ -17,6 +17,57 @@ const objects = require("./objects-BcXOv6_9.js");
|
|
17
17
|
const slate = require("slate");
|
18
18
|
const slateHistory = require("slate-history");
|
19
19
|
const slateReact = require("slate-react");
|
20
|
+
const Prism = require("prismjs");
|
21
|
+
require("prismjs/themes/prism-solarizedlight.css");
|
22
|
+
require("prismjs/components/prism-asmatmel");
|
23
|
+
require("prismjs/components/prism-bash");
|
24
|
+
require("prismjs/components/prism-basic");
|
25
|
+
require("prismjs/components/prism-c");
|
26
|
+
require("prismjs/components/prism-clojure");
|
27
|
+
require("prismjs/components/prism-cobol");
|
28
|
+
require("prismjs/components/prism-cpp");
|
29
|
+
require("prismjs/components/prism-csharp");
|
30
|
+
require("prismjs/components/prism-dart");
|
31
|
+
require("prismjs/components/prism-docker");
|
32
|
+
require("prismjs/components/prism-elixir");
|
33
|
+
require("prismjs/components/prism-erlang");
|
34
|
+
require("prismjs/components/prism-fortran");
|
35
|
+
require("prismjs/components/prism-fsharp");
|
36
|
+
require("prismjs/components/prism-go");
|
37
|
+
require("prismjs/components/prism-graphql");
|
38
|
+
require("prismjs/components/prism-groovy");
|
39
|
+
require("prismjs/components/prism-haskell");
|
40
|
+
require("prismjs/components/prism-haxe");
|
41
|
+
require("prismjs/components/prism-ini");
|
42
|
+
require("prismjs/components/prism-java");
|
43
|
+
require("prismjs/components/prism-javascript");
|
44
|
+
require("prismjs/components/prism-jsx");
|
45
|
+
require("prismjs/components/prism-json");
|
46
|
+
require("prismjs/components/prism-julia");
|
47
|
+
require("prismjs/components/prism-kotlin");
|
48
|
+
require("prismjs/components/prism-latex");
|
49
|
+
require("prismjs/components/prism-lua");
|
50
|
+
require("prismjs/components/prism-markdown");
|
51
|
+
require("prismjs/components/prism-matlab");
|
52
|
+
require("prismjs/components/prism-makefile");
|
53
|
+
require("prismjs/components/prism-objectivec");
|
54
|
+
require("prismjs/components/prism-perl");
|
55
|
+
require("prismjs/components/prism-php");
|
56
|
+
require("prismjs/components/prism-powershell");
|
57
|
+
require("prismjs/components/prism-python");
|
58
|
+
require("prismjs/components/prism-r");
|
59
|
+
require("prismjs/components/prism-ruby");
|
60
|
+
require("prismjs/components/prism-rust");
|
61
|
+
require("prismjs/components/prism-sas");
|
62
|
+
require("prismjs/components/prism-scala");
|
63
|
+
require("prismjs/components/prism-scheme");
|
64
|
+
require("prismjs/components/prism-sql");
|
65
|
+
require("prismjs/components/prism-stata");
|
66
|
+
require("prismjs/components/prism-swift");
|
67
|
+
require("prismjs/components/prism-typescript");
|
68
|
+
require("prismjs/components/prism-tsx");
|
69
|
+
require("prismjs/components/prism-vbnet");
|
70
|
+
require("prismjs/components/prism-yaml");
|
20
71
|
const useDebounce = require("./useDebounce-CtcjDB3L.js");
|
21
72
|
const Toolbar = require("@radix-ui/react-toolbar");
|
22
73
|
const reactRouterDom = require("react-router-dom");
|
@@ -55,6 +106,7 @@ function _interopNamespace(e) {
|
|
55
106
|
}
|
56
107
|
const React__namespace = /* @__PURE__ */ _interopNamespace(React);
|
57
108
|
const pipe__default = /* @__PURE__ */ _interopDefault(pipe$1);
|
109
|
+
const Prism__namespace = /* @__PURE__ */ _interopNamespace(Prism);
|
58
110
|
const Toolbar__namespace = /* @__PURE__ */ _interopNamespace(Toolbar);
|
59
111
|
const CodeMirror__default = /* @__PURE__ */ _interopDefault(CodeMirror);
|
60
112
|
const sanitizeHtml__default = /* @__PURE__ */ _interopDefault(sanitizeHtml);
|
@@ -196,7 +248,8 @@ const useLazyComponents = (componentUids = []) => {
|
|
196
248
|
const codeLanguages = [
|
197
249
|
{
|
198
250
|
value: "asm",
|
199
|
-
label: "Assembly"
|
251
|
+
label: "Assembly",
|
252
|
+
decorate: "asmatmel"
|
200
253
|
},
|
201
254
|
{
|
202
255
|
value: "bash",
|
@@ -232,7 +285,8 @@ const codeLanguages = [
|
|
232
285
|
},
|
233
286
|
{
|
234
287
|
value: "dockerfile",
|
235
|
-
label: "Dockerfile"
|
288
|
+
label: "Dockerfile",
|
289
|
+
decorate: "docker"
|
236
290
|
},
|
237
291
|
{
|
238
292
|
value: "elixir",
|
@@ -388,7 +442,8 @@ const codeLanguages = [
|
|
388
442
|
},
|
389
443
|
{
|
390
444
|
value: "typescript",
|
391
|
-
label: "TypeScript"
|
445
|
+
label: "TypeScript",
|
446
|
+
decorate: "ts"
|
392
447
|
},
|
393
448
|
{
|
394
449
|
value: "tsx",
|
@@ -404,7 +459,8 @@ const codeLanguages = [
|
|
404
459
|
},
|
405
460
|
{
|
406
461
|
value: "yaml",
|
407
|
-
label: "YAML"
|
462
|
+
label: "YAML",
|
463
|
+
decorate: "yml"
|
408
464
|
}
|
409
465
|
];
|
410
466
|
const baseHandleConvert = (editor, attributesToSet) => {
|
@@ -470,6 +526,29 @@ const pressEnterTwiceToExit = (editor) => {
|
|
470
526
|
});
|
471
527
|
}
|
472
528
|
};
|
529
|
+
const decorateCode = ([node, path]) => {
|
530
|
+
const ranges = [];
|
531
|
+
if (!slate.Element.isElement(node) || node.type !== "code") return ranges;
|
532
|
+
const text = slate.Node.string(node);
|
533
|
+
const language = codeLanguages.find((lang) => lang.value === node.language);
|
534
|
+
const decorateKey = language?.decorate ?? language?.value;
|
535
|
+
const selectedLanguage = Prism__namespace.languages[decorateKey || "plaintext"];
|
536
|
+
const tokens = Prism__namespace.tokenize(text, selectedLanguage);
|
537
|
+
let start = 0;
|
538
|
+
for (const token of tokens) {
|
539
|
+
const length = token.length;
|
540
|
+
const end = start + length;
|
541
|
+
if (typeof token !== "string") {
|
542
|
+
ranges.push({
|
543
|
+
anchor: { path, offset: start },
|
544
|
+
focus: { path, offset: end },
|
545
|
+
className: `token ${token.type}`
|
546
|
+
});
|
547
|
+
}
|
548
|
+
start = end;
|
549
|
+
}
|
550
|
+
return ranges;
|
551
|
+
};
|
473
552
|
const CodeBlock = styledComponents.styled.pre`
|
474
553
|
border-radius: ${({ theme }) => theme.borderRadius};
|
475
554
|
background-color: ${({ theme }) => theme.colors.neutral100};
|
@@ -554,8 +633,7 @@ const codeBlocks = {
|
|
554
633
|
handleEnterKey(editor) {
|
555
634
|
pressEnterTwiceToExit(editor);
|
556
635
|
},
|
557
|
-
snippets: ["```"]
|
558
|
-
dragHandleTopMargin: "10px"
|
636
|
+
snippets: ["```"]
|
559
637
|
}
|
560
638
|
};
|
561
639
|
const H1 = styledComponents.styled(designSystem.Typography).attrs({ tag: "h1" })`
|
@@ -1334,13 +1412,13 @@ const quoteBlocks = {
|
|
1334
1412
|
handleEnterKey(editor) {
|
1335
1413
|
pressEnterTwiceToExit(editor);
|
1336
1414
|
},
|
1337
|
-
snippets: [">"]
|
1338
|
-
dragHandleTopMargin: "6px"
|
1415
|
+
snippets: [">"]
|
1339
1416
|
}
|
1340
1417
|
};
|
1341
1418
|
const ToolbarWrapper = styledComponents.styled(designSystem.Flex)`
|
1342
1419
|
&[aria-disabled='true'] {
|
1343
1420
|
cursor: not-allowed;
|
1421
|
+
background: ${({ theme }) => theme.colors.neutral150};
|
1344
1422
|
}
|
1345
1423
|
`;
|
1346
1424
|
const Separator = styledComponents.styled(Toolbar__namespace.Separator)`
|
@@ -1351,7 +1429,7 @@ const Separator = styledComponents.styled(Toolbar__namespace.Separator)`
|
|
1351
1429
|
const FlexButton = styledComponents.styled(designSystem.Flex)`
|
1352
1430
|
// Inherit the not-allowed cursor from ToolbarWrapper when disabled
|
1353
1431
|
&[aria-disabled] {
|
1354
|
-
cursor:
|
1432
|
+
cursor: not-allowed;
|
1355
1433
|
}
|
1356
1434
|
|
1357
1435
|
&[aria-disabled='false'] {
|
@@ -1703,7 +1781,7 @@ const BlocksToolbar = () => {
|
|
1703
1781
|
return false;
|
1704
1782
|
};
|
1705
1783
|
const isButtonDisabled = checkButtonDisabled();
|
1706
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Toolbar__namespace.Root, { "aria-disabled": disabled, asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(ToolbarWrapper, { gap: 2, padding: 2, children: [
|
1784
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Toolbar__namespace.Root, { "aria-disabled": disabled, asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(ToolbarWrapper, { gap: 2, padding: 2, width: "100%", children: [
|
1707
1785
|
/* @__PURE__ */ jsxRuntime.jsx(BlocksDropdown, {}),
|
1708
1786
|
/* @__PURE__ */ jsxRuntime.jsx(Separator, {}),
|
1709
1787
|
/* @__PURE__ */ jsxRuntime.jsx(Toolbar__namespace.ToggleGroup, { type: "multiple", asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { gap: 1, children: [
|
@@ -1777,30 +1855,32 @@ const DragIconButton = styledComponents.styled(designSystem.IconButton)`
|
|
1777
1855
|
display: flex;
|
1778
1856
|
align-items: center;
|
1779
1857
|
justify-content: center;
|
1858
|
+
border: none;
|
1780
1859
|
border-radius: ${({ theme }) => theme.borderRadius};
|
1781
|
-
|
1782
|
-
|
1860
|
+
padding-left: ${({ theme }) => theme.spaces[0]};
|
1861
|
+
padding-right: ${({ theme }) => theme.spaces[0]};
|
1862
|
+
padding-top: ${({ theme }) => theme.spaces[1]};
|
1863
|
+
padding-bottom: ${({ theme }) => theme.spaces[1]};
|
1783
1864
|
visibility: hidden;
|
1784
1865
|
cursor: grab;
|
1785
1866
|
opacity: inherit;
|
1786
1867
|
margin-top: ${(props) => props.$dragHandleTopMargin ?? 0};
|
1787
1868
|
|
1788
1869
|
&:hover {
|
1789
|
-
background: ${({ theme }) => theme.colors.
|
1870
|
+
background: ${({ theme }) => theme.colors.neutral100};
|
1790
1871
|
}
|
1791
1872
|
&:active {
|
1792
1873
|
cursor: grabbing;
|
1874
|
+
background: ${({ theme }) => theme.colors.neutral150};
|
1793
1875
|
}
|
1794
1876
|
&[aria-disabled='true'] {
|
1795
|
-
|
1796
|
-
background: transparent;
|
1877
|
+
visibility: hidden;
|
1797
1878
|
}
|
1798
1879
|
svg {
|
1799
|
-
height: auto;
|
1800
1880
|
min-width: ${({ theme }) => theme.spaces[3]};
|
1801
1881
|
|
1802
1882
|
path {
|
1803
|
-
fill: ${({ theme }) => theme.colors.
|
1883
|
+
fill: ${({ theme }) => theme.colors.neutral500};
|
1804
1884
|
}
|
1805
1885
|
}
|
1806
1886
|
`;
|
@@ -1951,7 +2031,7 @@ const baseRenderLeaf = (props, modifiers2) => {
|
|
1951
2031
|
}
|
1952
2032
|
return currentChildren;
|
1953
2033
|
}, props.children);
|
1954
|
-
return /* @__PURE__ */ jsxRuntime.jsx("span", { ...props.attributes, children: wrappedChildren });
|
2034
|
+
return /* @__PURE__ */ jsxRuntime.jsx("span", { ...props.attributes, className: props.leaf.className, children: wrappedChildren });
|
1955
2035
|
};
|
1956
2036
|
const baseRenderElement = ({
|
1957
2037
|
props,
|
@@ -2153,7 +2233,7 @@ const BlocksContent = ({ placeholder, ariaLabelId }) => {
|
|
2153
2233
|
background: "neutral0",
|
2154
2234
|
color: "neutral800",
|
2155
2235
|
lineHeight: 6,
|
2156
|
-
paddingRight:
|
2236
|
+
paddingRight: 7,
|
2157
2237
|
paddingTop: 6,
|
2158
2238
|
paddingBottom: 3,
|
2159
2239
|
children: [
|
@@ -2164,6 +2244,7 @@ const BlocksContent = ({ placeholder, ariaLabelId }) => {
|
|
2164
2244
|
readOnly: disabled,
|
2165
2245
|
placeholder,
|
2166
2246
|
isExpandedMode,
|
2247
|
+
decorate: decorateCode,
|
2167
2248
|
renderElement,
|
2168
2249
|
renderLeaf,
|
2169
2250
|
onKeyDown: handleKeyDown,
|
@@ -2486,6 +2567,7 @@ const ExpandIconButton = styledComponents.styled(designSystem.IconButton)`
|
|
2486
2567
|
position: absolute;
|
2487
2568
|
bottom: 1.2rem;
|
2488
2569
|
right: 1.2rem;
|
2570
|
+
box-shadow: ${({ theme }) => theme.shadows.filterShadow};
|
2489
2571
|
`;
|
2490
2572
|
function useResetKey(value) {
|
2491
2573
|
const slateUpdatesCount = React__namespace.useRef(0);
|
@@ -3139,11 +3221,11 @@ const AddComponentButton = ({
|
|
3139
3221
|
children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { tag: "span", gap: 2, children: [
|
3140
3222
|
/* @__PURE__ */ jsxRuntime.jsx(StyledAddIcon, { "aria-hidden": true, $isOpen: isOpen, $hasError: hasError && !isOpen }),
|
3141
3223
|
/* @__PURE__ */ jsxRuntime.jsx(
|
3142
|
-
|
3224
|
+
designSystem.Typography,
|
3143
3225
|
{
|
3144
3226
|
variant: "pi",
|
3145
3227
|
fontWeight: "bold",
|
3146
|
-
textColor: hasError && !isOpen ? "danger600" : "
|
3228
|
+
textColor: hasError && !isOpen ? "danger600" : "neutral600",
|
3147
3229
|
children
|
3148
3230
|
}
|
3149
3231
|
)
|
@@ -3160,43 +3242,14 @@ const StyledAddIcon = styledComponents.styled(Icons.PlusCircle)`
|
|
3160
3242
|
fill: ${({ theme, $hasError }) => $hasError ? theme.colors.danger200 : theme.colors.neutral150};
|
3161
3243
|
}
|
3162
3244
|
> path {
|
3163
|
-
fill: ${({ theme, $hasError }) => $hasError ? theme.colors.danger600 : theme.colors.
|
3245
|
+
fill: ${({ theme, $hasError }) => $hasError ? theme.colors.danger600 : theme.colors.neutral500};
|
3164
3246
|
}
|
3165
3247
|
`;
|
3166
|
-
const AddComponentTitle = styledComponents.styled(designSystem.Typography)``;
|
3167
3248
|
const StyledButton = styledComponents.styled(designSystem.Button)`
|
3249
|
+
padding-left: ${({ theme }) => theme.spaces[3]};
|
3168
3250
|
border-radius: 26px;
|
3169
|
-
border-color: ${({ theme }) => theme.colors.neutral150};
|
3170
3251
|
box-shadow: ${({ theme }) => theme.shadows.filterShadow};
|
3171
3252
|
height: 5rem;
|
3172
|
-
|
3173
|
-
&:hover {
|
3174
|
-
${AddComponentTitle} {
|
3175
|
-
color: ${({ theme }) => theme.colors.primary600};
|
3176
|
-
}
|
3177
|
-
|
3178
|
-
${StyledAddIcon} {
|
3179
|
-
> circle {
|
3180
|
-
fill: ${({ theme }) => theme.colors.primary600};
|
3181
|
-
}
|
3182
|
-
> path {
|
3183
|
-
fill: ${({ theme }) => theme.colors.primary600};
|
3184
|
-
}
|
3185
|
-
}
|
3186
|
-
}
|
3187
|
-
&:active {
|
3188
|
-
${AddComponentTitle} {
|
3189
|
-
color: ${({ theme }) => theme.colors.primary600};
|
3190
|
-
}
|
3191
|
-
${StyledAddIcon} {
|
3192
|
-
> circle {
|
3193
|
-
fill: ${({ theme }) => theme.colors.primary600};
|
3194
|
-
}
|
3195
|
-
> path {
|
3196
|
-
fill: ${({ theme }) => theme.colors.neutral100};
|
3197
|
-
}
|
3198
|
-
}
|
3199
|
-
}
|
3200
3253
|
`;
|
3201
3254
|
const ComponentCategory = ({
|
3202
3255
|
category,
|
@@ -5591,4 +5644,4 @@ exports.transformDocument = transformDocument;
|
|
5591
5644
|
exports.useDynamicZone = useDynamicZone;
|
5592
5645
|
exports.useFieldHint = useFieldHint;
|
5593
5646
|
exports.useLazyComponents = useLazyComponents;
|
5594
|
-
//# sourceMappingURL=Field-
|
5647
|
+
//# sourceMappingURL=Field-vX6JQNBo.js.map
|