slice-machine-ui 2.16.2-alpha.xru-update-packages-for-cr.1 → 2.16.2-alpha.xru-allow-only-one-ct-in-cr.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/404.html +1 -1
- package/out/_next/static/{hmRbLPNEIBBj0tGCijCAk → 87tXF0WZlw5dKkWm9rMCx}/_buildManifest.js +1 -1
- package/out/_next/static/chunks/{630-c8d4ab30710194ba.js → 630-59bae5309574bc38.js} +1 -1
- package/out/_next/static/chunks/pages/{_app-14ebc02e69482136.js → _app-03bcaf562c309de9.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/ContentRelationshipFieldPicker.tsx +46 -67
- /package/out/_next/static/{hmRbLPNEIBBj0tGCijCAk → 87tXF0WZlw5dKkWm9rMCx}/_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-03bcaf562c309de9.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/87tXF0WZlw5dKkWm9rMCx/_buildManifest.js" defer=""></script><script src="/_next/static/87tXF0WZlw5dKkWm9rMCx/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/changelog","query":{},"buildId":"87tXF0WZlw5dKkWm9rMCx","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-03bcaf562c309de9.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/87tXF0WZlw5dKkWm9rMCx/_buildManifest.js" defer=""></script><script src="/_next/static/87tXF0WZlw5dKkWm9rMCx/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/changes","query":{},"buildId":"87tXF0WZlw5dKkWm9rMCx","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-03bcaf562c309de9.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-59bae5309574bc38.js" defer=""></script><script src="/_next/static/chunks/268-6a9214b97195af9c.js" defer=""></script><script src="/_next/static/chunks/882-53d88aa0b7e3ffeb.js" defer=""></script><script src="/_next/static/chunks/pages/custom-types/%5BcustomTypeId%5D-a408f5a660e096a6.js" defer=""></script><script src="/_next/static/87tXF0WZlw5dKkWm9rMCx/_buildManifest.js" defer=""></script><script src="/_next/static/87tXF0WZlw5dKkWm9rMCx/_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":"87tXF0WZlw5dKkWm9rMCx","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-03bcaf562c309de9.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/87tXF0WZlw5dKkWm9rMCx/_buildManifest.js" defer=""></script><script src="/_next/static/87tXF0WZlw5dKkWm9rMCx/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/custom-types","query":{},"buildId":"87tXF0WZlw5dKkWm9rMCx","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-03bcaf562c309de9.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/87tXF0WZlw5dKkWm9rMCx/_buildManifest.js" defer=""></script><script src="/_next/static/87tXF0WZlw5dKkWm9rMCx/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/","query":{},"buildId":"87tXF0WZlw5dKkWm9rMCx","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-03bcaf562c309de9.js" defer=""></script><script src="/_next/static/chunks/pages/labs-9630bfb1005be02b.js" defer=""></script><script src="/_next/static/87tXF0WZlw5dKkWm9rMCx/_buildManifest.js" defer=""></script><script src="/_next/static/87tXF0WZlw5dKkWm9rMCx/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/labs","query":{},"buildId":"87tXF0WZlw5dKkWm9rMCx","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-03bcaf562c309de9.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-59bae5309574bc38.js" defer=""></script><script src="/_next/static/chunks/268-6a9214b97195af9c.js" defer=""></script><script src="/_next/static/chunks/882-53d88aa0b7e3ffeb.js" defer=""></script><script src="/_next/static/chunks/pages/page-types/%5BpageTypeId%5D-f5e851ebe35049a8.js" defer=""></script><script src="/_next/static/87tXF0WZlw5dKkWm9rMCx/_buildManifest.js" defer=""></script><script src="/_next/static/87tXF0WZlw5dKkWm9rMCx/_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":"87tXF0WZlw5dKkWm9rMCx","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-03bcaf562c309de9.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/87tXF0WZlw5dKkWm9rMCx/_buildManifest.js" defer=""></script><script src="/_next/static/87tXF0WZlw5dKkWm9rMCx/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/settings","query":{},"buildId":"87tXF0WZlw5dKkWm9rMCx","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-03bcaf562c309de9.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/87tXF0WZlw5dKkWm9rMCx/_buildManifest.js" defer=""></script><script src="/_next/static/87tXF0WZlw5dKkWm9rMCx/_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":"87tXF0WZlw5dKkWm9rMCx","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-03bcaf562c309de9.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-59bae5309574bc38.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-94c9cad9da2c3089.js" defer=""></script><script src="/_next/static/87tXF0WZlw5dKkWm9rMCx/_buildManifest.js" defer=""></script><script src="/_next/static/87tXF0WZlw5dKkWm9rMCx/_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":"87tXF0WZlw5dKkWm9rMCx","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-03bcaf562c309de9.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/87tXF0WZlw5dKkWm9rMCx/_buildManifest.js" defer=""></script><script src="/_next/static/87tXF0WZlw5dKkWm9rMCx/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/slices","query":{},"buildId":"87tXF0WZlw5dKkWm9rMCx","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.xru-
|
|
3
|
+
"version": "2.16.2-alpha.xru-allow-only-one-ct-in-cr.1",
|
|
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.xru-
|
|
39
|
-
"start-slicemachine": "0.12.58-alpha.xru-
|
|
38
|
+
"@slicemachine/manager": "0.24.16-alpha.xru-allow-only-one-ct-in-cr.1",
|
|
39
|
+
"start-slicemachine": "0.12.58-alpha.xru-allow-only-one-ct-in-cr.1"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@emotion/react": "11.11.1",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { pluralize } from "@prismicio/editor-support/String";
|
|
2
2
|
import {
|
|
3
|
+
Alert,
|
|
3
4
|
AnimatedSuspense,
|
|
4
5
|
Badge,
|
|
5
6
|
Box,
|
|
@@ -26,7 +27,7 @@ import {
|
|
|
26
27
|
LinkConfig,
|
|
27
28
|
NestableWidget,
|
|
28
29
|
} from "@prismicio/types-internal/lib/customtypes";
|
|
29
|
-
import { useEffect
|
|
30
|
+
import { useEffect } from "react";
|
|
30
31
|
|
|
31
32
|
import { ErrorBoundary } from "@/ErrorBoundary";
|
|
32
33
|
import {
|
|
@@ -260,10 +261,7 @@ function ContentRelationshipFieldPickerContent(
|
|
|
260
261
|
props: ContentRelationshipFieldPickerProps,
|
|
261
262
|
) {
|
|
262
263
|
const { value, onChange } = props;
|
|
263
|
-
const { allCustomTypes,
|
|
264
|
-
useCustomTypes(value);
|
|
265
|
-
|
|
266
|
-
const [isNewType, setIsNewType] = useState(false);
|
|
264
|
+
const { allCustomTypes, pickedCustomTypes } = useCustomTypes(value);
|
|
267
265
|
|
|
268
266
|
const fieldCheckMap = value
|
|
269
267
|
? convertLinkCustomtypesToFieldCheckMap(value)
|
|
@@ -285,8 +283,6 @@ function ContentRelationshipFieldPickerContent(
|
|
|
285
283
|
}
|
|
286
284
|
|
|
287
285
|
function addCustomType(id: string) {
|
|
288
|
-
setIsNewType(true);
|
|
289
|
-
|
|
290
286
|
const newFields = value ? [...value, id] : [id];
|
|
291
287
|
onChange(newFields);
|
|
292
288
|
}
|
|
@@ -315,15 +311,23 @@ function ContentRelationshipFieldPickerContent(
|
|
|
315
311
|
<>
|
|
316
312
|
<Box flexDirection="column">
|
|
317
313
|
<Text variant="h4" color="grey12">
|
|
318
|
-
Allowed
|
|
314
|
+
Allowed type
|
|
319
315
|
</Text>
|
|
320
316
|
<Text color="grey11">
|
|
321
|
-
Restrict the selection to specific
|
|
317
|
+
Restrict the selection to a specific type your content editors
|
|
322
318
|
can link to in the Page Builder.
|
|
323
319
|
<br />
|
|
324
|
-
For
|
|
320
|
+
For the selected type, choose which fields to expose in the API
|
|
325
321
|
response.
|
|
326
322
|
</Text>
|
|
323
|
+
{pickedCustomTypes.length > 1 && (
|
|
324
|
+
<Box margin={{ block: 12 }}>
|
|
325
|
+
<Alert
|
|
326
|
+
color="warn"
|
|
327
|
+
subtitle="This field is using the legacy types selection feature. We recommend having only one type selected in order to switch to the new type selection feature."
|
|
328
|
+
/>
|
|
329
|
+
</Box>
|
|
330
|
+
)}
|
|
327
331
|
</Box>
|
|
328
332
|
{pickedCustomTypes.map((customType) => (
|
|
329
333
|
<Box
|
|
@@ -336,17 +340,21 @@ function ContentRelationshipFieldPickerContent(
|
|
|
336
340
|
backgroundColor="white"
|
|
337
341
|
justifyContent="space-between"
|
|
338
342
|
>
|
|
339
|
-
|
|
340
|
-
<
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
343
|
+
{pickedCustomTypes.length > 1 ? (
|
|
344
|
+
<Text>{customType.id}</Text>
|
|
345
|
+
) : (
|
|
346
|
+
<TreeView>
|
|
347
|
+
<TreeViewCustomType
|
|
348
|
+
customType={customType}
|
|
349
|
+
onChange={(value) =>
|
|
350
|
+
onCustomTypesChange(customType.id, value)
|
|
351
|
+
}
|
|
352
|
+
fieldCheckMap={fieldCheckMap[customType.id] ?? {}}
|
|
353
|
+
allCustomTypes={allCustomTypes}
|
|
354
|
+
/>
|
|
355
|
+
</TreeView>
|
|
356
|
+
)}
|
|
357
|
+
|
|
350
358
|
<IconButton
|
|
351
359
|
icon="close"
|
|
352
360
|
size="small"
|
|
@@ -356,17 +364,9 @@ function ContentRelationshipFieldPickerContent(
|
|
|
356
364
|
/>
|
|
357
365
|
</Box>
|
|
358
366
|
))}
|
|
359
|
-
<AddTypeButton
|
|
360
|
-
onSelect={addCustomType}
|
|
361
|
-
pickedCustomTypes={pickedCustomTypes}
|
|
362
|
-
availableCustomTypes={availableCustomTypes}
|
|
363
|
-
/>
|
|
364
367
|
</>
|
|
365
368
|
) : (
|
|
366
|
-
<EmptyView
|
|
367
|
-
onSelect={addCustomType}
|
|
368
|
-
availableCustomTypes={availableCustomTypes}
|
|
369
|
-
/>
|
|
369
|
+
<EmptyView onSelect={addCustomType} allCustomTypes={allCustomTypes} />
|
|
370
370
|
)}
|
|
371
371
|
</Box>
|
|
372
372
|
<Box backgroundColor="white" flexDirection="column" padding={12}>
|
|
@@ -389,11 +389,11 @@ function ContentRelationshipFieldPickerContent(
|
|
|
389
389
|
|
|
390
390
|
type EmptyViewProps = {
|
|
391
391
|
onSelect: (customTypeId: string) => void;
|
|
392
|
-
|
|
392
|
+
allCustomTypes: CustomType[];
|
|
393
393
|
};
|
|
394
394
|
|
|
395
395
|
function EmptyView(props: EmptyViewProps) {
|
|
396
|
-
const {
|
|
396
|
+
const { allCustomTypes, onSelect } = props;
|
|
397
397
|
|
|
398
398
|
return (
|
|
399
399
|
<Box
|
|
@@ -407,17 +407,14 @@ function EmptyView(props: EmptyViewProps) {
|
|
|
407
407
|
No types selected yet.
|
|
408
408
|
</Text>
|
|
409
409
|
<Text color="grey11" component="p" align="center">
|
|
410
|
-
Add one
|
|
410
|
+
Add one type your content editors can link to.
|
|
411
411
|
<br />
|
|
412
|
-
For
|
|
413
|
-
in your frontend queries).
|
|
412
|
+
For the selected type, select the fields to include in the API
|
|
413
|
+
response (used in your frontend queries).
|
|
414
414
|
</Text>
|
|
415
415
|
</Box>
|
|
416
416
|
<Box>
|
|
417
|
-
<AddTypeButton
|
|
418
|
-
availableCustomTypes={availableCustomTypes}
|
|
419
|
-
onSelect={onSelect}
|
|
420
|
-
/>
|
|
417
|
+
<AddTypeButton allCustomTypes={allCustomTypes} onSelect={onSelect} />
|
|
421
418
|
</Box>
|
|
422
419
|
</Box>
|
|
423
420
|
);
|
|
@@ -425,28 +422,22 @@ function EmptyView(props: EmptyViewProps) {
|
|
|
425
422
|
|
|
426
423
|
type AddTypeButtonProps = {
|
|
427
424
|
onSelect: (customTypeId: string) => void;
|
|
428
|
-
|
|
429
|
-
availableCustomTypes: CustomType[];
|
|
430
|
-
pickedCustomTypes?: CustomType[];
|
|
425
|
+
allCustomTypes: CustomType[];
|
|
431
426
|
};
|
|
432
427
|
|
|
433
428
|
function AddTypeButton(props: AddTypeButtonProps) {
|
|
434
|
-
const {
|
|
429
|
+
const { allCustomTypes, onSelect } = props;
|
|
435
430
|
|
|
436
431
|
const triggerButton = (
|
|
437
|
-
<Button
|
|
438
|
-
|
|
439
|
-
color="grey"
|
|
440
|
-
disabled={availableCustomTypes.length === 0}
|
|
441
|
-
>
|
|
442
|
-
{pickedCustomTypes.length > 0 ? "Add another type" : "Add type"}
|
|
432
|
+
<Button startIcon="add" color="grey" disabled={allCustomTypes.length === 0}>
|
|
433
|
+
Add type
|
|
443
434
|
</Button>
|
|
444
435
|
);
|
|
445
436
|
|
|
446
437
|
const disabledButton = (
|
|
447
438
|
<Box>
|
|
448
439
|
<Tooltip
|
|
449
|
-
content="
|
|
440
|
+
content="No custom type available"
|
|
450
441
|
side="bottom"
|
|
451
442
|
align="start"
|
|
452
443
|
disableHoverableContent
|
|
@@ -456,21 +447,17 @@ function AddTypeButton(props: AddTypeButtonProps) {
|
|
|
456
447
|
</Box>
|
|
457
448
|
);
|
|
458
449
|
|
|
459
|
-
if (
|
|
450
|
+
if (allCustomTypes.length === 0) return disabledButton;
|
|
460
451
|
|
|
461
452
|
return (
|
|
462
453
|
<Box>
|
|
463
454
|
<DropdownMenu>
|
|
464
455
|
<DropdownMenuTrigger>{triggerButton}</DropdownMenuTrigger>
|
|
465
|
-
<DropdownMenuContent
|
|
466
|
-
maxHeight={400}
|
|
467
|
-
minWidth={256}
|
|
468
|
-
align={pickedCustomTypes.length > 0 ? "start" : "center"}
|
|
469
|
-
>
|
|
456
|
+
<DropdownMenuContent maxHeight={400} minWidth={256} align="center">
|
|
470
457
|
<DropdownMenuLabel>
|
|
471
458
|
<Text color="grey11">Types</Text>
|
|
472
459
|
</DropdownMenuLabel>
|
|
473
|
-
{
|
|
460
|
+
{allCustomTypes.map((customType) => (
|
|
474
461
|
<DropdownMenuItem
|
|
475
462
|
key={customType.id}
|
|
476
463
|
onSelect={() => onSelect(customType.id)}
|
|
@@ -502,7 +489,6 @@ interface TreeViewCustomTypeProps {
|
|
|
502
489
|
fieldCheckMap: PickerCustomType;
|
|
503
490
|
onChange: (newValue: PickerCustomType) => void;
|
|
504
491
|
allCustomTypes: CustomType[];
|
|
505
|
-
isNewType: boolean;
|
|
506
492
|
}
|
|
507
493
|
|
|
508
494
|
function TreeViewCustomType(props: TreeViewCustomTypeProps) {
|
|
@@ -511,7 +497,6 @@ function TreeViewCustomType(props: TreeViewCustomTypeProps) {
|
|
|
511
497
|
fieldCheckMap: customTypeFieldsCheckMap,
|
|
512
498
|
onChange: onCustomTypeChange,
|
|
513
499
|
allCustomTypes,
|
|
514
|
-
isNewType,
|
|
515
500
|
} = props;
|
|
516
501
|
|
|
517
502
|
const renderedFields = getCustomTypeStaticFields(customType).map(
|
|
@@ -610,7 +595,7 @@ function TreeViewCustomType(props: TreeViewCustomTypeProps) {
|
|
|
610
595
|
: "(No fields returned in the API)"
|
|
611
596
|
}
|
|
612
597
|
badge={getTypeFormatLabel(customType.format)}
|
|
613
|
-
defaultOpen
|
|
598
|
+
defaultOpen
|
|
614
599
|
>
|
|
615
600
|
{renderedFields.length > 0 ? (
|
|
616
601
|
renderedFields
|
|
@@ -882,10 +867,8 @@ function getTypeFormatLabel(format: CustomType["format"]) {
|
|
|
882
867
|
|
|
883
868
|
/** Retrieves all existing page & custom types. */
|
|
884
869
|
function useCustomTypes(value: LinkCustomtypes | undefined): {
|
|
885
|
-
/** Every existing custom type, used to discover nested custom types down the tree. */
|
|
870
|
+
/** Every existing custom type, used to discover nested custom types down the tree and the add type dropdown. */
|
|
886
871
|
allCustomTypes: CustomType[];
|
|
887
|
-
/** The custom types that are not yet picked. */
|
|
888
|
-
availableCustomTypes: CustomType[];
|
|
889
872
|
/** The custom types that are already picked. */
|
|
890
873
|
pickedCustomTypes: CustomType[];
|
|
891
874
|
} {
|
|
@@ -898,7 +881,6 @@ function useCustomTypes(value: LinkCustomtypes | undefined): {
|
|
|
898
881
|
if (!value) {
|
|
899
882
|
return {
|
|
900
883
|
allCustomTypes,
|
|
901
|
-
availableCustomTypes: allCustomTypes,
|
|
902
884
|
pickedCustomTypes: [],
|
|
903
885
|
};
|
|
904
886
|
}
|
|
@@ -910,9 +892,6 @@ function useCustomTypes(value: LinkCustomtypes | undefined): {
|
|
|
910
892
|
return {
|
|
911
893
|
allCustomTypes,
|
|
912
894
|
pickedCustomTypes,
|
|
913
|
-
availableCustomTypes: allCustomTypes.filter(
|
|
914
|
-
(ct) => pickedCustomTypes.some((pct) => pct.id === ct.id) === false,
|
|
915
|
-
),
|
|
916
895
|
};
|
|
917
896
|
}
|
|
918
897
|
|
|
File without changes
|