slice-machine-ui 2.16.2-alpha.jp-cr-ui-multiple-improvements-rendering-logic.3 → 2.16.2-alpha.jp-cr-ui-multiple-improvements-rendering-logic.4
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/{qREnxihW7rrTVwVo4mQ7b → bAIaWPpOdVxFyT4zKYnIz}/_buildManifest.js +1 -1
- package/out/_next/static/chunks/{630-854e61c4e540d68d.js → 630-424d701624c4cd9c.js} +1 -1
- package/out/_next/static/chunks/pages/{_app-65a7f1ee54120742.js → _app-591b62a48f2ba90f.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/customTypes/fields/ContentRelationshipFieldPicker.tsx +159 -142
- /package/out/_next/static/{qREnxihW7rrTVwVo4mQ7b → bAIaWPpOdVxFyT4zKYnIz}/_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/5785747ad1838276.css" as="style"/><link rel="stylesheet" href="/_next/static/css/5785747ad1838276.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-db4c6e9b826ac694.js" defer=""></script><script src="/_next/static/chunks/framework-ab7ddb551c23d05a.js" defer=""></script><script src="/_next/static/chunks/main-1c0e53194ff2e726.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/5785747ad1838276.css" as="style"/><link rel="stylesheet" href="/_next/static/css/5785747ad1838276.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-db4c6e9b826ac694.js" defer=""></script><script src="/_next/static/chunks/framework-ab7ddb551c23d05a.js" defer=""></script><script src="/_next/static/chunks/main-1c0e53194ff2e726.js" defer=""></script><script src="/_next/static/chunks/pages/_app-591b62a48f2ba90f.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-1e3c6a1e687e5d63.js" defer=""></script><script src="/_next/static/bAIaWPpOdVxFyT4zKYnIz/_buildManifest.js" defer=""></script><script src="/_next/static/bAIaWPpOdVxFyT4zKYnIz/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/changelog","query":{},"buildId":"bAIaWPpOdVxFyT4zKYnIz","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/5785747ad1838276.css" as="style"/><link rel="stylesheet" href="/_next/static/css/5785747ad1838276.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-db4c6e9b826ac694.js" defer=""></script><script src="/_next/static/chunks/framework-ab7ddb551c23d05a.js" defer=""></script><script src="/_next/static/chunks/main-1c0e53194ff2e726.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/5785747ad1838276.css" as="style"/><link rel="stylesheet" href="/_next/static/css/5785747ad1838276.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-db4c6e9b826ac694.js" defer=""></script><script src="/_next/static/chunks/framework-ab7ddb551c23d05a.js" defer=""></script><script src="/_next/static/chunks/main-1c0e53194ff2e726.js" defer=""></script><script src="/_next/static/chunks/pages/_app-591b62a48f2ba90f.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-a89c34b9365e2fa3.js" defer=""></script><script src="/_next/static/chunks/658-8231c0b729e0124a.js" defer=""></script><script src="/_next/static/chunks/pages/changes-12afd5211a55c133.js" defer=""></script><script src="/_next/static/bAIaWPpOdVxFyT4zKYnIz/_buildManifest.js" defer=""></script><script src="/_next/static/bAIaWPpOdVxFyT4zKYnIz/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/changes","query":{},"buildId":"bAIaWPpOdVxFyT4zKYnIz","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/5785747ad1838276.css" as="style"/><link rel="stylesheet" href="/_next/static/css/5785747ad1838276.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-db4c6e9b826ac694.js" defer=""></script><script src="/_next/static/chunks/framework-ab7ddb551c23d05a.js" defer=""></script><script src="/_next/static/chunks/main-1c0e53194ff2e726.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/5785747ad1838276.css" as="style"/><link rel="stylesheet" href="/_next/static/css/5785747ad1838276.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-db4c6e9b826ac694.js" defer=""></script><script src="/_next/static/chunks/framework-ab7ddb551c23d05a.js" defer=""></script><script src="/_next/static/chunks/main-1c0e53194ff2e726.js" defer=""></script><script src="/_next/static/chunks/pages/_app-591b62a48f2ba90f.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-a89c34b9365e2fa3.js" defer=""></script><script src="/_next/static/chunks/867-2756f347bcd416f3.js" defer=""></script><script src="/_next/static/chunks/630-424d701624c4cd9c.js" defer=""></script><script src="/_next/static/chunks/268-b9f569b2a5b4e1c4.js" defer=""></script><script src="/_next/static/chunks/882-de1be3aece0cc601.js" defer=""></script><script src="/_next/static/chunks/pages/custom-types/%5BcustomTypeId%5D-389d1b7a492fb3e7.js" defer=""></script><script src="/_next/static/bAIaWPpOdVxFyT4zKYnIz/_buildManifest.js" defer=""></script><script src="/_next/static/bAIaWPpOdVxFyT4zKYnIz/_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":"bAIaWPpOdVxFyT4zKYnIz","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/5785747ad1838276.css" as="style"/><link rel="stylesheet" href="/_next/static/css/5785747ad1838276.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-db4c6e9b826ac694.js" defer=""></script><script src="/_next/static/chunks/framework-ab7ddb551c23d05a.js" defer=""></script><script src="/_next/static/chunks/main-1c0e53194ff2e726.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/5785747ad1838276.css" as="style"/><link rel="stylesheet" href="/_next/static/css/5785747ad1838276.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-db4c6e9b826ac694.js" defer=""></script><script src="/_next/static/chunks/framework-ab7ddb551c23d05a.js" defer=""></script><script src="/_next/static/chunks/main-1c0e53194ff2e726.js" defer=""></script><script src="/_next/static/chunks/pages/_app-591b62a48f2ba90f.js" defer=""></script><script src="/_next/static/chunks/397-e6c340070a3bcb41.js" defer=""></script><script src="/_next/static/chunks/867-2756f347bcd416f3.js" defer=""></script><script src="/_next/static/chunks/895-566153447e052c73.js" defer=""></script><script src="/_next/static/chunks/pages/custom-types-2a5fd94ee42ba593.js" defer=""></script><script src="/_next/static/bAIaWPpOdVxFyT4zKYnIz/_buildManifest.js" defer=""></script><script src="/_next/static/bAIaWPpOdVxFyT4zKYnIz/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/custom-types","query":{},"buildId":"bAIaWPpOdVxFyT4zKYnIz","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/5785747ad1838276.css" as="style"/><link rel="stylesheet" href="/_next/static/css/5785747ad1838276.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-db4c6e9b826ac694.js" defer=""></script><script src="/_next/static/chunks/framework-ab7ddb551c23d05a.js" defer=""></script><script src="/_next/static/chunks/main-1c0e53194ff2e726.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/5785747ad1838276.css" as="style"/><link rel="stylesheet" href="/_next/static/css/5785747ad1838276.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-db4c6e9b826ac694.js" defer=""></script><script src="/_next/static/chunks/framework-ab7ddb551c23d05a.js" defer=""></script><script src="/_next/static/chunks/main-1c0e53194ff2e726.js" defer=""></script><script src="/_next/static/chunks/pages/_app-591b62a48f2ba90f.js" defer=""></script><script src="/_next/static/chunks/397-e6c340070a3bcb41.js" defer=""></script><script src="/_next/static/chunks/867-2756f347bcd416f3.js" defer=""></script><script src="/_next/static/chunks/895-566153447e052c73.js" defer=""></script><script src="/_next/static/chunks/pages/index-02dd147957c8b40f.js" defer=""></script><script src="/_next/static/bAIaWPpOdVxFyT4zKYnIz/_buildManifest.js" defer=""></script><script src="/_next/static/bAIaWPpOdVxFyT4zKYnIz/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/","query":{},"buildId":"bAIaWPpOdVxFyT4zKYnIz","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/5785747ad1838276.css" as="style"/><link rel="stylesheet" href="/_next/static/css/5785747ad1838276.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-db4c6e9b826ac694.js" defer=""></script><script src="/_next/static/chunks/framework-ab7ddb551c23d05a.js" defer=""></script><script src="/_next/static/chunks/main-1c0e53194ff2e726.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/5785747ad1838276.css" as="style"/><link rel="stylesheet" href="/_next/static/css/5785747ad1838276.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-db4c6e9b826ac694.js" defer=""></script><script src="/_next/static/chunks/framework-ab7ddb551c23d05a.js" defer=""></script><script src="/_next/static/chunks/main-1c0e53194ff2e726.js" defer=""></script><script src="/_next/static/chunks/pages/_app-591b62a48f2ba90f.js" defer=""></script><script src="/_next/static/chunks/pages/labs-e6978d96b28c5621.js" defer=""></script><script src="/_next/static/bAIaWPpOdVxFyT4zKYnIz/_buildManifest.js" defer=""></script><script src="/_next/static/bAIaWPpOdVxFyT4zKYnIz/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/labs","query":{},"buildId":"bAIaWPpOdVxFyT4zKYnIz","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/5785747ad1838276.css" as="style"/><link rel="stylesheet" href="/_next/static/css/5785747ad1838276.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-db4c6e9b826ac694.js" defer=""></script><script src="/_next/static/chunks/framework-ab7ddb551c23d05a.js" defer=""></script><script src="/_next/static/chunks/main-1c0e53194ff2e726.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/5785747ad1838276.css" as="style"/><link rel="stylesheet" href="/_next/static/css/5785747ad1838276.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-db4c6e9b826ac694.js" defer=""></script><script src="/_next/static/chunks/framework-ab7ddb551c23d05a.js" defer=""></script><script src="/_next/static/chunks/main-1c0e53194ff2e726.js" defer=""></script><script src="/_next/static/chunks/pages/_app-591b62a48f2ba90f.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-a89c34b9365e2fa3.js" defer=""></script><script src="/_next/static/chunks/867-2756f347bcd416f3.js" defer=""></script><script src="/_next/static/chunks/630-424d701624c4cd9c.js" defer=""></script><script src="/_next/static/chunks/268-b9f569b2a5b4e1c4.js" defer=""></script><script src="/_next/static/chunks/882-de1be3aece0cc601.js" defer=""></script><script src="/_next/static/chunks/pages/page-types/%5BpageTypeId%5D-3589bd1f9138a97b.js" defer=""></script><script src="/_next/static/bAIaWPpOdVxFyT4zKYnIz/_buildManifest.js" defer=""></script><script src="/_next/static/bAIaWPpOdVxFyT4zKYnIz/_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":"bAIaWPpOdVxFyT4zKYnIz","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/5785747ad1838276.css" as="style"/><link rel="stylesheet" href="/_next/static/css/5785747ad1838276.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-db4c6e9b826ac694.js" defer=""></script><script src="/_next/static/chunks/framework-ab7ddb551c23d05a.js" defer=""></script><script src="/_next/static/chunks/main-1c0e53194ff2e726.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/5785747ad1838276.css" as="style"/><link rel="stylesheet" href="/_next/static/css/5785747ad1838276.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-db4c6e9b826ac694.js" defer=""></script><script src="/_next/static/chunks/framework-ab7ddb551c23d05a.js" defer=""></script><script src="/_next/static/chunks/main-1c0e53194ff2e726.js" defer=""></script><script src="/_next/static/chunks/pages/_app-591b62a48f2ba90f.js" defer=""></script><script src="/_next/static/chunks/397-e6c340070a3bcb41.js" defer=""></script><script src="/_next/static/chunks/pages/settings-df9b029574887ea1.js" defer=""></script><script src="/_next/static/bAIaWPpOdVxFyT4zKYnIz/_buildManifest.js" defer=""></script><script src="/_next/static/bAIaWPpOdVxFyT4zKYnIz/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/settings","query":{},"buildId":"bAIaWPpOdVxFyT4zKYnIz","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/5785747ad1838276.css" as="style"/><link rel="stylesheet" href="/_next/static/css/5785747ad1838276.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-db4c6e9b826ac694.js" defer=""></script><script src="/_next/static/chunks/framework-ab7ddb551c23d05a.js" defer=""></script><script src="/_next/static/chunks/main-1c0e53194ff2e726.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/5785747ad1838276.css" as="style"/><link rel="stylesheet" href="/_next/static/css/5785747ad1838276.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-db4c6e9b826ac694.js" defer=""></script><script src="/_next/static/chunks/framework-ab7ddb551c23d05a.js" defer=""></script><script src="/_next/static/chunks/main-1c0e53194ff2e726.js" defer=""></script><script src="/_next/static/chunks/pages/_app-591b62a48f2ba90f.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-6bf879f9bdaf8164.js" defer=""></script><script src="/_next/static/bAIaWPpOdVxFyT4zKYnIz/_buildManifest.js" defer=""></script><script src="/_next/static/bAIaWPpOdVxFyT4zKYnIz/_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":"bAIaWPpOdVxFyT4zKYnIz","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/5785747ad1838276.css" as="style"/><link rel="stylesheet" href="/_next/static/css/5785747ad1838276.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-db4c6e9b826ac694.js" defer=""></script><script src="/_next/static/chunks/framework-ab7ddb551c23d05a.js" defer=""></script><script src="/_next/static/chunks/main-1c0e53194ff2e726.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/5785747ad1838276.css" as="style"/><link rel="stylesheet" href="/_next/static/css/5785747ad1838276.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-db4c6e9b826ac694.js" defer=""></script><script src="/_next/static/chunks/framework-ab7ddb551c23d05a.js" defer=""></script><script src="/_next/static/chunks/main-1c0e53194ff2e726.js" defer=""></script><script src="/_next/static/chunks/pages/_app-591b62a48f2ba90f.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-a89c34b9365e2fa3.js" defer=""></script><script src="/_next/static/chunks/630-424d701624c4cd9c.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-11950d263994762e.js" defer=""></script><script src="/_next/static/bAIaWPpOdVxFyT4zKYnIz/_buildManifest.js" defer=""></script><script src="/_next/static/bAIaWPpOdVxFyT4zKYnIz/_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":"bAIaWPpOdVxFyT4zKYnIz","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/5785747ad1838276.css" as="style"/><link rel="stylesheet" href="/_next/static/css/5785747ad1838276.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-db4c6e9b826ac694.js" defer=""></script><script src="/_next/static/chunks/framework-ab7ddb551c23d05a.js" defer=""></script><script src="/_next/static/chunks/main-1c0e53194ff2e726.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/5785747ad1838276.css" as="style"/><link rel="stylesheet" href="/_next/static/css/5785747ad1838276.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-db4c6e9b826ac694.js" defer=""></script><script src="/_next/static/chunks/framework-ab7ddb551c23d05a.js" defer=""></script><script src="/_next/static/chunks/main-1c0e53194ff2e726.js" defer=""></script><script src="/_next/static/chunks/pages/_app-591b62a48f2ba90f.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-a89c34b9365e2fa3.js" defer=""></script><script src="/_next/static/chunks/658-8231c0b729e0124a.js" defer=""></script><script src="/_next/static/chunks/268-b9f569b2a5b4e1c4.js" defer=""></script><script src="/_next/static/chunks/pages/slices-aef1683623e9583c.js" defer=""></script><script src="/_next/static/bAIaWPpOdVxFyT4zKYnIz/_buildManifest.js" defer=""></script><script src="/_next/static/bAIaWPpOdVxFyT4zKYnIz/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/slices","query":{},"buildId":"bAIaWPpOdVxFyT4zKYnIz","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-multiple-improvements-rendering-logic.
|
|
3
|
+
"version": "2.16.2-alpha.jp-cr-ui-multiple-improvements-rendering-logic.4",
|
|
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-multiple-improvements-rendering-logic.
|
|
39
|
-
"start-slicemachine": "0.12.58-alpha.jp-cr-ui-multiple-improvements-rendering-logic.
|
|
38
|
+
"@slicemachine/manager": "0.24.16-alpha.jp-cr-ui-multiple-improvements-rendering-logic.5",
|
|
39
|
+
"start-slicemachine": "0.12.58-alpha.jp-cr-ui-multiple-improvements-rendering-logic.5"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@emotion/react": "11.11.1",
|
|
@@ -285,97 +285,104 @@ function TreeViewCustomType(props: TreeViewCustomTypeProps) {
|
|
|
285
285
|
customTypes,
|
|
286
286
|
} = props;
|
|
287
287
|
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
subtitle={getExposedFieldsLabel(
|
|
293
|
-
countPickedFields(customTypeFieldsCheckMap),
|
|
294
|
-
)}
|
|
295
|
-
badge={customType.format === "page" ? "Page type" : "Custom type"}
|
|
296
|
-
>
|
|
297
|
-
{mapCustomTypeStaticFields(customType, ({ fieldId, field }) => {
|
|
298
|
-
// Group field
|
|
299
|
-
|
|
300
|
-
if (isGroupField(field)) {
|
|
301
|
-
const onGroupFieldChange = (
|
|
302
|
-
newGroupFields: PickerFirstLevelGroupFieldValue,
|
|
303
|
-
) => {
|
|
304
|
-
onCustomTypeChange({
|
|
305
|
-
...customTypeFieldsCheckMap,
|
|
306
|
-
[fieldId]: { type: "group", value: newGroupFields },
|
|
307
|
-
});
|
|
308
|
-
};
|
|
309
|
-
|
|
310
|
-
const groupFieldCheckMap = customTypeFieldsCheckMap[fieldId] ?? {};
|
|
311
|
-
|
|
312
|
-
return (
|
|
313
|
-
<TreeViewFirstLevelGroupField
|
|
314
|
-
key={fieldId}
|
|
315
|
-
group={field}
|
|
316
|
-
groupId={fieldId}
|
|
317
|
-
onChange={onGroupFieldChange}
|
|
318
|
-
fieldCheckMap={
|
|
319
|
-
groupFieldCheckMap.type === "group"
|
|
320
|
-
? groupFieldCheckMap.value
|
|
321
|
-
: {}
|
|
322
|
-
}
|
|
323
|
-
customTypes={customTypes}
|
|
324
|
-
/>
|
|
325
|
-
);
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
// Content relationship field
|
|
288
|
+
const renderedFields = mapCustomTypeStaticFields(
|
|
289
|
+
customType,
|
|
290
|
+
({ fieldId, field }) => {
|
|
291
|
+
// Group field
|
|
329
292
|
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
},
|
|
340
|
-
});
|
|
341
|
-
};
|
|
293
|
+
if (isGroupField(field)) {
|
|
294
|
+
const onGroupFieldChange = (
|
|
295
|
+
newGroupFields: PickerFirstLevelGroupFieldValue,
|
|
296
|
+
) => {
|
|
297
|
+
onCustomTypeChange({
|
|
298
|
+
...customTypeFieldsCheckMap,
|
|
299
|
+
[fieldId]: { type: "group", value: newGroupFields },
|
|
300
|
+
});
|
|
301
|
+
};
|
|
342
302
|
|
|
343
|
-
|
|
303
|
+
const groupFieldCheckMap = customTypeFieldsCheckMap[fieldId] ?? {};
|
|
344
304
|
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
305
|
+
return (
|
|
306
|
+
<TreeViewFirstLevelGroupField
|
|
307
|
+
key={fieldId}
|
|
308
|
+
group={field}
|
|
309
|
+
groupId={fieldId}
|
|
310
|
+
onChange={onGroupFieldChange}
|
|
311
|
+
fieldCheckMap={
|
|
312
|
+
groupFieldCheckMap.type === "group"
|
|
313
|
+
? groupFieldCheckMap.value
|
|
314
|
+
: {}
|
|
315
|
+
}
|
|
316
|
+
customTypes={customTypes}
|
|
317
|
+
/>
|
|
318
|
+
);
|
|
319
|
+
}
|
|
360
320
|
|
|
361
|
-
|
|
321
|
+
// Content relationship field
|
|
362
322
|
|
|
363
|
-
|
|
323
|
+
if (isContentRelationshipField(field)) {
|
|
324
|
+
const onContentRelationshipFieldChange = (
|
|
325
|
+
newCrFields: PickerContentRelationshipFieldValue,
|
|
326
|
+
) => {
|
|
364
327
|
onCustomTypeChange({
|
|
365
328
|
...customTypeFieldsCheckMap,
|
|
366
|
-
[fieldId]: {
|
|
329
|
+
[fieldId]: {
|
|
330
|
+
type: "contentRelationship",
|
|
331
|
+
value: newCrFields,
|
|
332
|
+
},
|
|
367
333
|
});
|
|
368
334
|
};
|
|
369
335
|
|
|
336
|
+
const crFieldCheckMap = customTypeFieldsCheckMap[fieldId] ?? {};
|
|
337
|
+
|
|
370
338
|
return (
|
|
371
|
-
<
|
|
339
|
+
<TreeViewContentRelationshipField
|
|
372
340
|
key={fieldId}
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
341
|
+
field={field}
|
|
342
|
+
fieldId={fieldId}
|
|
343
|
+
onChange={onContentRelationshipFieldChange}
|
|
344
|
+
fieldCheckMap={
|
|
345
|
+
crFieldCheckMap.type === "contentRelationship"
|
|
346
|
+
? crFieldCheckMap.value
|
|
347
|
+
: {}
|
|
348
|
+
}
|
|
349
|
+
customTypes={customTypes}
|
|
376
350
|
/>
|
|
377
351
|
);
|
|
378
|
-
}
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
// Regular field
|
|
355
|
+
|
|
356
|
+
const onCheckedChange = (newValue: boolean) => {
|
|
357
|
+
onCustomTypeChange({
|
|
358
|
+
...customTypeFieldsCheckMap,
|
|
359
|
+
[fieldId]: { type: "checkbox", value: newValue },
|
|
360
|
+
});
|
|
361
|
+
};
|
|
362
|
+
|
|
363
|
+
return (
|
|
364
|
+
<TreeViewCheckbox
|
|
365
|
+
key={fieldId}
|
|
366
|
+
title={fieldId}
|
|
367
|
+
checked={customTypeFieldsCheckMap[fieldId]?.value === true}
|
|
368
|
+
onCheckedChange={onCheckedChange}
|
|
369
|
+
/>
|
|
370
|
+
);
|
|
371
|
+
},
|
|
372
|
+
);
|
|
373
|
+
|
|
374
|
+
if (renderedFields.length === 0) return null;
|
|
375
|
+
|
|
376
|
+
return (
|
|
377
|
+
<TreeViewSection
|
|
378
|
+
key={customType.id}
|
|
379
|
+
title={customType.id}
|
|
380
|
+
subtitle={getExposedFieldsLabel(
|
|
381
|
+
countPickedFields(customTypeFieldsCheckMap),
|
|
382
|
+
)}
|
|
383
|
+
badge={customType.format === "page" ? "Page type" : "Custom type"}
|
|
384
|
+
>
|
|
385
|
+
{renderedFields}
|
|
379
386
|
</TreeViewSection>
|
|
380
387
|
);
|
|
381
388
|
}
|
|
@@ -427,64 +434,70 @@ function TreeViewContentRelationshipField(
|
|
|
427
434
|
|
|
428
435
|
const nestedCtFieldsCheckMap = crFieldsCheckMap[customType.id] ?? {};
|
|
429
436
|
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
subtitle={getExposedFieldsLabel(
|
|
435
|
-
countPickedFields(nestedCtFieldsCheckMap),
|
|
436
|
-
)}
|
|
437
|
-
badge={customType.format === "page" ? "Page type" : "Custom type"}
|
|
438
|
-
>
|
|
439
|
-
{mapCustomTypeStaticFields(customType, ({ fieldId, field }) => {
|
|
440
|
-
// Group field
|
|
441
|
-
|
|
442
|
-
if (isGroupField(field)) {
|
|
443
|
-
const onGroupFieldsChange = (
|
|
444
|
-
newGroupFields: PickerLeafGroupFieldValue,
|
|
445
|
-
) => {
|
|
446
|
-
onNestedCustomTypeChange({
|
|
447
|
-
...nestedCtFieldsCheckMap,
|
|
448
|
-
[fieldId]: { type: "group", value: newGroupFields },
|
|
449
|
-
});
|
|
450
|
-
};
|
|
451
|
-
|
|
452
|
-
const groupFieldCheckMap =
|
|
453
|
-
nestedCtFieldsCheckMap[fieldId] ?? {};
|
|
454
|
-
|
|
455
|
-
return (
|
|
456
|
-
<TreeViewLeafGroupField
|
|
457
|
-
key={fieldId}
|
|
458
|
-
group={field}
|
|
459
|
-
groupId={fieldId}
|
|
460
|
-
onChange={onGroupFieldsChange}
|
|
461
|
-
fieldCheckMap={
|
|
462
|
-
groupFieldCheckMap.type === "group"
|
|
463
|
-
? groupFieldCheckMap.value
|
|
464
|
-
: {}
|
|
465
|
-
}
|
|
466
|
-
/>
|
|
467
|
-
);
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
// Regular field
|
|
437
|
+
const renderedFields = mapCustomTypeStaticFields(
|
|
438
|
+
customType,
|
|
439
|
+
({ fieldId, field }) => {
|
|
440
|
+
// Group field
|
|
471
441
|
|
|
472
|
-
|
|
442
|
+
if (isGroupField(field)) {
|
|
443
|
+
const onGroupFieldsChange = (
|
|
444
|
+
newGroupFields: PickerLeafGroupFieldValue,
|
|
445
|
+
) => {
|
|
473
446
|
onNestedCustomTypeChange({
|
|
474
447
|
...nestedCtFieldsCheckMap,
|
|
475
|
-
[fieldId]: { type: "
|
|
448
|
+
[fieldId]: { type: "group", value: newGroupFields },
|
|
476
449
|
});
|
|
477
450
|
};
|
|
478
451
|
|
|
452
|
+
const groupFieldCheckMap = nestedCtFieldsCheckMap[fieldId] ?? {};
|
|
453
|
+
|
|
479
454
|
return (
|
|
480
|
-
<
|
|
455
|
+
<TreeViewLeafGroupField
|
|
481
456
|
key={fieldId}
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
457
|
+
group={field}
|
|
458
|
+
groupId={fieldId}
|
|
459
|
+
onChange={onGroupFieldsChange}
|
|
460
|
+
fieldCheckMap={
|
|
461
|
+
groupFieldCheckMap.type === "group"
|
|
462
|
+
? groupFieldCheckMap.value
|
|
463
|
+
: {}
|
|
464
|
+
}
|
|
485
465
|
/>
|
|
486
466
|
);
|
|
487
|
-
}
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
// Regular field
|
|
470
|
+
|
|
471
|
+
const onCheckedChange = (newChecked: boolean) => {
|
|
472
|
+
onNestedCustomTypeChange({
|
|
473
|
+
...nestedCtFieldsCheckMap,
|
|
474
|
+
[fieldId]: { type: "checkbox", value: newChecked },
|
|
475
|
+
});
|
|
476
|
+
};
|
|
477
|
+
|
|
478
|
+
return (
|
|
479
|
+
<TreeViewCheckbox
|
|
480
|
+
key={fieldId}
|
|
481
|
+
title={fieldId}
|
|
482
|
+
checked={nestedCtFieldsCheckMap[fieldId]?.value === true}
|
|
483
|
+
onCheckedChange={onCheckedChange}
|
|
484
|
+
/>
|
|
485
|
+
);
|
|
486
|
+
},
|
|
487
|
+
);
|
|
488
|
+
|
|
489
|
+
if (renderedFields.length === 0) return null;
|
|
490
|
+
|
|
491
|
+
return (
|
|
492
|
+
<TreeViewSection
|
|
493
|
+
key={customType.id}
|
|
494
|
+
title={customType.id}
|
|
495
|
+
subtitle={getExposedFieldsLabel(
|
|
496
|
+
countPickedFields(nestedCtFieldsCheckMap),
|
|
497
|
+
)}
|
|
498
|
+
badge={customType.format === "page" ? "Page type" : "Custom type"}
|
|
499
|
+
>
|
|
500
|
+
{renderedFields}
|
|
488
501
|
</TreeViewSection>
|
|
489
502
|
);
|
|
490
503
|
})}
|
|
@@ -509,6 +522,26 @@ function TreeViewLeafGroupField(props: TreeViewLeafGroupFieldProps) {
|
|
|
509
522
|
|
|
510
523
|
if (!group.config?.fields) return null;
|
|
511
524
|
|
|
525
|
+
const renderedFields = mapGroupFields(group, ({ fieldId }) => {
|
|
526
|
+
const onCheckedChange = (newChecked: boolean) => {
|
|
527
|
+
onGroupFieldChange({
|
|
528
|
+
...groupFieldsCheckMap,
|
|
529
|
+
[fieldId]: { type: "checkbox", value: newChecked },
|
|
530
|
+
});
|
|
531
|
+
};
|
|
532
|
+
|
|
533
|
+
return (
|
|
534
|
+
<TreeViewCheckbox
|
|
535
|
+
key={fieldId}
|
|
536
|
+
title={fieldId}
|
|
537
|
+
checked={groupFieldsCheckMap[fieldId]?.value === true}
|
|
538
|
+
onCheckedChange={onCheckedChange}
|
|
539
|
+
/>
|
|
540
|
+
);
|
|
541
|
+
});
|
|
542
|
+
|
|
543
|
+
if (renderedFields.length === 0) return null;
|
|
544
|
+
|
|
512
545
|
return (
|
|
513
546
|
<TreeViewSection
|
|
514
547
|
key={groupId}
|
|
@@ -516,23 +549,7 @@ function TreeViewLeafGroupField(props: TreeViewLeafGroupFieldProps) {
|
|
|
516
549
|
subtitle={getExposedFieldsLabel(countPickedFields(groupFieldsCheckMap))}
|
|
517
550
|
badge="Group"
|
|
518
551
|
>
|
|
519
|
-
{
|
|
520
|
-
const onCheckedChange = (newChecked: boolean) => {
|
|
521
|
-
onGroupFieldChange({
|
|
522
|
-
...groupFieldsCheckMap,
|
|
523
|
-
[fieldId]: { type: "checkbox", value: newChecked },
|
|
524
|
-
});
|
|
525
|
-
};
|
|
526
|
-
|
|
527
|
-
return (
|
|
528
|
-
<TreeViewCheckbox
|
|
529
|
-
key={fieldId}
|
|
530
|
-
title={fieldId}
|
|
531
|
-
checked={groupFieldsCheckMap[fieldId]?.value === true}
|
|
532
|
-
onCheckedChange={onCheckedChange}
|
|
533
|
-
/>
|
|
534
|
-
);
|
|
535
|
-
})}
|
|
552
|
+
{renderedFields}
|
|
536
553
|
</TreeViewSection>
|
|
537
554
|
);
|
|
538
555
|
}
|
|
File without changes
|