slice-machine-ui 2.17.3-alpha.jp-logout.2 → 2.17.3-alpha.jp-field-type.2
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/chunks/{7c1bce44.7757952f8fa3a45d.js → 04ad993f.d7f986af0f739cc9.js} +1 -1
- package/out/_next/static/chunks/{248-ce52121d4f52fee1.js → 248-a2a655660e3f09b0.js} +1 -1
- package/out/_next/static/chunks/{34-7d7a907d79f9279b.js → 34-8d9d9b2944824750.js} +1 -1
- package/out/_next/static/chunks/{489-70cd522d13c732e7.js → 489-feb8133b2c5a7773.js} +1 -1
- package/out/_next/static/chunks/630-aa87af9c8b0807f7.js +1 -0
- package/out/_next/static/chunks/{647-740ad5d8c2da5010.js → 647-4379a741c8d85d9e.js} +1 -1
- package/out/_next/static/chunks/{907-ec265d505f89358d.js → 907-445266211c48b1a5.js} +1 -1
- package/out/_next/static/chunks/pages/{_app-1e06e624c1ad0abe.js → _app-e96528d5f32fa118.js} +7 -7
- package/out/_next/static/chunks/pages/{changelog-64a61af8248660c4.js → changelog-3663cafded70979e.js} +1 -1
- package/out/_next/static/chunks/pages/{changes-1eee1278e11e37fe.js → changes-dda121066bd037bc.js} +1 -1
- package/out/_next/static/chunks/pages/{labs-044341a257fe1f55.js → labs-a7ead234825f32c0.js} +1 -1
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/{simulator-760b1b0acfc25361.js → simulator-b127d948a17968d3.js} +1 -1
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/{[variation]-63a0b554bb376d8b.js → [variation]-29476d3554e484bb.js} +1 -1
- package/out/_next/static/chunks/pages/{slices-7d9503c44b707717.js → slices-742b0e644563ac91.js} +1 -1
- package/out/_next/static/chunks/webpack-e0c07a2fe4908d81.js +1 -0
- package/out/_next/static/{g9_FYkLde9TyWTlZOJM0K → x3WrmvfcfrojFCzvx-d16}/_buildManifest.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/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 +6 -6
- package/src/apiClient.ts +1 -1
- package/src/domain/fields.ts +49 -17
- package/src/features/environments/useActiveEnvironment.ts +2 -11
- package/src/features/environments/useEnvironments.ts +2 -11
- package/src/legacy/components/ItemHeader/index.tsx +6 -3
- package/src/legacy/components/ListItem/Header.tsx +19 -12
- package/src/legacy/components/ListItem/index.tsx +1 -0
- package/src/legacy/components/LoginModal/index.tsx +2 -8
- package/src/legacy/components/Navigation/SideNavEnvironmentSelector/SideNavEnvironmentSelector.tsx +0 -3
- package/src/legacy/lib/builders/common/EditModal/index.jsx +4 -10
- package/src/legacy/lib/models/common/widgets/Group/createGroupWidget.ts +2 -1
- package/src/legacy/lib/models/common/widgets/Widget.ts +2 -1
- package/src/modules/availableCustomTypes/index.ts +1 -12
- package/src/modules/slices/index.ts +1 -10
- package/src/modules/useSliceMachineActions.ts +1 -4
- package/src/modules/userContext/index.ts +0 -8
- package/out/_next/static/chunks/630-ee074347f93761a9.js +0 -1
- package/out/_next/static/chunks/webpack-9ab76e21d6198b49.js +0 -1
- package/src/features/auth/LogoutButton.tsx +0 -32
- package/src/modules/common.ts +0 -3
- /package/out/_next/static/{g9_FYkLde9TyWTlZOJM0K → x3WrmvfcfrojFCzvx-d16}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
self.__BUILD_MANIFEST=function(s,c,a,e,t,i,d,
|
|
1
|
+
self.__BUILD_MANIFEST=function(s,c,a,e,t,i,b,d,n,u,f,h,l,k,j,p,g,o,r,m){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":[s,e,p,g,"static/chunks/pages/index-0d8cb369de720a35.js"],"/_error":["static/chunks/pages/_error-fedd2c6ebd3d27b9.js"],"/changelog":[c,t,"static/chunks/870-a72b74312773efea.js","static/chunks/pages/changelog-3663cafded70979e.js"],"/changes":[c,i,"static/chunks/8eec4907-b712959d9f984b68.js","static/chunks/918-fa4f2563cb5fd014.js",a,d,"static/css/d98ebc475f8423a3.css","static/chunks/pages/changes-dda121066bd037bc.js"],"/custom-types":[s,e,p,g,"static/chunks/pages/custom-types-5acd56959b60346f.js"],"/custom-types/[customTypeId]":[c,n,u,f,h,s,t,b,l,o,a,e,k,j,r,m,"static/chunks/pages/custom-types/[customTypeId]-7102c23f96cd1768.js"],"/labs":["static/chunks/pages/labs-a7ead234825f32c0.js"],"/page-types/[pageTypeId]":[c,n,u,f,h,s,t,b,l,o,a,e,k,j,r,m,"static/chunks/pages/page-types/[pageTypeId]-d4bc920a5efffa0a.js"],"/slices":[c,i,s,b,a,d,j,"static/css/efa5152b7c0f35c0.css","static/chunks/pages/slices-742b0e644563ac91.js"],"/slices/[lib]/[sliceName]/[variation]":[c,i,n,u,f,h,s,t,b,l,a,k,d,"static/css/cdee5b195444f185.css","static/chunks/pages/slices/[lib]/[sliceName]/[variation]-29476d3554e484bb.js"],"/slices/[lib]/[sliceName]/[variation]/simulator":[i,"static/chunks/72585f70-28b4d7d5384b3703.js","static/chunks/157-54b8336d20b41933.js","static/chunks/pages/slices/[lib]/[sliceName]/[variation]/simulator-b127d948a17968d3.js"],sortedPages:["/","/_app","/_error","/changelog","/changes","/custom-types","/custom-types/[customTypeId]","/labs","/page-types/[pageTypeId]","/slices","/slices/[lib]/[sliceName]/[variation]","/slices/[lib]/[sliceName]/[variation]/simulator"]}}("static/chunks/397-e6c340070a3bcb41.js","static/chunks/59b4e022-ef680789f7cc9b11.js","static/chunks/34-8d9d9b2944824750.js","static/chunks/647-4379a741c8d85d9e.js","static/chunks/183-4ea255b867ff171b.js","static/chunks/c8eae200-966ce352f7b5d2b9.js","static/chunks/50-586dc7ab5e584e76.js","static/chunks/658-8231c0b729e0124a.js","static/chunks/f36c6662-1f3a854183168b10.js","static/chunks/4c744e84-480e426e4b1cfef3.js","static/chunks/065a3ddb-9a38ca0d60f0bf2f.js","static/chunks/1cc2734a-09fb3b997ad1eb70.js","static/chunks/349-7118116b93278f73.js","static/chunks/630-aa87af9c8b0807f7.js","static/chunks/907-445266211c48b1a5.js","static/chunks/248-a2a655660e3f09b0.js","static/css/4e475d945cf8a890.css","static/chunks/385-b949173dfa03dd3e.js","static/chunks/489-feb8133b2c5a7773.js","static/css/56f2a6684a524374.css"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
|
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/303dad78be1eb854.css" as="style"/><link rel="stylesheet" href="/_next/static/css/303dad78be1eb854.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-
|
|
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/303dad78be1eb854.css" as="style"/><link rel="stylesheet" href="/_next/static/css/303dad78be1eb854.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-e0c07a2fe4908d81.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-e96528d5f32fa118.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-3663cafded70979e.js" defer=""></script><script src="/_next/static/x3WrmvfcfrojFCzvx-d16/_buildManifest.js" defer=""></script><script src="/_next/static/x3WrmvfcfrojFCzvx-d16/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/changelog","query":{},"buildId":"x3WrmvfcfrojFCzvx-d16","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/303dad78be1eb854.css" as="style"/><link rel="stylesheet" href="/_next/static/css/303dad78be1eb854.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-
|
|
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/303dad78be1eb854.css" as="style"/><link rel="stylesheet" href="/_next/static/css/303dad78be1eb854.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-e0c07a2fe4908d81.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-e96528d5f32fa118.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-8d9d9b2944824750.js" defer=""></script><script src="/_next/static/chunks/658-8231c0b729e0124a.js" defer=""></script><script src="/_next/static/chunks/pages/changes-dda121066bd037bc.js" defer=""></script><script src="/_next/static/x3WrmvfcfrojFCzvx-d16/_buildManifest.js" defer=""></script><script src="/_next/static/x3WrmvfcfrojFCzvx-d16/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/changes","query":{},"buildId":"x3WrmvfcfrojFCzvx-d16","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/303dad78be1eb854.css" as="style"/><link rel="stylesheet" href="/_next/static/css/303dad78be1eb854.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-
|
|
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/303dad78be1eb854.css" as="style"/><link rel="stylesheet" href="/_next/static/css/303dad78be1eb854.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-e0c07a2fe4908d81.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-e96528d5f32fa118.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/50-586dc7ab5e584e76.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-8d9d9b2944824750.js" defer=""></script><script src="/_next/static/chunks/647-4379a741c8d85d9e.js" defer=""></script><script src="/_next/static/chunks/630-aa87af9c8b0807f7.js" defer=""></script><script src="/_next/static/chunks/907-445266211c48b1a5.js" defer=""></script><script src="/_next/static/chunks/489-feb8133b2c5a7773.js" defer=""></script><script src="/_next/static/chunks/pages/custom-types/%5BcustomTypeId%5D-7102c23f96cd1768.js" defer=""></script><script src="/_next/static/x3WrmvfcfrojFCzvx-d16/_buildManifest.js" defer=""></script><script src="/_next/static/x3WrmvfcfrojFCzvx-d16/_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":"x3WrmvfcfrojFCzvx-d16","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/303dad78be1eb854.css" as="style"/><link rel="stylesheet" href="/_next/static/css/303dad78be1eb854.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-
|
|
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/303dad78be1eb854.css" as="style"/><link rel="stylesheet" href="/_next/static/css/303dad78be1eb854.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-e0c07a2fe4908d81.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-e96528d5f32fa118.js" defer=""></script><script src="/_next/static/chunks/397-e6c340070a3bcb41.js" defer=""></script><script src="/_next/static/chunks/647-4379a741c8d85d9e.js" defer=""></script><script src="/_next/static/chunks/248-a2a655660e3f09b0.js" defer=""></script><script src="/_next/static/chunks/pages/custom-types-5acd56959b60346f.js" defer=""></script><script src="/_next/static/x3WrmvfcfrojFCzvx-d16/_buildManifest.js" defer=""></script><script src="/_next/static/x3WrmvfcfrojFCzvx-d16/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/custom-types","query":{},"buildId":"x3WrmvfcfrojFCzvx-d16","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/303dad78be1eb854.css" as="style"/><link rel="stylesheet" href="/_next/static/css/303dad78be1eb854.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-
|
|
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/303dad78be1eb854.css" as="style"/><link rel="stylesheet" href="/_next/static/css/303dad78be1eb854.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-e0c07a2fe4908d81.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-e96528d5f32fa118.js" defer=""></script><script src="/_next/static/chunks/397-e6c340070a3bcb41.js" defer=""></script><script src="/_next/static/chunks/647-4379a741c8d85d9e.js" defer=""></script><script src="/_next/static/chunks/248-a2a655660e3f09b0.js" defer=""></script><script src="/_next/static/chunks/pages/index-0d8cb369de720a35.js" defer=""></script><script src="/_next/static/x3WrmvfcfrojFCzvx-d16/_buildManifest.js" defer=""></script><script src="/_next/static/x3WrmvfcfrojFCzvx-d16/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/","query":{},"buildId":"x3WrmvfcfrojFCzvx-d16","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/303dad78be1eb854.css" as="style"/><link rel="stylesheet" href="/_next/static/css/303dad78be1eb854.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-
|
|
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/303dad78be1eb854.css" as="style"/><link rel="stylesheet" href="/_next/static/css/303dad78be1eb854.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-e0c07a2fe4908d81.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-e96528d5f32fa118.js" defer=""></script><script src="/_next/static/chunks/pages/labs-a7ead234825f32c0.js" defer=""></script><script src="/_next/static/x3WrmvfcfrojFCzvx-d16/_buildManifest.js" defer=""></script><script src="/_next/static/x3WrmvfcfrojFCzvx-d16/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/labs","query":{},"buildId":"x3WrmvfcfrojFCzvx-d16","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/303dad78be1eb854.css" as="style"/><link rel="stylesheet" href="/_next/static/css/303dad78be1eb854.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-
|
|
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/303dad78be1eb854.css" as="style"/><link rel="stylesheet" href="/_next/static/css/303dad78be1eb854.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-e0c07a2fe4908d81.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-e96528d5f32fa118.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/50-586dc7ab5e584e76.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-8d9d9b2944824750.js" defer=""></script><script src="/_next/static/chunks/647-4379a741c8d85d9e.js" defer=""></script><script src="/_next/static/chunks/630-aa87af9c8b0807f7.js" defer=""></script><script src="/_next/static/chunks/907-445266211c48b1a5.js" defer=""></script><script src="/_next/static/chunks/489-feb8133b2c5a7773.js" defer=""></script><script src="/_next/static/chunks/pages/page-types/%5BpageTypeId%5D-d4bc920a5efffa0a.js" defer=""></script><script src="/_next/static/x3WrmvfcfrojFCzvx-d16/_buildManifest.js" defer=""></script><script src="/_next/static/x3WrmvfcfrojFCzvx-d16/_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":"x3WrmvfcfrojFCzvx-d16","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/303dad78be1eb854.css" as="style"/><link rel="stylesheet" href="/_next/static/css/303dad78be1eb854.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-
|
|
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/303dad78be1eb854.css" as="style"/><link rel="stylesheet" href="/_next/static/css/303dad78be1eb854.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-e0c07a2fe4908d81.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-e96528d5f32fa118.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-b127d948a17968d3.js" defer=""></script><script src="/_next/static/x3WrmvfcfrojFCzvx-d16/_buildManifest.js" defer=""></script><script src="/_next/static/x3WrmvfcfrojFCzvx-d16/_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":"x3WrmvfcfrojFCzvx-d16","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/303dad78be1eb854.css" as="style"/><link rel="stylesheet" href="/_next/static/css/303dad78be1eb854.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-
|
|
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/303dad78be1eb854.css" as="style"/><link rel="stylesheet" href="/_next/static/css/303dad78be1eb854.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-e0c07a2fe4908d81.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-e96528d5f32fa118.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/50-586dc7ab5e584e76.js" defer=""></script><script src="/_next/static/chunks/349-7118116b93278f73.js" defer=""></script><script src="/_next/static/chunks/34-8d9d9b2944824750.js" defer=""></script><script src="/_next/static/chunks/630-aa87af9c8b0807f7.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-29476d3554e484bb.js" defer=""></script><script src="/_next/static/x3WrmvfcfrojFCzvx-d16/_buildManifest.js" defer=""></script><script src="/_next/static/x3WrmvfcfrojFCzvx-d16/_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":"x3WrmvfcfrojFCzvx-d16","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/303dad78be1eb854.css" as="style"/><link rel="stylesheet" href="/_next/static/css/303dad78be1eb854.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-
|
|
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/303dad78be1eb854.css" as="style"/><link rel="stylesheet" href="/_next/static/css/303dad78be1eb854.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-e0c07a2fe4908d81.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-e96528d5f32fa118.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/50-586dc7ab5e584e76.js" defer=""></script><script src="/_next/static/chunks/34-8d9d9b2944824750.js" defer=""></script><script src="/_next/static/chunks/658-8231c0b729e0124a.js" defer=""></script><script src="/_next/static/chunks/907-445266211c48b1a5.js" defer=""></script><script src="/_next/static/chunks/pages/slices-742b0e644563ac91.js" defer=""></script><script src="/_next/static/x3WrmvfcfrojFCzvx-d16/_buildManifest.js" defer=""></script><script src="/_next/static/x3WrmvfcfrojFCzvx-d16/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/slices","query":{},"buildId":"x3WrmvfcfrojFCzvx-d16","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.17.3-alpha.jp-
|
|
3
|
+
"version": "2.17.3-alpha.jp-field-type.2",
|
|
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,16 +35,16 @@
|
|
|
35
35
|
"start-slicemachine": "./bin/start-slicemachine.cjs"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@slicemachine/manager": "0.25.2-alpha.jp-
|
|
39
|
-
"start-slicemachine": "0.12.60-alpha.jp-
|
|
38
|
+
"@slicemachine/manager": "0.25.2-alpha.jp-field-type.2",
|
|
39
|
+
"start-slicemachine": "0.12.60-alpha.jp-field-type.2"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@emotion/react": "11.11.1",
|
|
43
43
|
"@extractus/oembed-extractor": "3.1.8",
|
|
44
44
|
"@prismicio/client": "7.17.0",
|
|
45
|
-
"@prismicio/editor-fields": "0.4.
|
|
46
|
-
"@prismicio/editor-support": "0.4.
|
|
47
|
-
"@prismicio/editor-ui": "0.4.
|
|
45
|
+
"@prismicio/editor-fields": "0.4.86-alpha.jp-fix-navigation-icon.1",
|
|
46
|
+
"@prismicio/editor-support": "0.4.86-alpha.jp-fix-navigation-icon.1",
|
|
47
|
+
"@prismicio/editor-ui": "0.4.86-alpha.jp-fix-navigation-icon.1",
|
|
48
48
|
"@prismicio/mock": "0.7.1",
|
|
49
49
|
"@prismicio/mocks": "2.14.0",
|
|
50
50
|
"@prismicio/simulator": "0.1.4",
|
package/src/apiClient.ts
CHANGED
|
@@ -163,7 +163,7 @@ export const pushChanges: SliceMachineManagerClient["prismicRepository"]["pushCh
|
|
|
163
163
|
|
|
164
164
|
/** Auth Routes * */
|
|
165
165
|
|
|
166
|
-
export const
|
|
166
|
+
export const startAuth = async (): Promise<void> => {
|
|
167
167
|
return await managerClient.user.logout();
|
|
168
168
|
};
|
|
169
169
|
|
package/src/domain/fields.ts
CHANGED
|
@@ -34,12 +34,44 @@ export interface GroupField extends BaseField {
|
|
|
34
34
|
|
|
35
35
|
export type Field = NestableField | UIDField | GroupField;
|
|
36
36
|
|
|
37
|
+
export type CustomFieldType =
|
|
38
|
+
| FieldType
|
|
39
|
+
| "LinkToMedia"
|
|
40
|
+
| "ContentRelationship"
|
|
41
|
+
| "NestedGroup";
|
|
42
|
+
|
|
43
|
+
export const fieldLabels: Record<CustomFieldType, string> = {
|
|
44
|
+
Text: "Text",
|
|
45
|
+
StructuredText: "Rich Text",
|
|
46
|
+
Boolean: "Boolean",
|
|
47
|
+
Number: "Number",
|
|
48
|
+
Select: "Select",
|
|
49
|
+
Link: "Link",
|
|
50
|
+
LinkToMedia: "Link To Media",
|
|
51
|
+
UID: "UID",
|
|
52
|
+
Image: "Image",
|
|
53
|
+
Group: "Repeatable Group",
|
|
54
|
+
NestedGroup: "Nested Group",
|
|
55
|
+
Color: "Color",
|
|
56
|
+
Date: "Date",
|
|
57
|
+
Table: "Table",
|
|
58
|
+
Timestamp: "Timestamp",
|
|
59
|
+
Embed: "Embed",
|
|
60
|
+
GeoPoint: "Geopoint",
|
|
61
|
+
ContentRelationship: "Content Relationship",
|
|
62
|
+
IntegrationFields: "Integration Fields",
|
|
63
|
+
Range: "Range",
|
|
64
|
+
Separator: "Separator",
|
|
65
|
+
Slices: "Slices",
|
|
66
|
+
Choice: "Choice",
|
|
67
|
+
};
|
|
68
|
+
|
|
37
69
|
/**
|
|
38
70
|
* Nestable fields
|
|
39
71
|
*/
|
|
40
72
|
|
|
41
73
|
export const booleanField: NestableField = {
|
|
42
|
-
name:
|
|
74
|
+
name: fieldLabels.Boolean,
|
|
43
75
|
description: "A true or false toggle.",
|
|
44
76
|
icon: "toggleOff",
|
|
45
77
|
thumbnail:
|
|
@@ -48,7 +80,7 @@ export const booleanField: NestableField = {
|
|
|
48
80
|
};
|
|
49
81
|
|
|
50
82
|
export const colorField: NestableField = {
|
|
51
|
-
name:
|
|
83
|
+
name: fieldLabels.Color,
|
|
52
84
|
description: "A color in hex format.",
|
|
53
85
|
icon: "colorLens",
|
|
54
86
|
thumbnail:
|
|
@@ -57,7 +89,7 @@ export const colorField: NestableField = {
|
|
|
57
89
|
};
|
|
58
90
|
|
|
59
91
|
export const dateField: NestableField = {
|
|
60
|
-
name:
|
|
92
|
+
name: fieldLabels.Date,
|
|
61
93
|
description: "A date without time.",
|
|
62
94
|
icon: "dateRange",
|
|
63
95
|
thumbnail:
|
|
@@ -66,7 +98,7 @@ export const dateField: NestableField = {
|
|
|
66
98
|
};
|
|
67
99
|
|
|
68
100
|
export const embedField: NestableField = {
|
|
69
|
-
name:
|
|
101
|
+
name: fieldLabels.Embed,
|
|
70
102
|
description: "A video, song, or oEmbed link.",
|
|
71
103
|
icon: "code",
|
|
72
104
|
thumbnail:
|
|
@@ -75,7 +107,7 @@ export const embedField: NestableField = {
|
|
|
75
107
|
};
|
|
76
108
|
|
|
77
109
|
export const geoPointField: NestableField = {
|
|
78
|
-
name:
|
|
110
|
+
name: fieldLabels.GeoPoint,
|
|
79
111
|
description: "A geographical coordinate.",
|
|
80
112
|
icon: "place",
|
|
81
113
|
thumbnail:
|
|
@@ -84,7 +116,7 @@ export const geoPointField: NestableField = {
|
|
|
84
116
|
};
|
|
85
117
|
|
|
86
118
|
export const imageField: NestableField = {
|
|
87
|
-
name:
|
|
119
|
+
name: fieldLabels.Image,
|
|
88
120
|
description: "A responsive image.",
|
|
89
121
|
icon: "image",
|
|
90
122
|
thumbnail:
|
|
@@ -93,7 +125,7 @@ export const imageField: NestableField = {
|
|
|
93
125
|
};
|
|
94
126
|
|
|
95
127
|
export const LinkField: NestableField = {
|
|
96
|
-
name:
|
|
128
|
+
name: fieldLabels.Link,
|
|
97
129
|
description: "A link to a website, asset, or document.",
|
|
98
130
|
icon: "link",
|
|
99
131
|
thumbnail:
|
|
@@ -102,7 +134,7 @@ export const LinkField: NestableField = {
|
|
|
102
134
|
};
|
|
103
135
|
|
|
104
136
|
export const contentRelationshipField: NestableField = {
|
|
105
|
-
name:
|
|
137
|
+
name: fieldLabels.ContentRelationship,
|
|
106
138
|
description: "A reference to a Prismic document.",
|
|
107
139
|
icon: "settingsEthernet",
|
|
108
140
|
thumbnail:
|
|
@@ -112,7 +144,7 @@ export const contentRelationshipField: NestableField = {
|
|
|
112
144
|
};
|
|
113
145
|
|
|
114
146
|
export const LinkToMediaField: NestableField = {
|
|
115
|
-
name:
|
|
147
|
+
name: fieldLabels.LinkToMedia,
|
|
116
148
|
description: "A link to a media asset.",
|
|
117
149
|
icon: "attachFile",
|
|
118
150
|
thumbnail:
|
|
@@ -122,7 +154,7 @@ export const LinkToMediaField: NestableField = {
|
|
|
122
154
|
};
|
|
123
155
|
|
|
124
156
|
export const numberField: NestableField = {
|
|
125
|
-
name:
|
|
157
|
+
name: fieldLabels.Number,
|
|
126
158
|
description: "An integer or float.",
|
|
127
159
|
icon: "pin",
|
|
128
160
|
thumbnail:
|
|
@@ -131,7 +163,7 @@ export const numberField: NestableField = {
|
|
|
131
163
|
};
|
|
132
164
|
|
|
133
165
|
export const richTextField: NestableField = {
|
|
134
|
-
name:
|
|
166
|
+
name: fieldLabels.StructuredText,
|
|
135
167
|
description: "Text with formatting options.",
|
|
136
168
|
icon: "textFields",
|
|
137
169
|
thumbnail:
|
|
@@ -140,7 +172,7 @@ export const richTextField: NestableField = {
|
|
|
140
172
|
};
|
|
141
173
|
|
|
142
174
|
export const selectField: NestableField = {
|
|
143
|
-
name:
|
|
175
|
+
name: fieldLabels.Select,
|
|
144
176
|
description: "A dropdown of options.",
|
|
145
177
|
icon: "arrowDropDownCircle",
|
|
146
178
|
thumbnail:
|
|
@@ -149,7 +181,7 @@ export const selectField: NestableField = {
|
|
|
149
181
|
};
|
|
150
182
|
|
|
151
183
|
export const tableField: NestableField = {
|
|
152
|
-
name:
|
|
184
|
+
name: fieldLabels.Table,
|
|
153
185
|
description: "A structured table.",
|
|
154
186
|
icon: "table",
|
|
155
187
|
thumbnail:
|
|
@@ -158,7 +190,7 @@ export const tableField: NestableField = {
|
|
|
158
190
|
};
|
|
159
191
|
|
|
160
192
|
export const textField: NestableField = {
|
|
161
|
-
name:
|
|
193
|
+
name: fieldLabels.Text,
|
|
162
194
|
description: "A text string without formatting.",
|
|
163
195
|
icon: "title",
|
|
164
196
|
thumbnail:
|
|
@@ -167,7 +199,7 @@ export const textField: NestableField = {
|
|
|
167
199
|
};
|
|
168
200
|
|
|
169
201
|
export const timestampField: NestableField = {
|
|
170
|
-
name:
|
|
202
|
+
name: fieldLabels.Timestamp,
|
|
171
203
|
description: "A date and time.",
|
|
172
204
|
icon: "schedule",
|
|
173
205
|
thumbnail:
|
|
@@ -198,7 +230,7 @@ export const nestableFields: NestableField[] = [
|
|
|
198
230
|
*/
|
|
199
231
|
|
|
200
232
|
export const UIDField: UIDField = {
|
|
201
|
-
name:
|
|
233
|
+
name: fieldLabels.UID,
|
|
202
234
|
description: "Unique Identifier",
|
|
203
235
|
icon: "tag",
|
|
204
236
|
thumbnail:
|
|
@@ -211,7 +243,7 @@ export const UIDField: UIDField = {
|
|
|
211
243
|
*/
|
|
212
244
|
|
|
213
245
|
export const groupField: GroupField = {
|
|
214
|
-
name:
|
|
246
|
+
name: fieldLabels.Group,
|
|
215
247
|
description: "A set of fields that editors can repeat.",
|
|
216
248
|
icon: "createNewFolder",
|
|
217
249
|
thumbnail:
|
|
@@ -1,16 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
invalidateFetcherData,
|
|
3
|
-
useRequest,
|
|
4
|
-
} from "@prismicio/editor-support/Suspense";
|
|
1
|
+
import { useRequest } from "@prismicio/editor-support/Suspense";
|
|
5
2
|
|
|
6
3
|
import { getActiveEnvironment } from "./actions/getActiveEnvironment";
|
|
7
4
|
|
|
8
|
-
const fetcher = () => getActiveEnvironment();
|
|
9
|
-
|
|
10
|
-
export function invalidateActiveEnvironmentData() {
|
|
11
|
-
invalidateFetcherData(fetcher);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
5
|
export function useActiveEnvironment() {
|
|
15
|
-
return useRequest(
|
|
6
|
+
return useRequest(getActiveEnvironment, []);
|
|
16
7
|
}
|
|
@@ -1,16 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
invalidateFetcherData,
|
|
3
|
-
useRequest,
|
|
4
|
-
} from "@prismicio/editor-support/Suspense";
|
|
1
|
+
import { useRequest } from "@prismicio/editor-support/Suspense";
|
|
5
2
|
|
|
6
3
|
import { getEnvironments } from "./actions/getEnvironments";
|
|
7
4
|
|
|
8
|
-
const fetcher = () => getEnvironments();
|
|
9
|
-
|
|
10
|
-
export function invalidateEnvironmentsData() {
|
|
11
|
-
invalidateFetcherData(fetcher);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
5
|
export function useEnvironments() {
|
|
15
|
-
return useRequest(
|
|
6
|
+
return useRequest(getEnvironments, []);
|
|
16
7
|
}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
+
import { FieldType } from "@prismicio/types-internal/lib/customtypes";
|
|
1
2
|
import React from "react";
|
|
2
3
|
import type { Theme } from "theme-ui";
|
|
3
4
|
import { Flex, Text } from "theme-ui";
|
|
4
5
|
|
|
6
|
+
import { fieldLabels } from "@/domain/fields";
|
|
7
|
+
|
|
5
8
|
const ItemHeader: React.FC<{
|
|
6
|
-
|
|
9
|
+
type: FieldType;
|
|
7
10
|
sliceFieldName: React.ReactNode;
|
|
8
11
|
theme: Theme;
|
|
9
12
|
WidgetIcon: React.ElementType;
|
|
10
|
-
}> = ({
|
|
13
|
+
}> = ({ type, sliceFieldName, theme, WidgetIcon }) => (
|
|
11
14
|
<Flex sx={{ alignItems: "center" }}>
|
|
12
15
|
<WidgetIcon
|
|
13
16
|
size={28}
|
|
@@ -30,7 +33,7 @@ const ItemHeader: React.FC<{
|
|
|
30
33
|
fontSize: "15px",
|
|
31
34
|
}}
|
|
32
35
|
>
|
|
33
|
-
{
|
|
36
|
+
{fieldLabels[type]}
|
|
34
37
|
</Text>
|
|
35
38
|
<Text
|
|
36
39
|
as="p"
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { Box, Tooltip } from "@prismicio/editor-ui";
|
|
1
2
|
import * as CSS from "csstype";
|
|
2
3
|
import { IconType } from "react-icons";
|
|
3
4
|
import { Flex, Text, Theme } from "theme-ui";
|
|
4
5
|
|
|
6
|
+
import { CustomFieldType, fieldLabels } from "@/domain/fields";
|
|
5
7
|
import { TextWithTooltip } from "@/legacy/components/Tooltip/TextWithTooltip";
|
|
6
8
|
|
|
7
9
|
interface ItemHeaderProps {
|
|
@@ -9,6 +11,7 @@ interface ItemHeaderProps {
|
|
|
9
11
|
sliceFieldName: string | undefined;
|
|
10
12
|
theme: Theme;
|
|
11
13
|
WidgetIcon: IconType;
|
|
14
|
+
type: CustomFieldType;
|
|
12
15
|
}
|
|
13
16
|
|
|
14
17
|
const ItemHeader: React.FC<ItemHeaderProps> = ({
|
|
@@ -16,20 +19,24 @@ const ItemHeader: React.FC<ItemHeaderProps> = ({
|
|
|
16
19
|
sliceFieldName,
|
|
17
20
|
theme,
|
|
18
21
|
WidgetIcon,
|
|
22
|
+
type,
|
|
19
23
|
}) => (
|
|
20
24
|
<Flex sx={{ alignItems: "center", position: "relative" }}>
|
|
21
|
-
<
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
25
|
+
<Tooltip content={fieldLabels[type]} sideOffset={2} disableHoverableContent>
|
|
26
|
+
<Box margin={{ right: 8 }}>
|
|
27
|
+
<WidgetIcon
|
|
28
|
+
size={28}
|
|
29
|
+
style={{
|
|
30
|
+
color: theme.colors?.primary as CSS.Property.Color,
|
|
31
|
+
borderRadius: "4px",
|
|
32
|
+
padding: "4px",
|
|
33
|
+
border: "2px solid",
|
|
34
|
+
borderColor: theme.colors?.primary as CSS.Property.Color,
|
|
35
|
+
flexShrink: 0,
|
|
36
|
+
}}
|
|
37
|
+
/>
|
|
38
|
+
</Box>
|
|
39
|
+
</Tooltip>
|
|
33
40
|
<TextWithTooltip
|
|
34
41
|
text={text}
|
|
35
42
|
as="p"
|
|
@@ -110,6 +110,7 @@ function ListItem<F extends TabField, S extends AnyObjectSchema>({
|
|
|
110
110
|
theme={theme}
|
|
111
111
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/strict-boolean-expressions, @typescript-eslint/prefer-nullish-coalescing
|
|
112
112
|
text={config?.label || key}
|
|
113
|
+
type={widget.CUSTOM_NAME ?? widget.TYPE_NAME}
|
|
113
114
|
sliceFieldName={
|
|
114
115
|
renderFieldAccessor && renderFieldAccessor(key)
|
|
115
116
|
}
|
|
@@ -13,10 +13,8 @@ import {
|
|
|
13
13
|
Text,
|
|
14
14
|
} from "theme-ui";
|
|
15
15
|
|
|
16
|
-
import { checkAuthStatus, getState,
|
|
16
|
+
import { checkAuthStatus, getState, startAuth } from "@/apiClient";
|
|
17
17
|
import { getActiveEnvironment } from "@/features/environments/actions/getActiveEnvironment";
|
|
18
|
-
import { invalidateActiveEnvironmentData } from "@/features/environments/useActiveEnvironment";
|
|
19
|
-
import { invalidateEnvironmentsData } from "@/features/environments/useEnvironments";
|
|
20
18
|
import { useAutoSync } from "@/features/sync/AutoSyncProvider";
|
|
21
19
|
import { getUnSyncedChanges } from "@/features/sync/getUnSyncChanges";
|
|
22
20
|
import SliceMachineModal from "@/legacy/components/SliceMachineModal";
|
|
@@ -66,7 +64,7 @@ const LoginModal: React.FunctionComponent = () => {
|
|
|
66
64
|
|
|
67
65
|
try {
|
|
68
66
|
startLoadingLogin();
|
|
69
|
-
await
|
|
67
|
+
await startAuth();
|
|
70
68
|
window.open(loginRedirectUrl, "_blank");
|
|
71
69
|
await startPolling<CheckAuthStatusResponse, ValidAuthStatus>(
|
|
72
70
|
checkAuthStatus,
|
|
@@ -78,10 +76,6 @@ const LoginModal: React.FunctionComponent = () => {
|
|
|
78
76
|
60,
|
|
79
77
|
);
|
|
80
78
|
|
|
81
|
-
// refresh queries to update the UI
|
|
82
|
-
invalidateEnvironmentsData();
|
|
83
|
-
invalidateActiveEnvironmentData();
|
|
84
|
-
|
|
85
79
|
toast.success("Logged in");
|
|
86
80
|
stopLoadingLogin();
|
|
87
81
|
closeModals();
|
package/src/legacy/components/Navigation/SideNavEnvironmentSelector/SideNavEnvironmentSelector.tsx
CHANGED
|
@@ -18,7 +18,6 @@ import type { Environment } from "@slicemachine/manager/client";
|
|
|
18
18
|
import { clsx } from "clsx";
|
|
19
19
|
import type { FC, ReactNode } from "react";
|
|
20
20
|
|
|
21
|
-
import { LogoutButton } from "@/features/auth/LogoutButton";
|
|
22
21
|
import { LoginIcon } from "@/icons/LoginIcon";
|
|
23
22
|
import { LogoIcon } from "@/icons/LogoIcon";
|
|
24
23
|
|
|
@@ -139,8 +138,6 @@ export const SideNavEnvironmentSelector: FC<SideNavEnvironmentSelectorProps> = (
|
|
|
139
138
|
}
|
|
140
139
|
/>
|
|
141
140
|
) : undefined}
|
|
142
|
-
|
|
143
|
-
{variant === "default" && <LogoutButton />}
|
|
144
141
|
</Box>
|
|
145
142
|
</>
|
|
146
143
|
)}
|