slice-machine-ui 2.16.2-alpha.jp-cr-ui-fix-invalid-fields-checked.2 → 2.16.2-alpha.jp-cr-ui-fix-invalid-fields-checked.3
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/out/404.html +1 -1
- package/out/_next/static/{Ik9iJ7GE37HiiP0Y1qcuP → TtJI_F9HSnCy1xZxsuy2a}/_buildManifest.js +1 -1
- package/out/_next/static/chunks/pages/{_app-fb4aeaa2b070a10c.js → _app-61e74d7f85130146.js} +1 -1
- package/out/changelog.html +1 -1
- package/out/changes.html +1 -1
- package/out/custom-types/[customTypeId].html +1 -1
- package/out/custom-types.html +1 -1
- package/out/index.html +1 -1
- package/out/labs.html +1 -1
- package/out/page-types/[pageTypeId].html +1 -1
- package/out/settings.html +1 -1
- package/out/slices/[lib]/[sliceName]/[variation]/simulator.html +1 -1
- package/out/slices/[lib]/[sliceName]/[variation].html +1 -1
- package/out/slices.html +1 -1
- package/package.json +3 -3
- package/src/features/builder/fields/contentRelationship/ContentRelationshipFieldPicker.tsx +158 -128
- /package/out/_next/static/{Ik9iJ7GE37HiiP0Y1qcuP → TtJI_F9HSnCy1xZxsuy2a}/_ssgManifest.js +0 -0
package/out/changelog.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/cc9b10286400c2b9.css" as="style"/><link rel="stylesheet" href="/_next/static/css/cc9b10286400c2b9.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-b3522fdebabf510a.js" defer=""></script><script src="/_next/static/chunks/framework-ab7ddb551c23d05a.js" defer=""></script><script src="/_next/static/chunks/main-c46f4dcf6e3174bd.js" defer=""></script><script src="/_next/static/chunks/pages/_app-
|
|
1
|
+
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/cc9b10286400c2b9.css" as="style"/><link rel="stylesheet" href="/_next/static/css/cc9b10286400c2b9.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-b3522fdebabf510a.js" defer=""></script><script src="/_next/static/chunks/framework-ab7ddb551c23d05a.js" defer=""></script><script src="/_next/static/chunks/main-c46f4dcf6e3174bd.js" defer=""></script><script src="/_next/static/chunks/pages/_app-61e74d7f85130146.js" defer=""></script><script src="/_next/static/chunks/59b4e022-ef680789f7cc9b11.js" defer=""></script><script src="/_next/static/chunks/183-4ea255b867ff171b.js" defer=""></script><script src="/_next/static/chunks/870-a72b74312773efea.js" defer=""></script><script src="/_next/static/chunks/pages/changelog-063c5e11dfc8fd55.js" defer=""></script><script src="/_next/static/TtJI_F9HSnCy1xZxsuy2a/_buildManifest.js" defer=""></script><script src="/_next/static/TtJI_F9HSnCy1xZxsuy2a/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/changelog","query":{},"buildId":"TtJI_F9HSnCy1xZxsuy2a","runtimeConfig":{"sentryEnvironment":"alpha"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
package/out/changes.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/cc9b10286400c2b9.css" as="style"/><link rel="stylesheet" href="/_next/static/css/cc9b10286400c2b9.css" data-n-g=""/><link rel="preload" href="/_next/static/css/d98ebc475f8423a3.css" as="style"/><link rel="stylesheet" href="/_next/static/css/d98ebc475f8423a3.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-b3522fdebabf510a.js" defer=""></script><script src="/_next/static/chunks/framework-ab7ddb551c23d05a.js" defer=""></script><script src="/_next/static/chunks/main-c46f4dcf6e3174bd.js" defer=""></script><script src="/_next/static/chunks/pages/_app-
|
|
1
|
+
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/cc9b10286400c2b9.css" as="style"/><link rel="stylesheet" href="/_next/static/css/cc9b10286400c2b9.css" data-n-g=""/><link rel="preload" href="/_next/static/css/d98ebc475f8423a3.css" as="style"/><link rel="stylesheet" href="/_next/static/css/d98ebc475f8423a3.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-b3522fdebabf510a.js" defer=""></script><script src="/_next/static/chunks/framework-ab7ddb551c23d05a.js" defer=""></script><script src="/_next/static/chunks/main-c46f4dcf6e3174bd.js" defer=""></script><script src="/_next/static/chunks/pages/_app-61e74d7f85130146.js" defer=""></script><script src="/_next/static/chunks/59b4e022-ef680789f7cc9b11.js" defer=""></script><script src="/_next/static/chunks/c8eae200-966ce352f7b5d2b9.js" defer=""></script><script src="/_next/static/chunks/8eec4907-b712959d9f984b68.js" defer=""></script><script src="/_next/static/chunks/918-fa4f2563cb5fd014.js" defer=""></script><script src="/_next/static/chunks/34-e684c5fd75cc9dd0.js" defer=""></script><script src="/_next/static/chunks/658-8231c0b729e0124a.js" defer=""></script><script src="/_next/static/chunks/pages/changes-564336edb0ed18b0.js" defer=""></script><script src="/_next/static/TtJI_F9HSnCy1xZxsuy2a/_buildManifest.js" defer=""></script><script src="/_next/static/TtJI_F9HSnCy1xZxsuy2a/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/changes","query":{},"buildId":"TtJI_F9HSnCy1xZxsuy2a","runtimeConfig":{"sentryEnvironment":"alpha"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/cc9b10286400c2b9.css" as="style"/><link rel="stylesheet" href="/_next/static/css/cc9b10286400c2b9.css" data-n-g=""/><link rel="preload" href="/_next/static/css/56f2a6684a524374.css" as="style"/><link rel="stylesheet" href="/_next/static/css/56f2a6684a524374.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-b3522fdebabf510a.js" defer=""></script><script src="/_next/static/chunks/framework-ab7ddb551c23d05a.js" defer=""></script><script src="/_next/static/chunks/main-c46f4dcf6e3174bd.js" defer=""></script><script src="/_next/static/chunks/pages/_app-
|
|
1
|
+
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/cc9b10286400c2b9.css" as="style"/><link rel="stylesheet" href="/_next/static/css/cc9b10286400c2b9.css" data-n-g=""/><link rel="preload" href="/_next/static/css/56f2a6684a524374.css" as="style"/><link rel="stylesheet" href="/_next/static/css/56f2a6684a524374.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-b3522fdebabf510a.js" defer=""></script><script src="/_next/static/chunks/framework-ab7ddb551c23d05a.js" defer=""></script><script src="/_next/static/chunks/main-c46f4dcf6e3174bd.js" defer=""></script><script src="/_next/static/chunks/pages/_app-61e74d7f85130146.js" defer=""></script><script src="/_next/static/chunks/59b4e022-ef680789f7cc9b11.js" defer=""></script><script src="/_next/static/chunks/f36c6662-1f3a854183168b10.js" defer=""></script><script src="/_next/static/chunks/4c744e84-480e426e4b1cfef3.js" defer=""></script><script src="/_next/static/chunks/065a3ddb-9a38ca0d60f0bf2f.js" defer=""></script><script src="/_next/static/chunks/1cc2734a-09fb3b997ad1eb70.js" defer=""></script><script src="/_next/static/chunks/397-e6c340070a3bcb41.js" defer=""></script><script src="/_next/static/chunks/183-4ea255b867ff171b.js" defer=""></script><script src="/_next/static/chunks/44-a2056f993381ad0f.js" defer=""></script><script src="/_next/static/chunks/349-7118116b93278f73.js" defer=""></script><script src="/_next/static/chunks/385-b949173dfa03dd3e.js" defer=""></script><script src="/_next/static/chunks/34-e684c5fd75cc9dd0.js" defer=""></script><script src="/_next/static/chunks/647-7b9b5aa9468f9e4b.js" defer=""></script><script src="/_next/static/chunks/630-ffb67177d6d9784c.js" defer=""></script><script src="/_next/static/chunks/268-6a9214b97195af9c.js" defer=""></script><script src="/_next/static/chunks/882-151468121d542ed6.js" defer=""></script><script src="/_next/static/chunks/pages/custom-types/%5BcustomTypeId%5D-a408f5a660e096a6.js" defer=""></script><script src="/_next/static/TtJI_F9HSnCy1xZxsuy2a/_buildManifest.js" defer=""></script><script src="/_next/static/TtJI_F9HSnCy1xZxsuy2a/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/custom-types/[customTypeId]","query":{},"buildId":"TtJI_F9HSnCy1xZxsuy2a","runtimeConfig":{"sentryEnvironment":"alpha"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
package/out/custom-types.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/cc9b10286400c2b9.css" as="style"/><link rel="stylesheet" href="/_next/static/css/cc9b10286400c2b9.css" data-n-g=""/><link rel="preload" href="/_next/static/css/4e475d945cf8a890.css" as="style"/><link rel="stylesheet" href="/_next/static/css/4e475d945cf8a890.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-b3522fdebabf510a.js" defer=""></script><script src="/_next/static/chunks/framework-ab7ddb551c23d05a.js" defer=""></script><script src="/_next/static/chunks/main-c46f4dcf6e3174bd.js" defer=""></script><script src="/_next/static/chunks/pages/_app-
|
|
1
|
+
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/cc9b10286400c2b9.css" as="style"/><link rel="stylesheet" href="/_next/static/css/cc9b10286400c2b9.css" data-n-g=""/><link rel="preload" href="/_next/static/css/4e475d945cf8a890.css" as="style"/><link rel="stylesheet" href="/_next/static/css/4e475d945cf8a890.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-b3522fdebabf510a.js" defer=""></script><script src="/_next/static/chunks/framework-ab7ddb551c23d05a.js" defer=""></script><script src="/_next/static/chunks/main-c46f4dcf6e3174bd.js" defer=""></script><script src="/_next/static/chunks/pages/_app-61e74d7f85130146.js" defer=""></script><script src="/_next/static/chunks/397-e6c340070a3bcb41.js" defer=""></script><script src="/_next/static/chunks/647-7b9b5aa9468f9e4b.js" defer=""></script><script src="/_next/static/chunks/248-03446cd9e9f13730.js" defer=""></script><script src="/_next/static/chunks/pages/custom-types-5acd56959b60346f.js" defer=""></script><script src="/_next/static/TtJI_F9HSnCy1xZxsuy2a/_buildManifest.js" defer=""></script><script src="/_next/static/TtJI_F9HSnCy1xZxsuy2a/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/custom-types","query":{},"buildId":"TtJI_F9HSnCy1xZxsuy2a","runtimeConfig":{"sentryEnvironment":"alpha"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
package/out/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/cc9b10286400c2b9.css" as="style"/><link rel="stylesheet" href="/_next/static/css/cc9b10286400c2b9.css" data-n-g=""/><link rel="preload" href="/_next/static/css/4e475d945cf8a890.css" as="style"/><link rel="stylesheet" href="/_next/static/css/4e475d945cf8a890.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-b3522fdebabf510a.js" defer=""></script><script src="/_next/static/chunks/framework-ab7ddb551c23d05a.js" defer=""></script><script src="/_next/static/chunks/main-c46f4dcf6e3174bd.js" defer=""></script><script src="/_next/static/chunks/pages/_app-
|
|
1
|
+
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/cc9b10286400c2b9.css" as="style"/><link rel="stylesheet" href="/_next/static/css/cc9b10286400c2b9.css" data-n-g=""/><link rel="preload" href="/_next/static/css/4e475d945cf8a890.css" as="style"/><link rel="stylesheet" href="/_next/static/css/4e475d945cf8a890.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-b3522fdebabf510a.js" defer=""></script><script src="/_next/static/chunks/framework-ab7ddb551c23d05a.js" defer=""></script><script src="/_next/static/chunks/main-c46f4dcf6e3174bd.js" defer=""></script><script src="/_next/static/chunks/pages/_app-61e74d7f85130146.js" defer=""></script><script src="/_next/static/chunks/397-e6c340070a3bcb41.js" defer=""></script><script src="/_next/static/chunks/647-7b9b5aa9468f9e4b.js" defer=""></script><script src="/_next/static/chunks/248-03446cd9e9f13730.js" defer=""></script><script src="/_next/static/chunks/pages/index-0d8cb369de720a35.js" defer=""></script><script src="/_next/static/TtJI_F9HSnCy1xZxsuy2a/_buildManifest.js" defer=""></script><script src="/_next/static/TtJI_F9HSnCy1xZxsuy2a/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/","query":{},"buildId":"TtJI_F9HSnCy1xZxsuy2a","runtimeConfig":{"sentryEnvironment":"alpha"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
package/out/labs.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/cc9b10286400c2b9.css" as="style"/><link rel="stylesheet" href="/_next/static/css/cc9b10286400c2b9.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-b3522fdebabf510a.js" defer=""></script><script src="/_next/static/chunks/framework-ab7ddb551c23d05a.js" defer=""></script><script src="/_next/static/chunks/main-c46f4dcf6e3174bd.js" defer=""></script><script src="/_next/static/chunks/pages/_app-
|
|
1
|
+
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/cc9b10286400c2b9.css" as="style"/><link rel="stylesheet" href="/_next/static/css/cc9b10286400c2b9.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-b3522fdebabf510a.js" defer=""></script><script src="/_next/static/chunks/framework-ab7ddb551c23d05a.js" defer=""></script><script src="/_next/static/chunks/main-c46f4dcf6e3174bd.js" defer=""></script><script src="/_next/static/chunks/pages/_app-61e74d7f85130146.js" defer=""></script><script src="/_next/static/chunks/pages/labs-9630bfb1005be02b.js" defer=""></script><script src="/_next/static/TtJI_F9HSnCy1xZxsuy2a/_buildManifest.js" defer=""></script><script src="/_next/static/TtJI_F9HSnCy1xZxsuy2a/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/labs","query":{},"buildId":"TtJI_F9HSnCy1xZxsuy2a","runtimeConfig":{"sentryEnvironment":"alpha"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/cc9b10286400c2b9.css" as="style"/><link rel="stylesheet" href="/_next/static/css/cc9b10286400c2b9.css" data-n-g=""/><link rel="preload" href="/_next/static/css/56f2a6684a524374.css" as="style"/><link rel="stylesheet" href="/_next/static/css/56f2a6684a524374.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-b3522fdebabf510a.js" defer=""></script><script src="/_next/static/chunks/framework-ab7ddb551c23d05a.js" defer=""></script><script src="/_next/static/chunks/main-c46f4dcf6e3174bd.js" defer=""></script><script src="/_next/static/chunks/pages/_app-
|
|
1
|
+
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/cc9b10286400c2b9.css" as="style"/><link rel="stylesheet" href="/_next/static/css/cc9b10286400c2b9.css" data-n-g=""/><link rel="preload" href="/_next/static/css/56f2a6684a524374.css" as="style"/><link rel="stylesheet" href="/_next/static/css/56f2a6684a524374.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-b3522fdebabf510a.js" defer=""></script><script src="/_next/static/chunks/framework-ab7ddb551c23d05a.js" defer=""></script><script src="/_next/static/chunks/main-c46f4dcf6e3174bd.js" defer=""></script><script src="/_next/static/chunks/pages/_app-61e74d7f85130146.js" defer=""></script><script src="/_next/static/chunks/59b4e022-ef680789f7cc9b11.js" defer=""></script><script src="/_next/static/chunks/f36c6662-1f3a854183168b10.js" defer=""></script><script src="/_next/static/chunks/4c744e84-480e426e4b1cfef3.js" defer=""></script><script src="/_next/static/chunks/065a3ddb-9a38ca0d60f0bf2f.js" defer=""></script><script src="/_next/static/chunks/1cc2734a-09fb3b997ad1eb70.js" defer=""></script><script src="/_next/static/chunks/397-e6c340070a3bcb41.js" defer=""></script><script src="/_next/static/chunks/183-4ea255b867ff171b.js" defer=""></script><script src="/_next/static/chunks/44-a2056f993381ad0f.js" defer=""></script><script src="/_next/static/chunks/349-7118116b93278f73.js" defer=""></script><script src="/_next/static/chunks/385-b949173dfa03dd3e.js" defer=""></script><script src="/_next/static/chunks/34-e684c5fd75cc9dd0.js" defer=""></script><script src="/_next/static/chunks/647-7b9b5aa9468f9e4b.js" defer=""></script><script src="/_next/static/chunks/630-ffb67177d6d9784c.js" defer=""></script><script src="/_next/static/chunks/268-6a9214b97195af9c.js" defer=""></script><script src="/_next/static/chunks/882-151468121d542ed6.js" defer=""></script><script src="/_next/static/chunks/pages/page-types/%5BpageTypeId%5D-f5e851ebe35049a8.js" defer=""></script><script src="/_next/static/TtJI_F9HSnCy1xZxsuy2a/_buildManifest.js" defer=""></script><script src="/_next/static/TtJI_F9HSnCy1xZxsuy2a/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/page-types/[pageTypeId]","query":{},"buildId":"TtJI_F9HSnCy1xZxsuy2a","runtimeConfig":{"sentryEnvironment":"alpha"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
package/out/settings.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/cc9b10286400c2b9.css" as="style"/><link rel="stylesheet" href="/_next/static/css/cc9b10286400c2b9.css" data-n-g=""/><link rel="preload" href="/_next/static/css/e5f781f20e24a5ea.css" as="style"/><link rel="stylesheet" href="/_next/static/css/e5f781f20e24a5ea.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-b3522fdebabf510a.js" defer=""></script><script src="/_next/static/chunks/framework-ab7ddb551c23d05a.js" defer=""></script><script src="/_next/static/chunks/main-c46f4dcf6e3174bd.js" defer=""></script><script src="/_next/static/chunks/pages/_app-
|
|
1
|
+
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/cc9b10286400c2b9.css" as="style"/><link rel="stylesheet" href="/_next/static/css/cc9b10286400c2b9.css" data-n-g=""/><link rel="preload" href="/_next/static/css/e5f781f20e24a5ea.css" as="style"/><link rel="stylesheet" href="/_next/static/css/e5f781f20e24a5ea.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-b3522fdebabf510a.js" defer=""></script><script src="/_next/static/chunks/framework-ab7ddb551c23d05a.js" defer=""></script><script src="/_next/static/chunks/main-c46f4dcf6e3174bd.js" defer=""></script><script src="/_next/static/chunks/pages/_app-61e74d7f85130146.js" defer=""></script><script src="/_next/static/chunks/397-e6c340070a3bcb41.js" defer=""></script><script src="/_next/static/chunks/pages/settings-01f4aeb9112a1f87.js" defer=""></script><script src="/_next/static/TtJI_F9HSnCy1xZxsuy2a/_buildManifest.js" defer=""></script><script src="/_next/static/TtJI_F9HSnCy1xZxsuy2a/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/settings","query":{},"buildId":"TtJI_F9HSnCy1xZxsuy2a","runtimeConfig":{"sentryEnvironment":"alpha"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/cc9b10286400c2b9.css" as="style"/><link rel="stylesheet" href="/_next/static/css/cc9b10286400c2b9.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-b3522fdebabf510a.js" defer=""></script><script src="/_next/static/chunks/framework-ab7ddb551c23d05a.js" defer=""></script><script src="/_next/static/chunks/main-c46f4dcf6e3174bd.js" defer=""></script><script src="/_next/static/chunks/pages/_app-
|
|
1
|
+
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/cc9b10286400c2b9.css" as="style"/><link rel="stylesheet" href="/_next/static/css/cc9b10286400c2b9.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-b3522fdebabf510a.js" defer=""></script><script src="/_next/static/chunks/framework-ab7ddb551c23d05a.js" defer=""></script><script src="/_next/static/chunks/main-c46f4dcf6e3174bd.js" defer=""></script><script src="/_next/static/chunks/pages/_app-61e74d7f85130146.js" defer=""></script><script src="/_next/static/chunks/c8eae200-966ce352f7b5d2b9.js" defer=""></script><script src="/_next/static/chunks/72585f70-28b4d7d5384b3703.js" defer=""></script><script src="/_next/static/chunks/157-54b8336d20b41933.js" defer=""></script><script src="/_next/static/chunks/pages/slices/%5Blib%5D/%5BsliceName%5D/%5Bvariation%5D/simulator-5008e29008aa04f4.js" defer=""></script><script src="/_next/static/TtJI_F9HSnCy1xZxsuy2a/_buildManifest.js" defer=""></script><script src="/_next/static/TtJI_F9HSnCy1xZxsuy2a/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/slices/[lib]/[sliceName]/[variation]/simulator","query":{},"buildId":"TtJI_F9HSnCy1xZxsuy2a","runtimeConfig":{"sentryEnvironment":"alpha"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/cc9b10286400c2b9.css" as="style"/><link rel="stylesheet" href="/_next/static/css/cc9b10286400c2b9.css" data-n-g=""/><link rel="preload" href="/_next/static/css/cdee5b195444f185.css" as="style"/><link rel="stylesheet" href="/_next/static/css/cdee5b195444f185.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-b3522fdebabf510a.js" defer=""></script><script src="/_next/static/chunks/framework-ab7ddb551c23d05a.js" defer=""></script><script src="/_next/static/chunks/main-c46f4dcf6e3174bd.js" defer=""></script><script src="/_next/static/chunks/pages/_app-
|
|
1
|
+
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/cc9b10286400c2b9.css" as="style"/><link rel="stylesheet" href="/_next/static/css/cc9b10286400c2b9.css" data-n-g=""/><link rel="preload" href="/_next/static/css/cdee5b195444f185.css" as="style"/><link rel="stylesheet" href="/_next/static/css/cdee5b195444f185.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-b3522fdebabf510a.js" defer=""></script><script src="/_next/static/chunks/framework-ab7ddb551c23d05a.js" defer=""></script><script src="/_next/static/chunks/main-c46f4dcf6e3174bd.js" defer=""></script><script src="/_next/static/chunks/pages/_app-61e74d7f85130146.js" defer=""></script><script src="/_next/static/chunks/59b4e022-ef680789f7cc9b11.js" defer=""></script><script src="/_next/static/chunks/c8eae200-966ce352f7b5d2b9.js" defer=""></script><script src="/_next/static/chunks/f36c6662-1f3a854183168b10.js" defer=""></script><script src="/_next/static/chunks/4c744e84-480e426e4b1cfef3.js" defer=""></script><script src="/_next/static/chunks/065a3ddb-9a38ca0d60f0bf2f.js" defer=""></script><script src="/_next/static/chunks/1cc2734a-09fb3b997ad1eb70.js" defer=""></script><script src="/_next/static/chunks/397-e6c340070a3bcb41.js" defer=""></script><script src="/_next/static/chunks/183-4ea255b867ff171b.js" defer=""></script><script src="/_next/static/chunks/44-a2056f993381ad0f.js" defer=""></script><script src="/_next/static/chunks/349-7118116b93278f73.js" defer=""></script><script src="/_next/static/chunks/34-e684c5fd75cc9dd0.js" defer=""></script><script src="/_next/static/chunks/630-ffb67177d6d9784c.js" defer=""></script><script src="/_next/static/chunks/658-8231c0b729e0124a.js" defer=""></script><script src="/_next/static/chunks/pages/slices/%5Blib%5D/%5BsliceName%5D/%5Bvariation%5D-bd5e45632c419567.js" defer=""></script><script src="/_next/static/TtJI_F9HSnCy1xZxsuy2a/_buildManifest.js" defer=""></script><script src="/_next/static/TtJI_F9HSnCy1xZxsuy2a/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/slices/[lib]/[sliceName]/[variation]","query":{},"buildId":"TtJI_F9HSnCy1xZxsuy2a","runtimeConfig":{"sentryEnvironment":"alpha"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
package/out/slices.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/cc9b10286400c2b9.css" as="style"/><link rel="stylesheet" href="/_next/static/css/cc9b10286400c2b9.css" data-n-g=""/><link rel="preload" href="/_next/static/css/efa5152b7c0f35c0.css" as="style"/><link rel="stylesheet" href="/_next/static/css/efa5152b7c0f35c0.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-b3522fdebabf510a.js" defer=""></script><script src="/_next/static/chunks/framework-ab7ddb551c23d05a.js" defer=""></script><script src="/_next/static/chunks/main-c46f4dcf6e3174bd.js" defer=""></script><script src="/_next/static/chunks/pages/_app-
|
|
1
|
+
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/cc9b10286400c2b9.css" as="style"/><link rel="stylesheet" href="/_next/static/css/cc9b10286400c2b9.css" data-n-g=""/><link rel="preload" href="/_next/static/css/efa5152b7c0f35c0.css" as="style"/><link rel="stylesheet" href="/_next/static/css/efa5152b7c0f35c0.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-b3522fdebabf510a.js" defer=""></script><script src="/_next/static/chunks/framework-ab7ddb551c23d05a.js" defer=""></script><script src="/_next/static/chunks/main-c46f4dcf6e3174bd.js" defer=""></script><script src="/_next/static/chunks/pages/_app-61e74d7f85130146.js" defer=""></script><script src="/_next/static/chunks/59b4e022-ef680789f7cc9b11.js" defer=""></script><script src="/_next/static/chunks/c8eae200-966ce352f7b5d2b9.js" defer=""></script><script src="/_next/static/chunks/397-e6c340070a3bcb41.js" defer=""></script><script src="/_next/static/chunks/44-a2056f993381ad0f.js" defer=""></script><script src="/_next/static/chunks/34-e684c5fd75cc9dd0.js" defer=""></script><script src="/_next/static/chunks/658-8231c0b729e0124a.js" defer=""></script><script src="/_next/static/chunks/268-6a9214b97195af9c.js" defer=""></script><script src="/_next/static/chunks/pages/slices-4a60cd5f2c71327e.js" defer=""></script><script src="/_next/static/TtJI_F9HSnCy1xZxsuy2a/_buildManifest.js" defer=""></script><script src="/_next/static/TtJI_F9HSnCy1xZxsuy2a/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/slices","query":{},"buildId":"TtJI_F9HSnCy1xZxsuy2a","runtimeConfig":{"sentryEnvironment":"alpha"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "slice-machine-ui",
|
|
3
|
-
"version": "2.16.2-alpha.jp-cr-ui-fix-invalid-fields-checked.
|
|
3
|
+
"version": "2.16.2-alpha.jp-cr-ui-fix-invalid-fields-checked.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "A visual builder for your Slice Models with all the tools you need to generate data models and mock CMS content locally.",
|
|
6
6
|
"repository": {
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"start-slicemachine": "./bin/start-slicemachine.cjs"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@slicemachine/manager": "0.24.16-alpha.jp-cr-ui-fix-invalid-fields-checked.
|
|
39
|
-
"start-slicemachine": "0.12.58-alpha.jp-cr-ui-fix-invalid-fields-checked.
|
|
38
|
+
"@slicemachine/manager": "0.24.16-alpha.jp-cr-ui-fix-invalid-fields-checked.3",
|
|
39
|
+
"start-slicemachine": "0.12.58-alpha.jp-cr-ui-fix-invalid-fields-checked.3"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@emotion/react": "11.11.1",
|
|
@@ -953,17 +953,111 @@ export function convertLinkCustomtypesToFieldCheckMap(args: {
|
|
|
953
953
|
}): PickerCustomTypes {
|
|
954
954
|
const { linkCustomtypes, allCustomTypes } = args;
|
|
955
955
|
|
|
956
|
-
const checkMap = linkCustomtypes.reduce(
|
|
957
|
-
|
|
956
|
+
const checkMap = linkCustomtypes.reduce<PickerCustomTypes>(
|
|
957
|
+
(customTypes, customType) => {
|
|
958
|
+
if (typeof customType === "string") return customTypes;
|
|
959
|
+
|
|
960
|
+
const existingCt = allCustomTypes?.find((ct) => ct.id === customType.id);
|
|
961
|
+
if (allCustomTypes && !existingCt) return customTypes;
|
|
962
|
+
|
|
963
|
+
const ctFlatFieldMap = getCustomTypeFlatFieldMap(existingCt);
|
|
964
|
+
|
|
965
|
+
const customTypeFields = customType.fields.reduce<PickerCustomType>(
|
|
966
|
+
(fields, field) => {
|
|
967
|
+
// Check if the field exists
|
|
968
|
+
const existingField = ctFlatFieldMap.get(getId(field));
|
|
969
|
+
if (allCustomTypes && !existingField) return fields;
|
|
970
|
+
|
|
971
|
+
// Regular field
|
|
972
|
+
if (typeof field === "string") {
|
|
973
|
+
// Check if the field matched the existing one in the custom type
|
|
974
|
+
if (
|
|
975
|
+
allCustomTypes &&
|
|
976
|
+
existingField &&
|
|
977
|
+
existingField.type === "Group"
|
|
978
|
+
) {
|
|
979
|
+
return fields;
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
fields[field] = { type: "checkbox", value: true };
|
|
983
|
+
return fields;
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
// Group field
|
|
987
|
+
if ("fields" in field && field.fields !== undefined) {
|
|
988
|
+
// Check if the field matched the existing one in the custom type
|
|
989
|
+
if (
|
|
990
|
+
allCustomTypes &&
|
|
991
|
+
existingField &&
|
|
992
|
+
existingField.type !== "Group"
|
|
993
|
+
) {
|
|
994
|
+
return fields;
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
const groupFieldCheckMap = createGroupFieldCheckMap({
|
|
998
|
+
group: field,
|
|
999
|
+
allCustomTypes,
|
|
1000
|
+
ctFlatFieldMap,
|
|
1001
|
+
});
|
|
1002
|
+
|
|
1003
|
+
if (groupFieldCheckMap) {
|
|
1004
|
+
fields[field.id] = groupFieldCheckMap;
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
return fields;
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
// Content relationship field
|
|
1011
|
+
if ("customtypes" in field && field.customtypes !== undefined) {
|
|
1012
|
+
// Check if the field matched the existing one in the custom type
|
|
1013
|
+
if (
|
|
1014
|
+
allCustomTypes &&
|
|
1015
|
+
existingField &&
|
|
1016
|
+
!isContentRelationshipField(existingField)
|
|
1017
|
+
) {
|
|
1018
|
+
return fields;
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
const crFieldCheckMap = createContentRelationshipFieldCheckMap({
|
|
1022
|
+
field,
|
|
1023
|
+
allCustomTypes,
|
|
1024
|
+
});
|
|
1025
|
+
|
|
1026
|
+
if (crFieldCheckMap) {
|
|
1027
|
+
fields[field.id] = crFieldCheckMap;
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
return fields;
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
return fields;
|
|
1034
|
+
},
|
|
1035
|
+
{},
|
|
1036
|
+
);
|
|
1037
|
+
|
|
1038
|
+
if (Object.keys(customTypeFields).length > 0) {
|
|
1039
|
+
customTypes[customType.id] = customTypeFields;
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
return customTypes;
|
|
1043
|
+
},
|
|
1044
|
+
{},
|
|
1045
|
+
);
|
|
958
1046
|
|
|
959
|
-
|
|
960
|
-
|
|
1047
|
+
return checkMap;
|
|
1048
|
+
}
|
|
961
1049
|
|
|
962
|
-
|
|
1050
|
+
function createGroupFieldCheckMap(args: {
|
|
1051
|
+
group: LinkCustomtypesGroupFieldValue;
|
|
1052
|
+
allCustomTypes?: CustomType[];
|
|
1053
|
+
ctFlatFieldMap: CustomTypeFlatFieldMap;
|
|
1054
|
+
}): PickerFirstLevelGroupField | undefined {
|
|
1055
|
+
const { group, ctFlatFieldMap, allCustomTypes } = args;
|
|
963
1056
|
|
|
964
|
-
|
|
1057
|
+
const fieldEntries = group.fields.reduce<PickerFirstLevelGroupFieldValue>(
|
|
1058
|
+
(fields, field) => {
|
|
965
1059
|
// Check if the field exists
|
|
966
|
-
const existingField = ctFlatFieldMap.get(getId(field));
|
|
1060
|
+
const existingField = ctFlatFieldMap.get(`${group.id}.${getId(field)}`);
|
|
967
1061
|
if (allCustomTypes && !existingField) return fields;
|
|
968
1062
|
|
|
969
1063
|
// Regular field
|
|
@@ -977,26 +1071,6 @@ export function convertLinkCustomtypesToFieldCheckMap(args: {
|
|
|
977
1071
|
return fields;
|
|
978
1072
|
}
|
|
979
1073
|
|
|
980
|
-
// Group field
|
|
981
|
-
if ("fields" in field && field.fields !== undefined) {
|
|
982
|
-
// Check if the field matched the existing one in the custom type
|
|
983
|
-
if (allCustomTypes && existingField && existingField.type !== "Group") {
|
|
984
|
-
return fields;
|
|
985
|
-
}
|
|
986
|
-
|
|
987
|
-
const groupFieldCheckMap = createGroupFieldCheckMap({
|
|
988
|
-
group: field,
|
|
989
|
-
allCustomTypes,
|
|
990
|
-
ctFlatFieldMap,
|
|
991
|
-
});
|
|
992
|
-
|
|
993
|
-
if (groupFieldCheckMap) {
|
|
994
|
-
fields[field.id] = groupFieldCheckMap;
|
|
995
|
-
}
|
|
996
|
-
|
|
997
|
-
return fields;
|
|
998
|
-
}
|
|
999
|
-
|
|
1000
1074
|
// Content relationship field
|
|
1001
1075
|
if ("customtypes" in field && field.customtypes !== undefined) {
|
|
1002
1076
|
// Check if the field matched the existing one in the custom type
|
|
@@ -1021,66 +1095,9 @@ export function convertLinkCustomtypesToFieldCheckMap(args: {
|
|
|
1021
1095
|
}
|
|
1022
1096
|
|
|
1023
1097
|
return fields;
|
|
1024
|
-
},
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
customTypes[customType.id] = customTypeFields;
|
|
1028
|
-
}
|
|
1029
|
-
|
|
1030
|
-
return customTypes;
|
|
1031
|
-
}, {} as PickerCustomTypes);
|
|
1032
|
-
|
|
1033
|
-
return checkMap;
|
|
1034
|
-
}
|
|
1035
|
-
|
|
1036
|
-
function createGroupFieldCheckMap(args: {
|
|
1037
|
-
group: LinkCustomtypesGroupFieldValue;
|
|
1038
|
-
allCustomTypes?: CustomType[];
|
|
1039
|
-
ctFlatFieldMap: CustomTypeFlatFieldMap;
|
|
1040
|
-
}): PickerFirstLevelGroupField | undefined {
|
|
1041
|
-
const { group, ctFlatFieldMap, allCustomTypes } = args;
|
|
1042
|
-
|
|
1043
|
-
const fieldEntries = group.fields.reduce((fields, field) => {
|
|
1044
|
-
// Check if the field exists
|
|
1045
|
-
const existingField = ctFlatFieldMap.get(`${group.id}.${getId(field)}`);
|
|
1046
|
-
if (allCustomTypes && !existingField) return fields;
|
|
1047
|
-
|
|
1048
|
-
// Regular field
|
|
1049
|
-
if (typeof field === "string") {
|
|
1050
|
-
// Check if the field matched the existing one in the custom type
|
|
1051
|
-
if (allCustomTypes && existingField && existingField.type === "Group") {
|
|
1052
|
-
return fields;
|
|
1053
|
-
}
|
|
1054
|
-
|
|
1055
|
-
fields[field] = { type: "checkbox", value: true };
|
|
1056
|
-
return fields;
|
|
1057
|
-
}
|
|
1058
|
-
|
|
1059
|
-
// Content relationship field
|
|
1060
|
-
if ("customtypes" in field && field.customtypes !== undefined) {
|
|
1061
|
-
// Check if the field matched the existing one in the custom type
|
|
1062
|
-
if (
|
|
1063
|
-
allCustomTypes &&
|
|
1064
|
-
existingField &&
|
|
1065
|
-
!isContentRelationshipField(existingField)
|
|
1066
|
-
) {
|
|
1067
|
-
return fields;
|
|
1068
|
-
}
|
|
1069
|
-
|
|
1070
|
-
const crFieldCheckMap = createContentRelationshipFieldCheckMap({
|
|
1071
|
-
field,
|
|
1072
|
-
allCustomTypes,
|
|
1073
|
-
});
|
|
1074
|
-
|
|
1075
|
-
if (crFieldCheckMap) {
|
|
1076
|
-
fields[field.id] = crFieldCheckMap;
|
|
1077
|
-
}
|
|
1078
|
-
|
|
1079
|
-
return fields;
|
|
1080
|
-
}
|
|
1081
|
-
|
|
1082
|
-
return fields;
|
|
1083
|
-
}, {} as PickerFirstLevelGroupFieldValue);
|
|
1098
|
+
},
|
|
1099
|
+
{},
|
|
1100
|
+
);
|
|
1084
1101
|
|
|
1085
1102
|
if (Object.keys(fieldEntries).length === 0) return undefined;
|
|
1086
1103
|
|
|
@@ -1096,56 +1113,69 @@ function createContentRelationshipFieldCheckMap(args: {
|
|
|
1096
1113
|
}): PickerContentRelationshipField | undefined {
|
|
1097
1114
|
const { field, allCustomTypes } = args;
|
|
1098
1115
|
|
|
1099
|
-
const fieldEntries =
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
if (allCustomTypes && !existingCt) return customTypes;
|
|
1116
|
+
const fieldEntries =
|
|
1117
|
+
field.customtypes.reduce<PickerContentRelationshipFieldValue>(
|
|
1118
|
+
(customTypes, customType) => {
|
|
1119
|
+
if (typeof customType === "string") return customTypes;
|
|
1104
1120
|
|
|
1105
|
-
|
|
1121
|
+
const existingCt = allCustomTypes?.find(
|
|
1122
|
+
(ct) => ct.id === customType.id,
|
|
1123
|
+
);
|
|
1124
|
+
if (allCustomTypes && !existingCt) return customTypes;
|
|
1106
1125
|
|
|
1107
|
-
|
|
1108
|
-
// Regular field
|
|
1109
|
-
if (typeof nestedField === "string") {
|
|
1110
|
-
// Check if the field matched the existing one in the custom type
|
|
1111
|
-
if (allCustomTypes && !ctFlatFieldMap.has(nestedField)) {
|
|
1112
|
-
return nestedFields;
|
|
1113
|
-
}
|
|
1126
|
+
const ctFlatFieldMap = getCustomTypeFlatFieldMap(existingCt);
|
|
1114
1127
|
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1128
|
+
const ctFields = customType.fields.reduce<PickerNestedCustomTypeValue>(
|
|
1129
|
+
(nestedFields, nestedField) => {
|
|
1130
|
+
// Regular field
|
|
1131
|
+
if (typeof nestedField === "string") {
|
|
1132
|
+
// Check if the field matched the existing one in the custom type
|
|
1133
|
+
if (allCustomTypes && !ctFlatFieldMap.has(nestedField)) {
|
|
1134
|
+
return nestedFields;
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1137
|
+
nestedFields[nestedField] = { type: "checkbox", value: true };
|
|
1138
|
+
return nestedFields;
|
|
1139
|
+
}
|
|
1118
1140
|
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1141
|
+
// Group field
|
|
1142
|
+
const groupFields =
|
|
1143
|
+
nestedField.fields.reduce<PickerLeafGroupFieldValue>(
|
|
1144
|
+
(fields, field) => {
|
|
1145
|
+
// Check if the field matched the existing one in the custom type
|
|
1146
|
+
if (
|
|
1147
|
+
allCustomTypes &&
|
|
1148
|
+
!ctFlatFieldMap.has(`${nestedField.id}.${field}`)
|
|
1149
|
+
) {
|
|
1150
|
+
return fields;
|
|
1151
|
+
}
|
|
1128
1152
|
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1153
|
+
fields[field] = { type: "checkbox", value: true };
|
|
1154
|
+
return fields;
|
|
1155
|
+
},
|
|
1156
|
+
{},
|
|
1157
|
+
);
|
|
1132
1158
|
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1159
|
+
if (Object.keys(groupFields).length > 0) {
|
|
1160
|
+
nestedFields[nestedField.id] = {
|
|
1161
|
+
type: "group",
|
|
1162
|
+
value: groupFields,
|
|
1163
|
+
};
|
|
1164
|
+
}
|
|
1139
1165
|
|
|
1140
|
-
|
|
1141
|
-
|
|
1166
|
+
return nestedFields;
|
|
1167
|
+
},
|
|
1168
|
+
{},
|
|
1169
|
+
);
|
|
1142
1170
|
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1171
|
+
if (Object.keys(ctFields).length > 0) {
|
|
1172
|
+
customTypes[customType.id] = ctFields;
|
|
1173
|
+
}
|
|
1146
1174
|
|
|
1147
|
-
|
|
1148
|
-
|
|
1175
|
+
return customTypes;
|
|
1176
|
+
},
|
|
1177
|
+
{},
|
|
1178
|
+
);
|
|
1149
1179
|
|
|
1150
1180
|
if (Object.keys(fieldEntries).length === 0) return undefined;
|
|
1151
1181
|
|
|
File without changes
|