slice-machine-ui 2.16.2-alpha.jp-cr-ui-render-rules.1 → 2.16.2-alpha.jp-cr-ui-forum-link.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/{LfbtHMP8m7sTRlvdgHYcr → R2ZA9oyelytmBHu-riQsw}/_buildManifest.js +1 -1
- package/out/_next/static/chunks/{630-cbd2d36a53fc525c.js → 630-f12446115c27f1f8.js} +1 -1
- package/out/_next/static/chunks/pages/{_app-4ffd46e6d12be386.js → _app-1bed22ee63eaf53e.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 +87 -94
- /package/out/_next/static/{LfbtHMP8m7sTRlvdgHYcr → R2ZA9oyelytmBHu-riQsw}/_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-1bed22ee63eaf53e.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/R2ZA9oyelytmBHu-riQsw/_buildManifest.js" defer=""></script><script src="/_next/static/R2ZA9oyelytmBHu-riQsw/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/changelog","query":{},"buildId":"R2ZA9oyelytmBHu-riQsw","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-1bed22ee63eaf53e.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/R2ZA9oyelytmBHu-riQsw/_buildManifest.js" defer=""></script><script src="/_next/static/R2ZA9oyelytmBHu-riQsw/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/changes","query":{},"buildId":"R2ZA9oyelytmBHu-riQsw","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-1bed22ee63eaf53e.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-f12446115c27f1f8.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/R2ZA9oyelytmBHu-riQsw/_buildManifest.js" defer=""></script><script src="/_next/static/R2ZA9oyelytmBHu-riQsw/_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":"R2ZA9oyelytmBHu-riQsw","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-1bed22ee63eaf53e.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/R2ZA9oyelytmBHu-riQsw/_buildManifest.js" defer=""></script><script src="/_next/static/R2ZA9oyelytmBHu-riQsw/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/custom-types","query":{},"buildId":"R2ZA9oyelytmBHu-riQsw","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-1bed22ee63eaf53e.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/R2ZA9oyelytmBHu-riQsw/_buildManifest.js" defer=""></script><script src="/_next/static/R2ZA9oyelytmBHu-riQsw/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/","query":{},"buildId":"R2ZA9oyelytmBHu-riQsw","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-1bed22ee63eaf53e.js" defer=""></script><script src="/_next/static/chunks/pages/labs-9630bfb1005be02b.js" defer=""></script><script src="/_next/static/R2ZA9oyelytmBHu-riQsw/_buildManifest.js" defer=""></script><script src="/_next/static/R2ZA9oyelytmBHu-riQsw/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/labs","query":{},"buildId":"R2ZA9oyelytmBHu-riQsw","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-1bed22ee63eaf53e.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-f12446115c27f1f8.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/R2ZA9oyelytmBHu-riQsw/_buildManifest.js" defer=""></script><script src="/_next/static/R2ZA9oyelytmBHu-riQsw/_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":"R2ZA9oyelytmBHu-riQsw","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-1bed22ee63eaf53e.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/R2ZA9oyelytmBHu-riQsw/_buildManifest.js" defer=""></script><script src="/_next/static/R2ZA9oyelytmBHu-riQsw/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/settings","query":{},"buildId":"R2ZA9oyelytmBHu-riQsw","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-1bed22ee63eaf53e.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/R2ZA9oyelytmBHu-riQsw/_buildManifest.js" defer=""></script><script src="/_next/static/R2ZA9oyelytmBHu-riQsw/_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":"R2ZA9oyelytmBHu-riQsw","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-1bed22ee63eaf53e.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-f12446115c27f1f8.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/R2ZA9oyelytmBHu-riQsw/_buildManifest.js" defer=""></script><script src="/_next/static/R2ZA9oyelytmBHu-riQsw/_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":"R2ZA9oyelytmBHu-riQsw","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-1bed22ee63eaf53e.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/R2ZA9oyelytmBHu-riQsw/_buildManifest.js" defer=""></script><script src="/_next/static/R2ZA9oyelytmBHu-riQsw/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/slices","query":{},"buildId":"R2ZA9oyelytmBHu-riQsw","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-
|
|
3
|
+
"version": "2.16.2-alpha.jp-cr-ui-forum-link.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.jp-cr-ui-
|
|
39
|
-
"start-slicemachine": "0.12.58-alpha.jp-cr-ui-
|
|
38
|
+
"@slicemachine/manager": "0.24.16-alpha.jp-cr-ui-forum-link.1",
|
|
39
|
+
"start-slicemachine": "0.12.58-alpha.jp-cr-ui-forum-link.1"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@emotion/react": "11.11.1",
|
|
@@ -404,8 +404,7 @@ function ContentRelationshipFieldPickerContent(
|
|
|
404
404
|
<Text variant="normal" color="grey11">
|
|
405
405
|
Have ideas for improving this field?{" "}
|
|
406
406
|
<a
|
|
407
|
-
|
|
408
|
-
href="https://community.prismic.io/t/TODO"
|
|
407
|
+
href="https://community.prismic.io/t/content-relationship-share-your-requests-and-feedback/19843"
|
|
409
408
|
target="_blank"
|
|
410
409
|
rel="noopener noreferrer"
|
|
411
410
|
style={{ color: "inherit", textDecoration: "underline" }}
|
|
@@ -561,9 +560,9 @@ function TreeViewCustomType(props: TreeViewCustomTypeProps) {
|
|
|
561
560
|
);
|
|
562
561
|
}
|
|
563
562
|
|
|
564
|
-
// Content relationship field
|
|
563
|
+
// Content relationship field
|
|
565
564
|
|
|
566
|
-
if (
|
|
565
|
+
if (isContentRelationshipField(field)) {
|
|
567
566
|
const onContentRelationshipFieldChange = (
|
|
568
567
|
newCrFields: PickerContentRelationshipFieldValue,
|
|
569
568
|
) => {
|
|
@@ -615,20 +614,23 @@ function TreeViewCustomType(props: TreeViewCustomTypeProps) {
|
|
|
615
614
|
);
|
|
616
615
|
|
|
617
616
|
const exposedFieldsCount = countPickedFields(customTypeFieldsCheckMap);
|
|
618
|
-
|
|
619
617
|
return (
|
|
620
618
|
<TreeViewSection
|
|
621
619
|
key={customType.id}
|
|
622
620
|
title={customType.id}
|
|
623
621
|
subtitle={
|
|
624
622
|
exposedFieldsCount > 0
|
|
625
|
-
?
|
|
623
|
+
? getExposedFieldsLabel(exposedFieldsCount)
|
|
626
624
|
: "(No fields returned in the API)"
|
|
627
625
|
}
|
|
628
626
|
badge={getTypeFormatLabel(customType.format)}
|
|
629
627
|
defaultOpen
|
|
630
628
|
>
|
|
631
|
-
{renderedFields.length > 0 ?
|
|
629
|
+
{renderedFields.length > 0 ? (
|
|
630
|
+
renderedFields
|
|
631
|
+
) : (
|
|
632
|
+
<Text color="grey11">No available fields to select</Text>
|
|
633
|
+
)}
|
|
632
634
|
</TreeViewSection>
|
|
633
635
|
);
|
|
634
636
|
}
|
|
@@ -664,7 +666,7 @@ function TreeViewContentRelationshipField(
|
|
|
664
666
|
return (
|
|
665
667
|
<TreeViewSection
|
|
666
668
|
title={fieldId}
|
|
667
|
-
subtitle={
|
|
669
|
+
subtitle={getExposedFieldsLabel(countPickedFields(crFieldsCheckMap))}
|
|
668
670
|
>
|
|
669
671
|
{resolvedCustomTypes.map((customType) => {
|
|
670
672
|
if (typeof customType === "string") return null;
|
|
@@ -731,16 +733,18 @@ function TreeViewContentRelationshipField(
|
|
|
731
733
|
},
|
|
732
734
|
);
|
|
733
735
|
|
|
736
|
+
if (renderedFields.length === 0) return null;
|
|
737
|
+
|
|
734
738
|
return (
|
|
735
739
|
<TreeViewSection
|
|
736
740
|
key={customType.id}
|
|
737
741
|
title={customType.id}
|
|
738
|
-
subtitle={
|
|
742
|
+
subtitle={getExposedFieldsLabel(
|
|
739
743
|
countPickedFields(nestedCtFieldsCheckMap),
|
|
740
744
|
)}
|
|
741
745
|
badge={getTypeFormatLabel(customType.format)}
|
|
742
746
|
>
|
|
743
|
-
{renderedFields
|
|
747
|
+
{renderedFields}
|
|
744
748
|
</TreeViewSection>
|
|
745
749
|
);
|
|
746
750
|
})}
|
|
@@ -748,10 +752,6 @@ function TreeViewContentRelationshipField(
|
|
|
748
752
|
);
|
|
749
753
|
}
|
|
750
754
|
|
|
751
|
-
function NoFieldsAvailable() {
|
|
752
|
-
return <Text color="grey11">No available fields to select</Text>;
|
|
753
|
-
}
|
|
754
|
-
|
|
755
755
|
interface TreeViewLeafGroupFieldProps {
|
|
756
756
|
group: Group;
|
|
757
757
|
groupId: string;
|
|
@@ -787,14 +787,16 @@ function TreeViewLeafGroupField(props: TreeViewLeafGroupFieldProps) {
|
|
|
787
787
|
);
|
|
788
788
|
});
|
|
789
789
|
|
|
790
|
+
if (renderedFields.length === 0) return null;
|
|
791
|
+
|
|
790
792
|
return (
|
|
791
793
|
<TreeViewSection
|
|
792
794
|
key={groupId}
|
|
793
795
|
title={groupId}
|
|
794
|
-
subtitle={
|
|
796
|
+
subtitle={getExposedFieldsLabel(countPickedFields(groupFieldsCheckMap))}
|
|
795
797
|
badge="Group"
|
|
796
798
|
>
|
|
797
|
-
{renderedFields
|
|
799
|
+
{renderedFields}
|
|
798
800
|
</TreeViewSection>
|
|
799
801
|
);
|
|
800
802
|
}
|
|
@@ -818,74 +820,74 @@ function TreeViewFirstLevelGroupField(
|
|
|
818
820
|
allCustomTypes,
|
|
819
821
|
} = props;
|
|
820
822
|
|
|
821
|
-
|
|
822
|
-
// Content relationship field with custom types
|
|
823
|
-
|
|
824
|
-
if (isContentRelationshipFieldWithSingleCustomtype(field)) {
|
|
825
|
-
const onContentRelationshipFieldChange = (
|
|
826
|
-
newCrFields: PickerContentRelationshipFieldValue,
|
|
827
|
-
) => {
|
|
828
|
-
onGroupFieldChange({
|
|
829
|
-
...groupFieldsCheckMap,
|
|
830
|
-
[fieldId]: {
|
|
831
|
-
type: "contentRelationship",
|
|
832
|
-
value: newCrFields,
|
|
833
|
-
},
|
|
834
|
-
});
|
|
835
|
-
};
|
|
836
|
-
|
|
837
|
-
const crFieldCheckMap = groupFieldsCheckMap[fieldId] ?? {};
|
|
838
|
-
|
|
839
|
-
return (
|
|
840
|
-
<TreeViewContentRelationshipField
|
|
841
|
-
key={fieldId}
|
|
842
|
-
field={field}
|
|
843
|
-
fieldId={fieldId}
|
|
844
|
-
fieldCheckMap={
|
|
845
|
-
crFieldCheckMap.type === "contentRelationship"
|
|
846
|
-
? crFieldCheckMap.value
|
|
847
|
-
: {}
|
|
848
|
-
}
|
|
849
|
-
onChange={onContentRelationshipFieldChange}
|
|
850
|
-
allCustomTypes={allCustomTypes}
|
|
851
|
-
/>
|
|
852
|
-
);
|
|
853
|
-
}
|
|
854
|
-
|
|
855
|
-
// Regular field
|
|
856
|
-
|
|
857
|
-
const onCheckedChange = (newChecked: boolean) => {
|
|
858
|
-
onGroupFieldChange({
|
|
859
|
-
...groupFieldsCheckMap,
|
|
860
|
-
[fieldId]: { type: "checkbox", value: newChecked },
|
|
861
|
-
});
|
|
862
|
-
};
|
|
863
|
-
|
|
864
|
-
return (
|
|
865
|
-
<TreeViewCheckbox
|
|
866
|
-
key={fieldId}
|
|
867
|
-
title={fieldId}
|
|
868
|
-
checked={groupFieldsCheckMap[fieldId]?.value === true}
|
|
869
|
-
onCheckedChange={onCheckedChange}
|
|
870
|
-
/>
|
|
871
|
-
);
|
|
872
|
-
});
|
|
823
|
+
if (!group.config?.fields) return null;
|
|
873
824
|
|
|
874
825
|
return (
|
|
875
826
|
<TreeViewSection
|
|
876
827
|
key={groupId}
|
|
877
828
|
title={groupId}
|
|
878
|
-
subtitle={
|
|
829
|
+
subtitle={getExposedFieldsLabel(countPickedFields(groupFieldsCheckMap))}
|
|
879
830
|
badge="Group"
|
|
880
831
|
>
|
|
881
|
-
{
|
|
832
|
+
{getGroupFields(group).map(({ fieldId, field }) => {
|
|
833
|
+
if (isContentRelationshipField(field)) {
|
|
834
|
+
const onContentRelationshipFieldChange = (
|
|
835
|
+
newCrFields: PickerContentRelationshipFieldValue,
|
|
836
|
+
) => {
|
|
837
|
+
onGroupFieldChange({
|
|
838
|
+
...groupFieldsCheckMap,
|
|
839
|
+
[fieldId]: {
|
|
840
|
+
type: "contentRelationship",
|
|
841
|
+
value: newCrFields,
|
|
842
|
+
},
|
|
843
|
+
});
|
|
844
|
+
};
|
|
845
|
+
|
|
846
|
+
const crFieldCheckMap = groupFieldsCheckMap[fieldId] ?? {};
|
|
847
|
+
|
|
848
|
+
return (
|
|
849
|
+
<TreeViewContentRelationshipField
|
|
850
|
+
key={fieldId}
|
|
851
|
+
field={field}
|
|
852
|
+
fieldId={fieldId}
|
|
853
|
+
fieldCheckMap={
|
|
854
|
+
crFieldCheckMap.type === "contentRelationship"
|
|
855
|
+
? crFieldCheckMap.value
|
|
856
|
+
: {}
|
|
857
|
+
}
|
|
858
|
+
onChange={onContentRelationshipFieldChange}
|
|
859
|
+
allCustomTypes={allCustomTypes}
|
|
860
|
+
/>
|
|
861
|
+
);
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
const onCheckedChange = (newChecked: boolean) => {
|
|
865
|
+
onGroupFieldChange({
|
|
866
|
+
...groupFieldsCheckMap,
|
|
867
|
+
[fieldId]: { type: "checkbox", value: newChecked },
|
|
868
|
+
});
|
|
869
|
+
};
|
|
870
|
+
|
|
871
|
+
return (
|
|
872
|
+
<TreeViewCheckbox
|
|
873
|
+
key={fieldId}
|
|
874
|
+
title={fieldId}
|
|
875
|
+
checked={groupFieldsCheckMap[fieldId]?.value === true}
|
|
876
|
+
onCheckedChange={onCheckedChange}
|
|
877
|
+
/>
|
|
878
|
+
);
|
|
879
|
+
})}
|
|
882
880
|
</TreeViewSection>
|
|
883
881
|
);
|
|
884
882
|
}
|
|
885
883
|
|
|
886
|
-
function
|
|
884
|
+
function getExposedFieldsLabel(count: number) {
|
|
887
885
|
if (count === 0) return undefined;
|
|
888
|
-
return `(${count} ${pluralize(
|
|
886
|
+
return `(${count} ${pluralize(
|
|
887
|
+
count,
|
|
888
|
+
"field",
|
|
889
|
+
"fields",
|
|
890
|
+
)} returned in the API)`;
|
|
889
891
|
}
|
|
890
892
|
|
|
891
893
|
function getTypeFormatLabel(format: CustomType["format"]) {
|
|
@@ -923,12 +925,15 @@ function useCustomTypes(value: LinkCustomtypes | undefined): {
|
|
|
923
925
|
}
|
|
924
926
|
|
|
925
927
|
function resolveContentRelationshipCustomTypes(
|
|
926
|
-
|
|
928
|
+
customTypes: LinkCustomtypes,
|
|
927
929
|
localCustomTypes: CustomType[],
|
|
928
930
|
): CustomType[] {
|
|
929
|
-
|
|
930
|
-
|
|
931
|
+
const fields = customTypes.flatMap<CustomType>((customType) => {
|
|
932
|
+
if (typeof customType === "string") return [];
|
|
933
|
+
return localCustomTypes.find((ct) => ct.id === customType.id) ?? [];
|
|
931
934
|
});
|
|
935
|
+
|
|
936
|
+
return fields;
|
|
932
937
|
}
|
|
933
938
|
|
|
934
939
|
/**
|
|
@@ -1186,20 +1191,10 @@ function isGroupField(field: NestableWidget | Group): field is Group {
|
|
|
1186
1191
|
function isContentRelationshipField(
|
|
1187
1192
|
field: NestableWidget | Group,
|
|
1188
1193
|
): field is Link {
|
|
1189
|
-
return
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
* Check if the field is a Content Relationship Link with a **single** custom
|
|
1194
|
-
* type. CRs with multiple custom types are not currently supported (legacy).
|
|
1195
|
-
*/
|
|
1196
|
-
function isContentRelationshipFieldWithSingleCustomtype(
|
|
1197
|
-
field: NestableWidget | Group,
|
|
1198
|
-
): field is Link {
|
|
1199
|
-
return !!(
|
|
1200
|
-
isContentRelationshipField(field) &&
|
|
1201
|
-
field.config?.customtypes &&
|
|
1202
|
-
field.config.customtypes.length === 1
|
|
1194
|
+
return (
|
|
1195
|
+
field.type === "Link" &&
|
|
1196
|
+
field.config?.select === "document" &&
|
|
1197
|
+
field.config?.customtypes !== undefined
|
|
1203
1198
|
);
|
|
1204
1199
|
}
|
|
1205
1200
|
|
|
@@ -1226,12 +1221,10 @@ function getCustomTypeStaticFields(customType: CustomType) {
|
|
|
1226
1221
|
|
|
1227
1222
|
function getGroupFields(group: Group) {
|
|
1228
1223
|
if (!group.config?.fields) return [];
|
|
1229
|
-
return Object.entries(group.config.fields).map(([fieldId, field]) =>
|
|
1230
|
-
fieldId,
|
|
1231
|
-
|
|
1232
|
-
}));
|
|
1224
|
+
return Object.entries(group.config.fields).map(([fieldId, field]) => {
|
|
1225
|
+
return { fieldId, field: field as NestableWidget };
|
|
1226
|
+
});
|
|
1233
1227
|
}
|
|
1234
|
-
|
|
1235
1228
|
/** If it's a string, return it, otherwise return the `id` property. */
|
|
1236
1229
|
function getId<T extends string | { id: string }>(customType: T): string {
|
|
1237
1230
|
if (typeof customType === "string") return customType;
|
|
File without changes
|