slice-machine-ui 2.17.3-alpha.jp-fix-nav-icon.1 → 2.17.3-alpha.jp-logout.7
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/{LENpqiwhe0iSwOP62kGLj → KPZhW00YJHghFSOElKNH_}/_buildManifest.js +1 -1
- package/out/_next/static/chunks/{248-a2a655660e3f09b0.js → 248-1748877f42419273.js} +1 -1
- package/out/_next/static/chunks/{34-8d9d9b2944824750.js → 34-a01cd2e43b84e189.js} +1 -1
- package/out/_next/static/chunks/{04ad993f.d7f986af0f739cc9.js → 417e98d4.84bb2d825bc41f20.js} +1 -1
- package/out/_next/static/chunks/{489-feb8133b2c5a7773.js → 489-9fa5316e33f916cb.js} +1 -1
- package/out/_next/static/chunks/630-9cf5304b2d598634.js +1 -0
- package/out/_next/static/chunks/{647-4379a741c8d85d9e.js → 647-159104a653cd376f.js} +1 -1
- package/out/_next/static/chunks/{907-445266211c48b1a5.js → 907-014c89ad34a88c28.js} +1 -1
- package/out/_next/static/chunks/pages/{_app-926078a0f5b8fca2.js → _app-325d3beabca91313.js} +6 -6
- package/out/_next/static/chunks/pages/{changelog-3663cafded70979e.js → changelog-df4e78e8bee04162.js} +1 -1
- package/out/_next/static/chunks/pages/{changes-dda121066bd037bc.js → changes-0c21abd09469ebce.js} +1 -1
- package/out/_next/static/chunks/pages/{labs-a7ead234825f32c0.js → labs-7cc3d229555a0a39.js} +1 -1
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/{simulator-b127d948a17968d3.js → simulator-c2e2155945738c9f.js} +1 -1
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/{[variation]-29476d3554e484bb.js → [variation]-120ff9390f00b19f.js} +1 -1
- package/out/_next/static/chunks/pages/{slices-742b0e644563ac91.js → slices-219442c4f343f18d.js} +1 -1
- package/out/_next/static/chunks/webpack-1a1e7bb4a5c22a40.js +1 -0
- 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 +7 -7
- package/src/features/auth/LogoutButton.tsx +33 -0
- package/src/features/builder/AddFieldDropdown.tsx +2 -2
- package/src/features/environments/actions/getActiveEnvironment.ts +2 -8
- package/src/features/environments/useActiveEnvironment.ts +8 -1
- package/src/features/environments/useEnvironments.ts +8 -1
- package/src/legacy/components/ListItem/Header.tsx +12 -18
- package/src/legacy/components/ListItem/index.tsx +0 -1
- package/src/legacy/components/LoginModal/index.tsx +8 -2
- package/src/legacy/components/Navigation/SideNavEnvironmentSelector/SideNavEnvironmentSelector.tsx +3 -0
- package/src/legacy/lib/builders/common/EditModal/index.jsx +10 -3
- package/src/legacy/lib/models/common/widgets/Boolean/index.ts +0 -3
- package/src/legacy/lib/models/common/widgets/Color/index.ts +0 -3
- package/src/legacy/lib/models/common/widgets/ContentRelationship/index.ts +0 -3
- package/src/legacy/lib/models/common/widgets/Date/index.ts +0 -3
- package/src/legacy/lib/models/common/widgets/Embed/index.ts +0 -3
- package/src/legacy/lib/models/common/widgets/GeoPoint/index.ts +0 -3
- package/src/legacy/lib/models/common/widgets/Group/createGroupWidget.ts +0 -2
- package/src/legacy/lib/models/common/widgets/Image/index.ts +0 -3
- package/src/legacy/lib/models/common/widgets/Link/index.ts +0 -3
- package/src/legacy/lib/models/common/widgets/LinkToMedia/index.ts +0 -2
- package/src/legacy/lib/models/common/widgets/Number/index.ts +0 -3
- package/src/legacy/lib/models/common/widgets/Select/index.ts +0 -3
- package/src/legacy/lib/models/common/widgets/StructuredText/index.ts +0 -3
- package/src/legacy/lib/models/common/widgets/Table/index.ts +0 -3
- package/src/legacy/lib/models/common/widgets/Text/index.ts +0 -3
- package/src/legacy/lib/models/common/widgets/Timestamp/index.ts +0 -3
- package/src/legacy/lib/models/common/widgets/UID/index.ts +0 -3
- package/src/legacy/lib/models/common/widgets/Widget.ts +0 -1
- package/out/_next/static/chunks/630-bb6e3db525588f16.js +0 -1
- package/out/_next/static/chunks/webpack-e0c07a2fe4908d81.js +0 -1
- /package/out/_next/static/{LENpqiwhe0iSwOP62kGLj → KPZhW00YJHghFSOElKNH_}/_ssgManifest.js +0 -0
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-1a1e7bb4a5c22a40.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-325d3beabca91313.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-a01cd2e43b84e189.js" defer=""></script><script src="/_next/static/chunks/658-8231c0b729e0124a.js" defer=""></script><script src="/_next/static/chunks/pages/changes-0c21abd09469ebce.js" defer=""></script><script src="/_next/static/KPZhW00YJHghFSOElKNH_/_buildManifest.js" defer=""></script><script src="/_next/static/KPZhW00YJHghFSOElKNH_/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/changes","query":{},"buildId":"KPZhW00YJHghFSOElKNH_","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-1a1e7bb4a5c22a40.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-325d3beabca91313.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-a01cd2e43b84e189.js" defer=""></script><script src="/_next/static/chunks/647-159104a653cd376f.js" defer=""></script><script src="/_next/static/chunks/630-9cf5304b2d598634.js" defer=""></script><script src="/_next/static/chunks/907-014c89ad34a88c28.js" defer=""></script><script src="/_next/static/chunks/489-9fa5316e33f916cb.js" defer=""></script><script src="/_next/static/chunks/pages/custom-types/%5BcustomTypeId%5D-7102c23f96cd1768.js" defer=""></script><script src="/_next/static/KPZhW00YJHghFSOElKNH_/_buildManifest.js" defer=""></script><script src="/_next/static/KPZhW00YJHghFSOElKNH_/_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":"KPZhW00YJHghFSOElKNH_","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-1a1e7bb4a5c22a40.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-325d3beabca91313.js" defer=""></script><script src="/_next/static/chunks/397-e6c340070a3bcb41.js" defer=""></script><script src="/_next/static/chunks/647-159104a653cd376f.js" defer=""></script><script src="/_next/static/chunks/248-1748877f42419273.js" defer=""></script><script src="/_next/static/chunks/pages/custom-types-5acd56959b60346f.js" defer=""></script><script src="/_next/static/KPZhW00YJHghFSOElKNH_/_buildManifest.js" defer=""></script><script src="/_next/static/KPZhW00YJHghFSOElKNH_/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/custom-types","query":{},"buildId":"KPZhW00YJHghFSOElKNH_","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-1a1e7bb4a5c22a40.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-325d3beabca91313.js" defer=""></script><script src="/_next/static/chunks/397-e6c340070a3bcb41.js" defer=""></script><script src="/_next/static/chunks/647-159104a653cd376f.js" defer=""></script><script src="/_next/static/chunks/248-1748877f42419273.js" defer=""></script><script src="/_next/static/chunks/pages/index-0d8cb369de720a35.js" defer=""></script><script src="/_next/static/KPZhW00YJHghFSOElKNH_/_buildManifest.js" defer=""></script><script src="/_next/static/KPZhW00YJHghFSOElKNH_/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/","query":{},"buildId":"KPZhW00YJHghFSOElKNH_","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-1a1e7bb4a5c22a40.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-325d3beabca91313.js" defer=""></script><script src="/_next/static/chunks/pages/labs-7cc3d229555a0a39.js" defer=""></script><script src="/_next/static/KPZhW00YJHghFSOElKNH_/_buildManifest.js" defer=""></script><script src="/_next/static/KPZhW00YJHghFSOElKNH_/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/labs","query":{},"buildId":"KPZhW00YJHghFSOElKNH_","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-1a1e7bb4a5c22a40.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-325d3beabca91313.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-a01cd2e43b84e189.js" defer=""></script><script src="/_next/static/chunks/647-159104a653cd376f.js" defer=""></script><script src="/_next/static/chunks/630-9cf5304b2d598634.js" defer=""></script><script src="/_next/static/chunks/907-014c89ad34a88c28.js" defer=""></script><script src="/_next/static/chunks/489-9fa5316e33f916cb.js" defer=""></script><script src="/_next/static/chunks/pages/page-types/%5BpageTypeId%5D-d4bc920a5efffa0a.js" defer=""></script><script src="/_next/static/KPZhW00YJHghFSOElKNH_/_buildManifest.js" defer=""></script><script src="/_next/static/KPZhW00YJHghFSOElKNH_/_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":"KPZhW00YJHghFSOElKNH_","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-1a1e7bb4a5c22a40.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-325d3beabca91313.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-c2e2155945738c9f.js" defer=""></script><script src="/_next/static/KPZhW00YJHghFSOElKNH_/_buildManifest.js" defer=""></script><script src="/_next/static/KPZhW00YJHghFSOElKNH_/_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":"KPZhW00YJHghFSOElKNH_","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-1a1e7bb4a5c22a40.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-325d3beabca91313.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-a01cd2e43b84e189.js" defer=""></script><script src="/_next/static/chunks/630-9cf5304b2d598634.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-120ff9390f00b19f.js" defer=""></script><script src="/_next/static/KPZhW00YJHghFSOElKNH_/_buildManifest.js" defer=""></script><script src="/_next/static/KPZhW00YJHghFSOElKNH_/_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":"KPZhW00YJHghFSOElKNH_","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-1a1e7bb4a5c22a40.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-325d3beabca91313.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-a01cd2e43b84e189.js" defer=""></script><script src="/_next/static/chunks/658-8231c0b729e0124a.js" defer=""></script><script src="/_next/static/chunks/907-014c89ad34a88c28.js" defer=""></script><script src="/_next/static/chunks/pages/slices-219442c4f343f18d.js" defer=""></script><script src="/_next/static/KPZhW00YJHghFSOElKNH_/_buildManifest.js" defer=""></script><script src="/_next/static/KPZhW00YJHghFSOElKNH_/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/slices","query":{},"buildId":"KPZhW00YJHghFSOElKNH_","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-logout.7",
|
|
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-logout.10",
|
|
39
|
+
"start-slicemachine": "0.12.60-alpha.jp-logout.9"
|
|
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",
|
|
46
|
+
"@prismicio/editor-support": "0.4.86",
|
|
47
|
+
"@prismicio/editor-ui": "0.4.86",
|
|
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 clearAuth = async (): Promise<void> => {
|
|
167
167
|
return await managerClient.user.logout();
|
|
168
168
|
};
|
|
169
169
|
|
package/src/domain/fields.ts
CHANGED
|
@@ -92,7 +92,7 @@ export const imageField: NestableField = {
|
|
|
92
92
|
type: "Image",
|
|
93
93
|
};
|
|
94
94
|
|
|
95
|
-
export const
|
|
95
|
+
export const LinkField: NestableField = {
|
|
96
96
|
name: "Link",
|
|
97
97
|
description: "A link to a website, asset, or document.",
|
|
98
98
|
icon: "link",
|
|
@@ -111,8 +111,8 @@ export const contentRelationshipField: NestableField = {
|
|
|
111
111
|
variant: "ContentRelationship",
|
|
112
112
|
};
|
|
113
113
|
|
|
114
|
-
export const
|
|
115
|
-
name: "Link
|
|
114
|
+
export const LinkToMediaField: NestableField = {
|
|
115
|
+
name: "Link To Media",
|
|
116
116
|
description: "A link to a media asset.",
|
|
117
117
|
icon: "attachFile",
|
|
118
118
|
thumbnail:
|
|
@@ -182,8 +182,8 @@ export const nestableFields: NestableField[] = [
|
|
|
182
182
|
booleanField,
|
|
183
183
|
numberField,
|
|
184
184
|
selectField,
|
|
185
|
-
|
|
186
|
-
|
|
185
|
+
LinkField,
|
|
186
|
+
LinkToMediaField,
|
|
187
187
|
colorField,
|
|
188
188
|
dateField,
|
|
189
189
|
tableField,
|
|
@@ -197,7 +197,7 @@ export const nestableFields: NestableField[] = [
|
|
|
197
197
|
* UID
|
|
198
198
|
*/
|
|
199
199
|
|
|
200
|
-
export const
|
|
200
|
+
export const UIDField: UIDField = {
|
|
201
201
|
name: "UID",
|
|
202
202
|
description: "Unique Identifier",
|
|
203
203
|
icon: "tag",
|
|
@@ -230,4 +230,4 @@ export const groupFields: GroupField[] = [groupField, nestedGroupField];
|
|
|
230
230
|
* All fields
|
|
231
231
|
*/
|
|
232
232
|
|
|
233
|
-
export const fields = [...nestableFields,
|
|
233
|
+
export const fields = [...nestableFields, UIDField, ...groupFields];
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { IconButton, Tooltip } from "@prismicio/editor-ui";
|
|
2
|
+
import { toast } from "react-toastify";
|
|
3
|
+
|
|
4
|
+
import { getState, clearAuth as managerLogout } from "@/apiClient";
|
|
5
|
+
import { invalidateActiveEnvironmentData } from "@/features/environments/useActiveEnvironment";
|
|
6
|
+
import { invalidateEnvironmentsData } from "@/features/environments/useEnvironments";
|
|
7
|
+
import useSliceMachineActions from "@/modules/useSliceMachineActions";
|
|
8
|
+
|
|
9
|
+
export function LogoutButton() {
|
|
10
|
+
const { refreshState } = useSliceMachineActions();
|
|
11
|
+
|
|
12
|
+
async function onClick() {
|
|
13
|
+
await managerLogout();
|
|
14
|
+
|
|
15
|
+
refreshState(await getState());
|
|
16
|
+
|
|
17
|
+
// refresh queries to update the UI
|
|
18
|
+
invalidateEnvironmentsData();
|
|
19
|
+
invalidateActiveEnvironmentData();
|
|
20
|
+
|
|
21
|
+
toast.success("Logged out");
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
return (
|
|
25
|
+
<Tooltip content="Log out" side="right">
|
|
26
|
+
<IconButton
|
|
27
|
+
icon="logout"
|
|
28
|
+
onClick={() => void onClick()}
|
|
29
|
+
hiddenLabel="Log out"
|
|
30
|
+
/>
|
|
31
|
+
</Tooltip>
|
|
32
|
+
);
|
|
33
|
+
}
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
FieldVariant,
|
|
19
19
|
groupField,
|
|
20
20
|
nestableFields,
|
|
21
|
-
|
|
21
|
+
UIDField,
|
|
22
22
|
} from "@/domain/fields";
|
|
23
23
|
|
|
24
24
|
export type AddFieldDropdownProps = {
|
|
@@ -47,7 +47,7 @@ export function AddFieldDropdown(props: AddFieldDropdownProps) {
|
|
|
47
47
|
(field) =>
|
|
48
48
|
nestableFields.some(
|
|
49
49
|
(nestableField) => nestableField.name === field.name,
|
|
50
|
-
) || field.name ===
|
|
50
|
+
) || field.name === UIDField.name,
|
|
51
51
|
);
|
|
52
52
|
const groupFieldToRender = fields.find(
|
|
53
53
|
(field) => field.name === groupField.name,
|
|
@@ -5,10 +5,6 @@ import {
|
|
|
5
5
|
|
|
6
6
|
import { managerClient } from "@/managerClient";
|
|
7
7
|
|
|
8
|
-
type GetActiveEnvironmentArgs = {
|
|
9
|
-
retried?: boolean;
|
|
10
|
-
};
|
|
11
|
-
|
|
12
8
|
type GetActiveEnvironmentReturnType =
|
|
13
9
|
| {
|
|
14
10
|
activeEnvironment: Environment;
|
|
@@ -20,10 +16,8 @@ type GetActiveEnvironmentReturnType =
|
|
|
20
16
|
};
|
|
21
17
|
|
|
22
18
|
export async function getActiveEnvironment(
|
|
23
|
-
|
|
19
|
+
retried = false,
|
|
24
20
|
): Promise<GetActiveEnvironmentReturnType> {
|
|
25
|
-
const { retried = false } = args ?? {};
|
|
26
|
-
|
|
27
21
|
try {
|
|
28
22
|
const activeEnvironmentResult =
|
|
29
23
|
await managerClient.project.fetchActiveEnvironment();
|
|
@@ -41,7 +35,7 @@ export async function getActiveEnvironment(
|
|
|
41
35
|
await managerClient.project.updateEnvironment({ environment: undefined });
|
|
42
36
|
|
|
43
37
|
// Call recursively with isRetry=true to prevent infinite loop if it fails again and again.
|
|
44
|
-
return await getActiveEnvironment(
|
|
38
|
+
return await getActiveEnvironment(true);
|
|
45
39
|
}
|
|
46
40
|
|
|
47
41
|
return { error };
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
invalidateFetcherData,
|
|
3
|
+
useRequest,
|
|
4
|
+
} from "@prismicio/editor-support/Suspense";
|
|
2
5
|
|
|
3
6
|
import { getActiveEnvironment } from "./actions/getActiveEnvironment";
|
|
4
7
|
|
|
8
|
+
export function invalidateActiveEnvironmentData() {
|
|
9
|
+
invalidateFetcherData(getActiveEnvironment);
|
|
10
|
+
}
|
|
11
|
+
|
|
5
12
|
export function useActiveEnvironment() {
|
|
6
13
|
return useRequest(getActiveEnvironment, []);
|
|
7
14
|
}
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
invalidateFetcherData,
|
|
3
|
+
useRequest,
|
|
4
|
+
} from "@prismicio/editor-support/Suspense";
|
|
2
5
|
|
|
3
6
|
import { getEnvironments } from "./actions/getEnvironments";
|
|
4
7
|
|
|
8
|
+
export function invalidateEnvironmentsData() {
|
|
9
|
+
invalidateFetcherData(getEnvironments);
|
|
10
|
+
}
|
|
11
|
+
|
|
5
12
|
export function useEnvironments() {
|
|
6
13
|
return useRequest(getEnvironments, []);
|
|
7
14
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Box, Tooltip } from "@prismicio/editor-ui";
|
|
2
1
|
import * as CSS from "csstype";
|
|
3
2
|
import { IconType } from "react-icons";
|
|
4
3
|
import { Flex, Text, Theme } from "theme-ui";
|
|
@@ -10,7 +9,6 @@ interface ItemHeaderProps {
|
|
|
10
9
|
sliceFieldName: string | undefined;
|
|
11
10
|
theme: Theme;
|
|
12
11
|
WidgetIcon: IconType;
|
|
13
|
-
widgetIconTooltip: string;
|
|
14
12
|
}
|
|
15
13
|
|
|
16
14
|
const ItemHeader: React.FC<ItemHeaderProps> = ({
|
|
@@ -18,24 +16,20 @@ const ItemHeader: React.FC<ItemHeaderProps> = ({
|
|
|
18
16
|
sliceFieldName,
|
|
19
17
|
theme,
|
|
20
18
|
WidgetIcon,
|
|
21
|
-
widgetIconTooltip,
|
|
22
19
|
}) => (
|
|
23
20
|
<Flex sx={{ alignItems: "center", position: "relative" }}>
|
|
24
|
-
<
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
/>
|
|
37
|
-
</Box>
|
|
38
|
-
</Tooltip>
|
|
21
|
+
<WidgetIcon
|
|
22
|
+
size={28}
|
|
23
|
+
style={{
|
|
24
|
+
color: theme.colors?.primary as CSS.Property.Color,
|
|
25
|
+
marginRight: "8px",
|
|
26
|
+
borderRadius: "4px",
|
|
27
|
+
padding: "4px",
|
|
28
|
+
border: "2px solid",
|
|
29
|
+
borderColor: theme.colors?.primary as CSS.Property.Color,
|
|
30
|
+
flexShrink: 0,
|
|
31
|
+
}}
|
|
32
|
+
/>
|
|
39
33
|
<TextWithTooltip
|
|
40
34
|
text={text}
|
|
41
35
|
as="p"
|
|
@@ -114,7 +114,6 @@ function ListItem<F extends TabField, S extends AnyObjectSchema>({
|
|
|
114
114
|
renderFieldAccessor && renderFieldAccessor(key)
|
|
115
115
|
}
|
|
116
116
|
WidgetIcon={widget.Meta.icon}
|
|
117
|
-
widgetIconTooltip={widget.label}
|
|
118
117
|
/>
|
|
119
118
|
<Flex sx={{ flex: "0 0 auto" }}>
|
|
120
119
|
{shouldDisplayRepeatableBadge && (
|
|
@@ -13,8 +13,10 @@ import {
|
|
|
13
13
|
Text,
|
|
14
14
|
} from "theme-ui";
|
|
15
15
|
|
|
16
|
-
import { checkAuthStatus, getState
|
|
16
|
+
import { checkAuthStatus, clearAuth,getState } 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";
|
|
18
20
|
import { useAutoSync } from "@/features/sync/AutoSyncProvider";
|
|
19
21
|
import { getUnSyncedChanges } from "@/features/sync/getUnSyncChanges";
|
|
20
22
|
import SliceMachineModal from "@/legacy/components/SliceMachineModal";
|
|
@@ -64,7 +66,7 @@ const LoginModal: React.FunctionComponent = () => {
|
|
|
64
66
|
|
|
65
67
|
try {
|
|
66
68
|
startLoadingLogin();
|
|
67
|
-
await
|
|
69
|
+
await clearAuth();
|
|
68
70
|
window.open(loginRedirectUrl, "_blank");
|
|
69
71
|
await startPolling<CheckAuthStatusResponse, ValidAuthStatus>(
|
|
70
72
|
checkAuthStatus,
|
|
@@ -76,6 +78,10 @@ const LoginModal: React.FunctionComponent = () => {
|
|
|
76
78
|
60,
|
|
77
79
|
);
|
|
78
80
|
|
|
81
|
+
// refresh queries to update the UI
|
|
82
|
+
invalidateEnvironmentsData();
|
|
83
|
+
invalidateActiveEnvironmentData();
|
|
84
|
+
|
|
79
85
|
toast.success("Logged in");
|
|
80
86
|
stopLoadingLogin();
|
|
81
87
|
closeModals();
|
package/src/legacy/components/Navigation/SideNavEnvironmentSelector/SideNavEnvironmentSelector.tsx
CHANGED
|
@@ -18,6 +18,7 @@ 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";
|
|
21
22
|
import { LoginIcon } from "@/icons/LoginIcon";
|
|
22
23
|
import { LogoIcon } from "@/icons/LogoIcon";
|
|
23
24
|
|
|
@@ -138,6 +139,8 @@ export const SideNavEnvironmentSelector: FC<SideNavEnvironmentSelectorProps> = (
|
|
|
138
139
|
}
|
|
139
140
|
/>
|
|
140
141
|
) : undefined}
|
|
142
|
+
|
|
143
|
+
{variant === "default" && <LogoutButton />}
|
|
141
144
|
</Box>
|
|
142
145
|
</>
|
|
143
146
|
)}
|
|
@@ -60,7 +60,6 @@ const EditModal = ({ close, data, fields, onSave, zoneType }) => {
|
|
|
60
60
|
FormFields,
|
|
61
61
|
Form: CustomForm,
|
|
62
62
|
schema: widgetSchema,
|
|
63
|
-
label: widgetLabel,
|
|
64
63
|
} = maybeWidget;
|
|
65
64
|
|
|
66
65
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
@@ -164,7 +163,15 @@ const EditModal = ({ close, data, fields, onSave, zoneType }) => {
|
|
|
164
163
|
>
|
|
165
164
|
{(props) => {
|
|
166
165
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-assignment
|
|
167
|
-
const {
|
|
166
|
+
const {
|
|
167
|
+
values: {
|
|
168
|
+
id,
|
|
169
|
+
config: { label },
|
|
170
|
+
},
|
|
171
|
+
isValid,
|
|
172
|
+
isSubmitting,
|
|
173
|
+
initialValues,
|
|
174
|
+
} = props;
|
|
168
175
|
|
|
169
176
|
// eslint-disable-next-line @typescript-eslint/strict-boolean-expressions
|
|
170
177
|
const fieldModelTabContent = CustomForm ? (
|
|
@@ -219,7 +226,7 @@ const EditModal = ({ close, data, fields, onSave, zoneType }) => {
|
|
|
219
226
|
<ItemHeader
|
|
220
227
|
theme={theme}
|
|
221
228
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/strict-boolean-expressions
|
|
222
|
-
text={
|
|
229
|
+
text={label || id}
|
|
223
230
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
224
231
|
WidgetIcon={WidgetIcon}
|
|
225
232
|
/>
|
|
@@ -2,8 +2,6 @@ import { BooleanField } from "@prismicio/types-internal/lib/customtypes/widgets/
|
|
|
2
2
|
import { MdOutlineToggleOff } from "react-icons/md";
|
|
3
3
|
import * as yup from "yup";
|
|
4
4
|
|
|
5
|
-
import { booleanField } from "@/domain/fields";
|
|
6
|
-
|
|
7
5
|
import { createValidationSchema } from "../../../../forms";
|
|
8
6
|
import { DefaultFields } from "../../../../forms/defaults";
|
|
9
7
|
import { CheckBox, Input } from "../../../../forms/fields";
|
|
@@ -70,5 +68,4 @@ export const BooleanWidget: Widget<BooleanField, typeof schema> = {
|
|
|
70
68
|
Meta,
|
|
71
69
|
schema,
|
|
72
70
|
FormFields,
|
|
73
|
-
label: booleanField.name,
|
|
74
71
|
};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { Color } from "@prismicio/types-internal/lib/customtypes/widgets/nestable";
|
|
2
2
|
import { MdOutlineColorLens } from "react-icons/md";
|
|
3
3
|
|
|
4
|
-
import { colorField } from "@/domain/fields";
|
|
5
|
-
|
|
6
4
|
import { createDefaultWidgetValues } from "../../../../utils";
|
|
7
5
|
import { Widget } from "../Widget";
|
|
8
6
|
|
|
@@ -33,5 +31,4 @@ export const ColorWidget: Widget<Color, typeof schema> = {
|
|
|
33
31
|
TYPE_NAME,
|
|
34
32
|
schema,
|
|
35
33
|
Meta,
|
|
36
|
-
label: colorField.name,
|
|
37
34
|
};
|
|
@@ -2,8 +2,6 @@ import { Link } from "@prismicio/types-internal/lib/customtypes/widgets/nestable
|
|
|
2
2
|
import { MdSettingsEthernet } from "react-icons/md";
|
|
3
3
|
import * as yup from "yup";
|
|
4
4
|
|
|
5
|
-
import { contentRelationshipField } from "@/domain/fields";
|
|
6
|
-
|
|
7
5
|
import { linkConfigSchema } from "../Link";
|
|
8
6
|
import { Widget } from "../Widget";
|
|
9
7
|
import Form, { FormFields } from "./Form";
|
|
@@ -104,5 +102,4 @@ export const ContentRelationshipWidget: Widget<Link, typeof schema> = {
|
|
|
104
102
|
),
|
|
105
103
|
};
|
|
106
104
|
},
|
|
107
|
-
label: contentRelationshipField.name,
|
|
108
105
|
};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { Date } from "@prismicio/types-internal/lib/customtypes/widgets/nestable";
|
|
2
2
|
import { MdDateRange } from "react-icons/md";
|
|
3
3
|
|
|
4
|
-
import { dateField } from "@/domain/fields";
|
|
5
|
-
|
|
6
4
|
import { createDefaultWidgetValues } from "../../../../utils";
|
|
7
5
|
import { Widget } from "../Widget";
|
|
8
6
|
|
|
@@ -34,5 +32,4 @@ export const DateWidget: Widget<Date, typeof schema> = {
|
|
|
34
32
|
TYPE_NAME: "Date",
|
|
35
33
|
schema,
|
|
36
34
|
Meta,
|
|
37
|
-
label: dateField.name,
|
|
38
35
|
};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { Embed } from "@prismicio/types-internal/lib/customtypes/widgets/nestable";
|
|
2
2
|
import { MdCode } from "react-icons/md";
|
|
3
3
|
|
|
4
|
-
import { embedField } from "@/domain/fields";
|
|
5
|
-
|
|
6
4
|
import { createDefaultWidgetValues } from "../../../../utils";
|
|
7
5
|
import { Widget } from "../Widget";
|
|
8
6
|
|
|
@@ -34,5 +32,4 @@ export const EmbedWidget: Widget<Embed, typeof schema> = {
|
|
|
34
32
|
TYPE_NAME: "Embed",
|
|
35
33
|
schema,
|
|
36
34
|
Meta,
|
|
37
|
-
label: embedField.name,
|
|
38
35
|
};
|
|
@@ -2,8 +2,6 @@ import { GeoPoint } from "@prismicio/types-internal/lib/customtypes/widgets/nest
|
|
|
2
2
|
import { MdOutlinePlace } from "react-icons/md";
|
|
3
3
|
import * as yup from "yup";
|
|
4
4
|
|
|
5
|
-
import { geoPointField } from "@/domain/fields";
|
|
6
|
-
|
|
7
5
|
import { DefaultFields } from "../../../../forms/defaults";
|
|
8
6
|
import { Widget } from "../Widget";
|
|
9
7
|
|
|
@@ -54,5 +52,4 @@ export const GeoPointWidget: Widget<GeoPoint, typeof schema> = {
|
|
|
54
52
|
TYPE_NAME: "GeoPoint",
|
|
55
53
|
schema,
|
|
56
54
|
Meta,
|
|
57
|
-
label: geoPointField.name,
|
|
58
55
|
};
|