slice-machine-ui 2.16.2-beta.15 → 2.16.2-beta.16
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/{CP6twGN-7ojnXclA0o6Us → -0bsRJZWk8rQOiwtaIoUw}/_buildManifest.js +1 -1
- package/out/_next/static/chunks/630-394ddfa25279a303.js +1 -0
- package/out/_next/static/chunks/pages/{_app-1bf90c08be6919d1.js → _app-84fe296367a253fa.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 +85 -82
- package/out/_next/static/chunks/630-8efab4cfe04dfb06.js +0 -1
- /package/out/_next/static/{CP6twGN-7ojnXclA0o6Us → -0bsRJZWk8rQOiwtaIoUw}/_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-84fe296367a253fa.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/-0bsRJZWk8rQOiwtaIoUw/_buildManifest.js" defer=""></script><script src="/_next/static/-0bsRJZWk8rQOiwtaIoUw/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/changelog","query":{},"buildId":"-0bsRJZWk8rQOiwtaIoUw","runtimeConfig":{"sentryEnvironment":"beta"},"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-84fe296367a253fa.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/-0bsRJZWk8rQOiwtaIoUw/_buildManifest.js" defer=""></script><script src="/_next/static/-0bsRJZWk8rQOiwtaIoUw/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/changes","query":{},"buildId":"-0bsRJZWk8rQOiwtaIoUw","runtimeConfig":{"sentryEnvironment":"beta"},"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-84fe296367a253fa.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-394ddfa25279a303.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/-0bsRJZWk8rQOiwtaIoUw/_buildManifest.js" defer=""></script><script src="/_next/static/-0bsRJZWk8rQOiwtaIoUw/_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":"-0bsRJZWk8rQOiwtaIoUw","runtimeConfig":{"sentryEnvironment":"beta"},"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-84fe296367a253fa.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/-0bsRJZWk8rQOiwtaIoUw/_buildManifest.js" defer=""></script><script src="/_next/static/-0bsRJZWk8rQOiwtaIoUw/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/custom-types","query":{},"buildId":"-0bsRJZWk8rQOiwtaIoUw","runtimeConfig":{"sentryEnvironment":"beta"},"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-84fe296367a253fa.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/-0bsRJZWk8rQOiwtaIoUw/_buildManifest.js" defer=""></script><script src="/_next/static/-0bsRJZWk8rQOiwtaIoUw/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/","query":{},"buildId":"-0bsRJZWk8rQOiwtaIoUw","runtimeConfig":{"sentryEnvironment":"beta"},"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-84fe296367a253fa.js" defer=""></script><script src="/_next/static/chunks/pages/labs-9630bfb1005be02b.js" defer=""></script><script src="/_next/static/-0bsRJZWk8rQOiwtaIoUw/_buildManifest.js" defer=""></script><script src="/_next/static/-0bsRJZWk8rQOiwtaIoUw/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/labs","query":{},"buildId":"-0bsRJZWk8rQOiwtaIoUw","runtimeConfig":{"sentryEnvironment":"beta"},"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-84fe296367a253fa.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-394ddfa25279a303.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/-0bsRJZWk8rQOiwtaIoUw/_buildManifest.js" defer=""></script><script src="/_next/static/-0bsRJZWk8rQOiwtaIoUw/_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":"-0bsRJZWk8rQOiwtaIoUw","runtimeConfig":{"sentryEnvironment":"beta"},"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-84fe296367a253fa.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/-0bsRJZWk8rQOiwtaIoUw/_buildManifest.js" defer=""></script><script src="/_next/static/-0bsRJZWk8rQOiwtaIoUw/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/settings","query":{},"buildId":"-0bsRJZWk8rQOiwtaIoUw","runtimeConfig":{"sentryEnvironment":"beta"},"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-84fe296367a253fa.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/-0bsRJZWk8rQOiwtaIoUw/_buildManifest.js" defer=""></script><script src="/_next/static/-0bsRJZWk8rQOiwtaIoUw/_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":"-0bsRJZWk8rQOiwtaIoUw","runtimeConfig":{"sentryEnvironment":"beta"},"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-84fe296367a253fa.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-394ddfa25279a303.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/-0bsRJZWk8rQOiwtaIoUw/_buildManifest.js" defer=""></script><script src="/_next/static/-0bsRJZWk8rQOiwtaIoUw/_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":"-0bsRJZWk8rQOiwtaIoUw","runtimeConfig":{"sentryEnvironment":"beta"},"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-84fe296367a253fa.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/-0bsRJZWk8rQOiwtaIoUw/_buildManifest.js" defer=""></script><script src="/_next/static/-0bsRJZWk8rQOiwtaIoUw/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/slices","query":{},"buildId":"-0bsRJZWk8rQOiwtaIoUw","runtimeConfig":{"sentryEnvironment":"beta"},"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-beta.
|
|
3
|
+
"version": "2.16.2-beta.16",
|
|
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-beta.
|
|
39
|
-
"start-slicemachine": "0.12.58-beta.
|
|
38
|
+
"@slicemachine/manager": "0.24.16-beta.16",
|
|
39
|
+
"start-slicemachine": "0.12.58-beta.16"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@emotion/react": "11.11.1",
|
|
@@ -560,9 +560,9 @@ function TreeViewCustomType(props: TreeViewCustomTypeProps) {
|
|
|
560
560
|
);
|
|
561
561
|
}
|
|
562
562
|
|
|
563
|
-
// Content relationship field
|
|
563
|
+
// Content relationship field with custom types
|
|
564
564
|
|
|
565
|
-
if (
|
|
565
|
+
if (isContentRelationshipFieldWithSingleCustomtype(field)) {
|
|
566
566
|
const onContentRelationshipFieldChange = (
|
|
567
567
|
newCrFields: PickerContentRelationshipFieldValue,
|
|
568
568
|
) => {
|
|
@@ -614,23 +614,23 @@ function TreeViewCustomType(props: TreeViewCustomTypeProps) {
|
|
|
614
614
|
);
|
|
615
615
|
|
|
616
616
|
const exposedFieldsCount = countPickedFields(customTypeFieldsCheckMap);
|
|
617
|
+
|
|
617
618
|
return (
|
|
618
619
|
<TreeViewSection
|
|
619
620
|
key={customType.id}
|
|
620
621
|
title={customType.id}
|
|
621
622
|
subtitle={
|
|
622
623
|
exposedFieldsCount.pickedFields > 0
|
|
623
|
-
?
|
|
624
|
+
? getPickedFieldsLabel(
|
|
625
|
+
exposedFieldsCount.pickedFields,
|
|
626
|
+
"returned in the API",
|
|
627
|
+
)
|
|
624
628
|
: "(No fields returned in the API)"
|
|
625
629
|
}
|
|
626
630
|
badge={getTypeFormatLabel(customType.format)}
|
|
627
631
|
defaultOpen
|
|
628
632
|
>
|
|
629
|
-
{renderedFields.length > 0 ?
|
|
630
|
-
renderedFields
|
|
631
|
-
) : (
|
|
632
|
-
<Text color="grey11">No available fields to select</Text>
|
|
633
|
-
)}
|
|
633
|
+
{renderedFields.length > 0 ? renderedFields : <NoFieldsAvailable />}
|
|
634
634
|
</TreeViewSection>
|
|
635
635
|
);
|
|
636
636
|
}
|
|
@@ -666,7 +666,7 @@ function TreeViewContentRelationshipField(
|
|
|
666
666
|
return (
|
|
667
667
|
<TreeViewSection
|
|
668
668
|
title={fieldId}
|
|
669
|
-
subtitle={
|
|
669
|
+
subtitle={getPickedFieldsLabel(
|
|
670
670
|
countPickedFields(crFieldsCheckMap).pickedFields,
|
|
671
671
|
)}
|
|
672
672
|
>
|
|
@@ -735,18 +735,16 @@ function TreeViewContentRelationshipField(
|
|
|
735
735
|
},
|
|
736
736
|
);
|
|
737
737
|
|
|
738
|
-
if (renderedFields.length === 0) return null;
|
|
739
|
-
|
|
740
738
|
return (
|
|
741
739
|
<TreeViewSection
|
|
742
740
|
key={customType.id}
|
|
743
741
|
title={customType.id}
|
|
744
|
-
subtitle={
|
|
742
|
+
subtitle={getPickedFieldsLabel(
|
|
745
743
|
countPickedFields(nestedCtFieldsCheckMap).pickedFields,
|
|
746
744
|
)}
|
|
747
745
|
badge={getTypeFormatLabel(customType.format)}
|
|
748
746
|
>
|
|
749
|
-
{renderedFields}
|
|
747
|
+
{renderedFields.length > 0 ? renderedFields : <NoFieldsAvailable />}
|
|
750
748
|
</TreeViewSection>
|
|
751
749
|
);
|
|
752
750
|
})}
|
|
@@ -754,6 +752,10 @@ function TreeViewContentRelationshipField(
|
|
|
754
752
|
);
|
|
755
753
|
}
|
|
756
754
|
|
|
755
|
+
function NoFieldsAvailable() {
|
|
756
|
+
return <Text color="grey11">No available fields to select</Text>;
|
|
757
|
+
}
|
|
758
|
+
|
|
757
759
|
interface TreeViewLeafGroupFieldProps {
|
|
758
760
|
group: Group;
|
|
759
761
|
groupId: string;
|
|
@@ -789,18 +791,16 @@ function TreeViewLeafGroupField(props: TreeViewLeafGroupFieldProps) {
|
|
|
789
791
|
);
|
|
790
792
|
});
|
|
791
793
|
|
|
792
|
-
if (renderedFields.length === 0) return null;
|
|
793
|
-
|
|
794
794
|
return (
|
|
795
795
|
<TreeViewSection
|
|
796
796
|
key={groupId}
|
|
797
797
|
title={groupId}
|
|
798
|
-
subtitle={
|
|
798
|
+
subtitle={getPickedFieldsLabel(
|
|
799
799
|
countPickedFields(groupFieldsCheckMap).pickedFields,
|
|
800
800
|
)}
|
|
801
801
|
badge="Group"
|
|
802
802
|
>
|
|
803
|
-
{renderedFields}
|
|
803
|
+
{renderedFields.length > 0 ? renderedFields : <NoFieldsAvailable />}
|
|
804
804
|
</TreeViewSection>
|
|
805
805
|
);
|
|
806
806
|
}
|
|
@@ -824,76 +824,76 @@ function TreeViewFirstLevelGroupField(
|
|
|
824
824
|
allCustomTypes,
|
|
825
825
|
} = props;
|
|
826
826
|
|
|
827
|
-
|
|
827
|
+
const renderedFields = getGroupFields(group).map(({ fieldId, field }) => {
|
|
828
|
+
// Content relationship field with custom types
|
|
829
|
+
|
|
830
|
+
if (isContentRelationshipFieldWithSingleCustomtype(field)) {
|
|
831
|
+
const onContentRelationshipFieldChange = (
|
|
832
|
+
newCrFields: PickerContentRelationshipFieldValue,
|
|
833
|
+
) => {
|
|
834
|
+
onGroupFieldChange({
|
|
835
|
+
...groupFieldsCheckMap,
|
|
836
|
+
[fieldId]: {
|
|
837
|
+
type: "contentRelationship",
|
|
838
|
+
value: newCrFields,
|
|
839
|
+
},
|
|
840
|
+
});
|
|
841
|
+
};
|
|
842
|
+
|
|
843
|
+
const crFieldCheckMap = groupFieldsCheckMap[fieldId] ?? {};
|
|
844
|
+
|
|
845
|
+
return (
|
|
846
|
+
<TreeViewContentRelationshipField
|
|
847
|
+
key={fieldId}
|
|
848
|
+
field={field}
|
|
849
|
+
fieldId={fieldId}
|
|
850
|
+
fieldCheckMap={
|
|
851
|
+
crFieldCheckMap.type === "contentRelationship"
|
|
852
|
+
? crFieldCheckMap.value
|
|
853
|
+
: {}
|
|
854
|
+
}
|
|
855
|
+
onChange={onContentRelationshipFieldChange}
|
|
856
|
+
allCustomTypes={allCustomTypes}
|
|
857
|
+
/>
|
|
858
|
+
);
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
// Regular field
|
|
862
|
+
|
|
863
|
+
const onCheckedChange = (newChecked: boolean) => {
|
|
864
|
+
onGroupFieldChange({
|
|
865
|
+
...groupFieldsCheckMap,
|
|
866
|
+
[fieldId]: { type: "checkbox", value: newChecked },
|
|
867
|
+
});
|
|
868
|
+
};
|
|
869
|
+
|
|
870
|
+
return (
|
|
871
|
+
<TreeViewCheckbox
|
|
872
|
+
key={fieldId}
|
|
873
|
+
title={fieldId}
|
|
874
|
+
checked={groupFieldsCheckMap[fieldId]?.value === true}
|
|
875
|
+
onCheckedChange={onCheckedChange}
|
|
876
|
+
/>
|
|
877
|
+
);
|
|
878
|
+
});
|
|
828
879
|
|
|
829
880
|
return (
|
|
830
881
|
<TreeViewSection
|
|
831
882
|
key={groupId}
|
|
832
883
|
title={groupId}
|
|
833
|
-
subtitle={
|
|
884
|
+
subtitle={getPickedFieldsLabel(
|
|
834
885
|
countPickedFields(groupFieldsCheckMap).pickedFields,
|
|
835
886
|
)}
|
|
836
887
|
badge="Group"
|
|
837
888
|
>
|
|
838
|
-
{
|
|
839
|
-
if (isContentRelationshipField(field)) {
|
|
840
|
-
const onContentRelationshipFieldChange = (
|
|
841
|
-
newCrFields: PickerContentRelationshipFieldValue,
|
|
842
|
-
) => {
|
|
843
|
-
onGroupFieldChange({
|
|
844
|
-
...groupFieldsCheckMap,
|
|
845
|
-
[fieldId]: {
|
|
846
|
-
type: "contentRelationship",
|
|
847
|
-
value: newCrFields,
|
|
848
|
-
},
|
|
849
|
-
});
|
|
850
|
-
};
|
|
851
|
-
|
|
852
|
-
const crFieldCheckMap = groupFieldsCheckMap[fieldId] ?? {};
|
|
853
|
-
|
|
854
|
-
return (
|
|
855
|
-
<TreeViewContentRelationshipField
|
|
856
|
-
key={fieldId}
|
|
857
|
-
field={field}
|
|
858
|
-
fieldId={fieldId}
|
|
859
|
-
fieldCheckMap={
|
|
860
|
-
crFieldCheckMap.type === "contentRelationship"
|
|
861
|
-
? crFieldCheckMap.value
|
|
862
|
-
: {}
|
|
863
|
-
}
|
|
864
|
-
onChange={onContentRelationshipFieldChange}
|
|
865
|
-
allCustomTypes={allCustomTypes}
|
|
866
|
-
/>
|
|
867
|
-
);
|
|
868
|
-
}
|
|
869
|
-
|
|
870
|
-
const onCheckedChange = (newChecked: boolean) => {
|
|
871
|
-
onGroupFieldChange({
|
|
872
|
-
...groupFieldsCheckMap,
|
|
873
|
-
[fieldId]: { type: "checkbox", value: newChecked },
|
|
874
|
-
});
|
|
875
|
-
};
|
|
876
|
-
|
|
877
|
-
return (
|
|
878
|
-
<TreeViewCheckbox
|
|
879
|
-
key={fieldId}
|
|
880
|
-
title={fieldId}
|
|
881
|
-
checked={groupFieldsCheckMap[fieldId]?.value === true}
|
|
882
|
-
onCheckedChange={onCheckedChange}
|
|
883
|
-
/>
|
|
884
|
-
);
|
|
885
|
-
})}
|
|
889
|
+
{renderedFields.length > 0 ? renderedFields : <NoFieldsAvailable />}
|
|
886
890
|
</TreeViewSection>
|
|
887
891
|
);
|
|
888
892
|
}
|
|
889
893
|
|
|
890
|
-
function
|
|
894
|
+
function getPickedFieldsLabel(count: number, suffix = "selected") {
|
|
891
895
|
if (count === 0) return undefined;
|
|
892
|
-
return `(${count} ${pluralize(
|
|
893
|
-
count,
|
|
894
|
-
"field",
|
|
895
|
-
"fields",
|
|
896
|
-
)} returned in the API)`;
|
|
896
|
+
return `(${count} ${pluralize(count, "field", "fields")} ${suffix})`;
|
|
897
897
|
}
|
|
898
898
|
|
|
899
899
|
function getTypeFormatLabel(format: CustomType["format"]) {
|
|
@@ -931,15 +931,12 @@ function useCustomTypes(value: LinkCustomtypes | undefined): {
|
|
|
931
931
|
}
|
|
932
932
|
|
|
933
933
|
function resolveContentRelationshipCustomTypes(
|
|
934
|
-
|
|
934
|
+
linkCustomtypes: LinkCustomtypes,
|
|
935
935
|
localCustomTypes: CustomType[],
|
|
936
936
|
): CustomType[] {
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
return localCustomTypes.find((ct) => ct.id === customType.id) ?? [];
|
|
937
|
+
return linkCustomtypes.flatMap((linkCustomtype) => {
|
|
938
|
+
return localCustomTypes.find((ct) => ct.id === getId(linkCustomtype)) ?? [];
|
|
940
939
|
});
|
|
941
|
-
|
|
942
|
-
return fields;
|
|
943
940
|
}
|
|
944
941
|
|
|
945
942
|
/**
|
|
@@ -1232,13 +1229,18 @@ export function countPickedFields(
|
|
|
1232
1229
|
);
|
|
1233
1230
|
}
|
|
1234
1231
|
|
|
1235
|
-
|
|
1232
|
+
/**
|
|
1233
|
+
* Check if the field is a Content Relationship Link with a **single** custom
|
|
1234
|
+
* type. CRs with multiple custom types are not currently supported (legacy).
|
|
1235
|
+
*/
|
|
1236
|
+
function isContentRelationshipFieldWithSingleCustomtype(
|
|
1236
1237
|
field: NestableWidget | Group,
|
|
1237
1238
|
): field is Link {
|
|
1238
|
-
return (
|
|
1239
|
+
return !!(
|
|
1239
1240
|
field.type === "Link" &&
|
|
1240
1241
|
field.config?.select === "document" &&
|
|
1241
|
-
field.config?.customtypes
|
|
1242
|
+
field.config?.customtypes &&
|
|
1243
|
+
field.config.customtypes.length === 1
|
|
1242
1244
|
);
|
|
1243
1245
|
}
|
|
1244
1246
|
|
|
@@ -1269,6 +1271,7 @@ function getGroupFields(group: Group) {
|
|
|
1269
1271
|
return { fieldId, field: field as NestableWidget };
|
|
1270
1272
|
});
|
|
1271
1273
|
}
|
|
1274
|
+
|
|
1272
1275
|
/** If it's a string, return it, otherwise return the `id` property. */
|
|
1273
1276
|
function getId<T extends string | { id: string }>(customType: T): string {
|
|
1274
1277
|
if (typeof customType === "string") return customType;
|