slice-machine-ui 1.26.1-beta.3 → 1.26.1-beta.5
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/components/AppLayout/index.tsx +2 -2
- package/lib/builders/SliceBuilder/index.tsx +5 -1
- package/out/404.html +1 -1
- package/out/_next/static/{5yyUC9W9gkQNk496l1FHG → 90I9r-r0EJ5L9L71lZ_H-}/_buildManifest.js +1 -1
- package/out/_next/static/chunks/{727-2c302be2def92786.js → 727-7536690b0938f88f.js} +1 -1
- package/out/_next/static/chunks/{904-c9221a5cb09524e8.js → 904-cac58924044acc83.js} +1 -1
- package/out/_next/static/chunks/pages/{_app-2e584398507ce4b6.js → _app-98898cc8c45f6edb.js} +1 -1
- package/out/_next/static/chunks/pages/{changelog-5c9ac93faf0df06b.js → changelog-4cee9fbfd4fdfc70.js} +1 -1
- package/out/_next/static/chunks/pages/changes-b1d7cb1c845848ee.js +1 -0
- package/out/_next/static/chunks/pages/{labs-6f5925cd6cdcee9e.js → labs-566a982a3e954547.js} +1 -1
- package/out/_next/static/chunks/pages/{settings-f0620e5b727cda03.js → settings-6c2777758905c784.js} +1 -1
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-24acc6726cb20b65.js +1 -0
- package/out/_next/static/chunks/pages/slices-a633527fee62b6cd.js +1 -0
- package/out/_next/static/css/{238631d146c5ed97.css → 82840c077aa9a9d5.css} +1 -1
- package/out/changelog.html +1 -1
- package/out/changes.html +1 -1
- package/out/custom-types/[customTypeId].html +1 -1
- package/out/custom-types.html +1 -1
- package/out/index.html +1 -1
- package/out/labs.html +1 -1
- package/out/page-types/[pageTypeId].html +1 -1
- package/out/settings.html +1 -1
- package/out/slices/[lib]/[sliceName]/[variation]/simulator.html +1 -1
- package/out/slices/[lib]/[sliceName]/[variation].html +1 -1
- package/out/slices.html +1 -1
- package/package.json +3 -3
- package/pages/changes.tsx +4 -1
- package/pages/slices.tsx +4 -1
- package/src/components/Breadcrumb/Breadcrumb.module.css +11 -0
- package/src/components/Breadcrumb/Breadcrumb.module.css.d.ts +6 -0
- package/src/components/Breadcrumb/Breadcrumb.stories.tsx +34 -0
- package/src/components/Breadcrumb/Breadcrumb.tsx +43 -25
- package/src/components/Breadcrumb/index.ts +1 -1
- package/src/features/customTypes/__tests__/CustomTypeBuilderPage.test.tsx +5 -6
- package/src/features/customTypes/customTypesBuilder/CustomTypesBuilderPage.tsx +9 -4
- package/src/features/customTypes/customTypesTable/CustomTypesTablePage.tsx +11 -12
- package/src/features/labs/labsList/LabsPage.tsx +4 -1
- package/src/features/settings/SettingsPage.tsx +4 -1
- package/out/_next/static/chunks/pages/changes-3e4989e09fd412a8.js +0 -1
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-8d7043e6638d65cd.js +0 -1
- package/out/_next/static/chunks/pages/slices-77cff50b1df13579.js +0 -1
- package/src/components/Breadcrumb/Breadcrumb.css.ts +0 -5
- package/src/components/Breadcrumb/Breadcrumb.stories.ts +0 -32
- /package/out/_next/static/{5yyUC9W9gkQNk496l1FHG → 90I9r-r0EJ5L9L71lZ_H-}/_ssgManifest.js +0 -0
package/out/changelog.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/
|
|
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/82840c077aa9a9d5.css" as="style"/><link rel="stylesheet" href="/_next/static/css/82840c077aa9a9d5.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-2f903acb0cccbf9e.js" defer=""></script><script src="/_next/static/chunks/framework-cdccea7a52cc6e81.js" defer=""></script><script src="/_next/static/chunks/main-5e6780279ca21cb9.js" defer=""></script><script src="/_next/static/chunks/pages/_app-98898cc8c45f6edb.js" defer=""></script><script src="/_next/static/chunks/59b4e022-7a3b5554b806349f.js" defer=""></script><script src="/_next/static/chunks/183-ebd633fed7c74545.js" defer=""></script><script src="/_next/static/chunks/870-0c7a8a9622de78b7.js" defer=""></script><script src="/_next/static/chunks/pages/changelog-4cee9fbfd4fdfc70.js" defer=""></script><script src="/_next/static/90I9r-r0EJ5L9L71lZ_H-/_buildManifest.js" defer=""></script><script src="/_next/static/90I9r-r0EJ5L9L71lZ_H-/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/changelog","query":{},"buildId":"90I9r-r0EJ5L9L71lZ_H-","runtimeConfig":{"sentryEnvironment":"beta"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
package/out/changes.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/
|
|
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/82840c077aa9a9d5.css" as="style"/><link rel="stylesheet" href="/_next/static/css/82840c077aa9a9d5.css" data-n-g=""/><link rel="preload" href="/_next/static/css/838fd8bb5a7c32b0.css" as="style"/><link rel="stylesheet" href="/_next/static/css/838fd8bb5a7c32b0.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-2f903acb0cccbf9e.js" defer=""></script><script src="/_next/static/chunks/framework-cdccea7a52cc6e81.js" defer=""></script><script src="/_next/static/chunks/main-5e6780279ca21cb9.js" defer=""></script><script src="/_next/static/chunks/pages/_app-98898cc8c45f6edb.js" defer=""></script><script src="/_next/static/chunks/59b4e022-7a3b5554b806349f.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/543-f8766685f7f451e2.js" defer=""></script><script src="/_next/static/chunks/918-5bb55fb464e34768.js" defer=""></script><script src="/_next/static/chunks/25-792af14760d9df34.js" defer=""></script><script src="/_next/static/chunks/286-e0950c3083c672e8.js" defer=""></script><script src="/_next/static/chunks/pages/changes-b1d7cb1c845848ee.js" defer=""></script><script src="/_next/static/90I9r-r0EJ5L9L71lZ_H-/_buildManifest.js" defer=""></script><script src="/_next/static/90I9r-r0EJ5L9L71lZ_H-/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/changes","query":{},"buildId":"90I9r-r0EJ5L9L71lZ_H-","runtimeConfig":{"sentryEnvironment":"beta"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/
|
|
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/82840c077aa9a9d5.css" as="style"/><link rel="stylesheet" href="/_next/static/css/82840c077aa9a9d5.css" data-n-g=""/><link rel="preload" href="/_next/static/css/72465cc1225f28a2.css" as="style"/><link rel="stylesheet" href="/_next/static/css/72465cc1225f28a2.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-2f903acb0cccbf9e.js" defer=""></script><script src="/_next/static/chunks/framework-cdccea7a52cc6e81.js" defer=""></script><script src="/_next/static/chunks/main-5e6780279ca21cb9.js" defer=""></script><script src="/_next/static/chunks/pages/_app-98898cc8c45f6edb.js" defer=""></script><script src="/_next/static/chunks/59b4e022-7a3b5554b806349f.js" defer=""></script><script src="/_next/static/chunks/f36c6662-03bb5e9d9aa0b0aa.js" defer=""></script><script src="/_next/static/chunks/4c744e84-e3161d754618373f.js" defer=""></script><script src="/_next/static/chunks/065a3ddb-9a38ca0d60f0bf2f.js" defer=""></script><script src="/_next/static/chunks/1cc2734a-2c5b6c0367fcde86.js" defer=""></script><script src="/_next/static/chunks/183-ebd633fed7c74545.js" defer=""></script><script src="/_next/static/chunks/50-cfc2514205b86001.js" defer=""></script><script src="/_next/static/chunks/543-f8766685f7f451e2.js" defer=""></script><script src="/_next/static/chunks/696-b992b9e1ce75777e.js" defer=""></script><script src="/_next/static/chunks/210-aee6116139329803.js" defer=""></script><script src="/_next/static/chunks/25-792af14760d9df34.js" defer=""></script><script src="/_next/static/chunks/799-7b910b896ff60ebe.js" defer=""></script><script src="/_next/static/chunks/318-d6f1200138628ec3.js" defer=""></script><script src="/_next/static/chunks/904-cac58924044acc83.js" defer=""></script><script src="/_next/static/chunks/pages/custom-types/%5BcustomTypeId%5D-d1a4a07e6b600fa6.js" defer=""></script><script src="/_next/static/90I9r-r0EJ5L9L71lZ_H-/_buildManifest.js" defer=""></script><script src="/_next/static/90I9r-r0EJ5L9L71lZ_H-/_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":"90I9r-r0EJ5L9L71lZ_H-","runtimeConfig":{"sentryEnvironment":"beta"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
package/out/custom-types.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/
|
|
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/82840c077aa9a9d5.css" as="style"/><link rel="stylesheet" href="/_next/static/css/82840c077aa9a9d5.css" data-n-g=""/><link rel="preload" href="/_next/static/css/be1f49e49a5aa7eb.css" as="style"/><link rel="stylesheet" href="/_next/static/css/be1f49e49a5aa7eb.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-2f903acb0cccbf9e.js" defer=""></script><script src="/_next/static/chunks/framework-cdccea7a52cc6e81.js" defer=""></script><script src="/_next/static/chunks/main-5e6780279ca21cb9.js" defer=""></script><script src="/_next/static/chunks/pages/_app-98898cc8c45f6edb.js" defer=""></script><script src="/_next/static/chunks/799-7b910b896ff60ebe.js" defer=""></script><script src="/_next/static/chunks/727-7536690b0938f88f.js" defer=""></script><script src="/_next/static/chunks/pages/custom-types-3c8e721ec6802127.js" defer=""></script><script src="/_next/static/90I9r-r0EJ5L9L71lZ_H-/_buildManifest.js" defer=""></script><script src="/_next/static/90I9r-r0EJ5L9L71lZ_H-/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/custom-types","query":{},"buildId":"90I9r-r0EJ5L9L71lZ_H-","runtimeConfig":{"sentryEnvironment":"beta"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
package/out/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/
|
|
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/82840c077aa9a9d5.css" as="style"/><link rel="stylesheet" href="/_next/static/css/82840c077aa9a9d5.css" data-n-g=""/><link rel="preload" href="/_next/static/css/be1f49e49a5aa7eb.css" as="style"/><link rel="stylesheet" href="/_next/static/css/be1f49e49a5aa7eb.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-2f903acb0cccbf9e.js" defer=""></script><script src="/_next/static/chunks/framework-cdccea7a52cc6e81.js" defer=""></script><script src="/_next/static/chunks/main-5e6780279ca21cb9.js" defer=""></script><script src="/_next/static/chunks/pages/_app-98898cc8c45f6edb.js" defer=""></script><script src="/_next/static/chunks/799-7b910b896ff60ebe.js" defer=""></script><script src="/_next/static/chunks/727-7536690b0938f88f.js" defer=""></script><script src="/_next/static/chunks/pages/index-cf93d16e9c63b6db.js" defer=""></script><script src="/_next/static/90I9r-r0EJ5L9L71lZ_H-/_buildManifest.js" defer=""></script><script src="/_next/static/90I9r-r0EJ5L9L71lZ_H-/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/","query":{},"buildId":"90I9r-r0EJ5L9L71lZ_H-","runtimeConfig":{"sentryEnvironment":"beta"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
package/out/labs.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/
|
|
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/82840c077aa9a9d5.css" as="style"/><link rel="stylesheet" href="/_next/static/css/82840c077aa9a9d5.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-2f903acb0cccbf9e.js" defer=""></script><script src="/_next/static/chunks/framework-cdccea7a52cc6e81.js" defer=""></script><script src="/_next/static/chunks/main-5e6780279ca21cb9.js" defer=""></script><script src="/_next/static/chunks/pages/_app-98898cc8c45f6edb.js" defer=""></script><script src="/_next/static/chunks/pages/labs-566a982a3e954547.js" defer=""></script><script src="/_next/static/90I9r-r0EJ5L9L71lZ_H-/_buildManifest.js" defer=""></script><script src="/_next/static/90I9r-r0EJ5L9L71lZ_H-/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/labs","query":{},"buildId":"90I9r-r0EJ5L9L71lZ_H-","runtimeConfig":{"sentryEnvironment":"beta"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/
|
|
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/82840c077aa9a9d5.css" as="style"/><link rel="stylesheet" href="/_next/static/css/82840c077aa9a9d5.css" data-n-g=""/><link rel="preload" href="/_next/static/css/72465cc1225f28a2.css" as="style"/><link rel="stylesheet" href="/_next/static/css/72465cc1225f28a2.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-2f903acb0cccbf9e.js" defer=""></script><script src="/_next/static/chunks/framework-cdccea7a52cc6e81.js" defer=""></script><script src="/_next/static/chunks/main-5e6780279ca21cb9.js" defer=""></script><script src="/_next/static/chunks/pages/_app-98898cc8c45f6edb.js" defer=""></script><script src="/_next/static/chunks/59b4e022-7a3b5554b806349f.js" defer=""></script><script src="/_next/static/chunks/f36c6662-03bb5e9d9aa0b0aa.js" defer=""></script><script src="/_next/static/chunks/4c744e84-e3161d754618373f.js" defer=""></script><script src="/_next/static/chunks/065a3ddb-9a38ca0d60f0bf2f.js" defer=""></script><script src="/_next/static/chunks/1cc2734a-2c5b6c0367fcde86.js" defer=""></script><script src="/_next/static/chunks/183-ebd633fed7c74545.js" defer=""></script><script src="/_next/static/chunks/50-cfc2514205b86001.js" defer=""></script><script src="/_next/static/chunks/543-f8766685f7f451e2.js" defer=""></script><script src="/_next/static/chunks/696-b992b9e1ce75777e.js" defer=""></script><script src="/_next/static/chunks/210-aee6116139329803.js" defer=""></script><script src="/_next/static/chunks/25-792af14760d9df34.js" defer=""></script><script src="/_next/static/chunks/799-7b910b896ff60ebe.js" defer=""></script><script src="/_next/static/chunks/318-d6f1200138628ec3.js" defer=""></script><script src="/_next/static/chunks/904-cac58924044acc83.js" defer=""></script><script src="/_next/static/chunks/pages/page-types/%5BpageTypeId%5D-a724ff12ef322020.js" defer=""></script><script src="/_next/static/90I9r-r0EJ5L9L71lZ_H-/_buildManifest.js" defer=""></script><script src="/_next/static/90I9r-r0EJ5L9L71lZ_H-/_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":"90I9r-r0EJ5L9L71lZ_H-","runtimeConfig":{"sentryEnvironment":"beta"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
package/out/settings.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/
|
|
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/82840c077aa9a9d5.css" as="style"/><link rel="stylesheet" href="/_next/static/css/82840c077aa9a9d5.css" data-n-g=""/><link rel="preload" href="/_next/static/css/ca32882a5d2d8d88.css" as="style"/><link rel="stylesheet" href="/_next/static/css/ca32882a5d2d8d88.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-2f903acb0cccbf9e.js" defer=""></script><script src="/_next/static/chunks/framework-cdccea7a52cc6e81.js" defer=""></script><script src="/_next/static/chunks/main-5e6780279ca21cb9.js" defer=""></script><script src="/_next/static/chunks/pages/_app-98898cc8c45f6edb.js" defer=""></script><script src="/_next/static/chunks/pages/settings-6c2777758905c784.js" defer=""></script><script src="/_next/static/90I9r-r0EJ5L9L71lZ_H-/_buildManifest.js" defer=""></script><script src="/_next/static/90I9r-r0EJ5L9L71lZ_H-/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/settings","query":{},"buildId":"90I9r-r0EJ5L9L71lZ_H-","runtimeConfig":{"sentryEnvironment":"beta"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/
|
|
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/82840c077aa9a9d5.css" as="style"/><link rel="stylesheet" href="/_next/static/css/82840c077aa9a9d5.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-2f903acb0cccbf9e.js" defer=""></script><script src="/_next/static/chunks/framework-cdccea7a52cc6e81.js" defer=""></script><script src="/_next/static/chunks/main-5e6780279ca21cb9.js" defer=""></script><script src="/_next/static/chunks/pages/_app-98898cc8c45f6edb.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/18539003-a5a5d48f20a7b261.js" defer=""></script><script src="/_next/static/chunks/46-d22d7a121254e31d.js" defer=""></script><script src="/_next/static/chunks/pages/slices/%5Blib%5D/%5BsliceName%5D/%5Bvariation%5D/simulator-01d67e97cb901e46.js" defer=""></script><script src="/_next/static/90I9r-r0EJ5L9L71lZ_H-/_buildManifest.js" defer=""></script><script src="/_next/static/90I9r-r0EJ5L9L71lZ_H-/_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":"90I9r-r0EJ5L9L71lZ_H-","runtimeConfig":{"sentryEnvironment":"beta"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/
|
|
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/82840c077aa9a9d5.css" as="style"/><link rel="stylesheet" href="/_next/static/css/82840c077aa9a9d5.css" data-n-g=""/><link rel="preload" href="/_next/static/css/b22c0750c14cc089.css" as="style"/><link rel="stylesheet" href="/_next/static/css/b22c0750c14cc089.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-2f903acb0cccbf9e.js" defer=""></script><script src="/_next/static/chunks/framework-cdccea7a52cc6e81.js" defer=""></script><script src="/_next/static/chunks/main-5e6780279ca21cb9.js" defer=""></script><script src="/_next/static/chunks/pages/_app-98898cc8c45f6edb.js" defer=""></script><script src="/_next/static/chunks/59b4e022-7a3b5554b806349f.js" defer=""></script><script src="/_next/static/chunks/c8eae200-966ce352f7b5d2b9.js" defer=""></script><script src="/_next/static/chunks/f36c6662-03bb5e9d9aa0b0aa.js" defer=""></script><script src="/_next/static/chunks/4c744e84-e3161d754618373f.js" defer=""></script><script src="/_next/static/chunks/065a3ddb-9a38ca0d60f0bf2f.js" defer=""></script><script src="/_next/static/chunks/1cc2734a-2c5b6c0367fcde86.js" defer=""></script><script src="/_next/static/chunks/183-ebd633fed7c74545.js" defer=""></script><script src="/_next/static/chunks/50-cfc2514205b86001.js" defer=""></script><script src="/_next/static/chunks/543-f8766685f7f451e2.js" defer=""></script><script src="/_next/static/chunks/696-b992b9e1ce75777e.js" defer=""></script><script src="/_next/static/chunks/25-792af14760d9df34.js" defer=""></script><script src="/_next/static/chunks/318-d6f1200138628ec3.js" defer=""></script><script src="/_next/static/chunks/286-e0950c3083c672e8.js" defer=""></script><script src="/_next/static/chunks/pages/slices/%5Blib%5D/%5BsliceName%5D/%5Bvariation%5D-24acc6726cb20b65.js" defer=""></script><script src="/_next/static/90I9r-r0EJ5L9L71lZ_H-/_buildManifest.js" defer=""></script><script src="/_next/static/90I9r-r0EJ5L9L71lZ_H-/_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":"90I9r-r0EJ5L9L71lZ_H-","runtimeConfig":{"sentryEnvironment":"beta"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
package/out/slices.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/
|
|
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/82840c077aa9a9d5.css" as="style"/><link rel="stylesheet" href="/_next/static/css/82840c077aa9a9d5.css" data-n-g=""/><link rel="preload" href="/_next/static/css/f8eb526e10bc2441.css" as="style"/><link rel="stylesheet" href="/_next/static/css/f8eb526e10bc2441.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-2f903acb0cccbf9e.js" defer=""></script><script src="/_next/static/chunks/framework-cdccea7a52cc6e81.js" defer=""></script><script src="/_next/static/chunks/main-5e6780279ca21cb9.js" defer=""></script><script src="/_next/static/chunks/pages/_app-98898cc8c45f6edb.js" defer=""></script><script src="/_next/static/chunks/59b4e022-7a3b5554b806349f.js" defer=""></script><script src="/_next/static/chunks/c8eae200-966ce352f7b5d2b9.js" defer=""></script><script src="/_next/static/chunks/50-cfc2514205b86001.js" defer=""></script><script src="/_next/static/chunks/25-792af14760d9df34.js" defer=""></script><script src="/_next/static/chunks/286-e0950c3083c672e8.js" defer=""></script><script src="/_next/static/chunks/pages/slices-a633527fee62b6cd.js" defer=""></script><script src="/_next/static/90I9r-r0EJ5L9L71lZ_H-/_buildManifest.js" defer=""></script><script src="/_next/static/90I9r-r0EJ5L9L71lZ_H-/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/slices","query":{},"buildId":"90I9r-r0EJ5L9L71lZ_H-","runtimeConfig":{"sentryEnvironment":"beta"},"nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "slice-machine-ui",
|
|
3
|
-
"version": "1.26.1-beta.
|
|
3
|
+
"version": "1.26.1-beta.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "A visual builder for your Slice Models with all the tools you need to generate data models and mock CMS content locally.",
|
|
6
6
|
"repository": {
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@radix-ui/react-visually-hidden": "1.0.3",
|
|
38
|
-
"@slicemachine/manager": "0.18.4-beta.
|
|
39
|
-
"start-slicemachine": "0.12.19-beta.
|
|
38
|
+
"@slicemachine/manager": "0.18.4-beta.5",
|
|
39
|
+
"start-slicemachine": "0.12.19-beta.5"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@emotion/react": "11.11.1",
|
package/pages/changes.tsx
CHANGED
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
} from "@components/AppLayout";
|
|
14
14
|
import { ChangesItems } from "@components/ChangesItems";
|
|
15
15
|
import { AuthErrorPage, OfflinePage } from "@components/ChangesEmptyState";
|
|
16
|
+
import { BreadcrumbItem } from "@src/components/Breadcrumb";
|
|
16
17
|
import { NoChangesBlankSlate } from "@src/features/changes/BlankSlates";
|
|
17
18
|
import { PushChangesButton } from "@src/features/changes/PushChangesButton";
|
|
18
19
|
import { AuthStatus } from "@src/modules/userContext/types";
|
|
@@ -134,7 +135,9 @@ const Changes: React.FunctionComponent = () => {
|
|
|
134
135
|
</Head>
|
|
135
136
|
<AppLayout>
|
|
136
137
|
<AppLayoutHeader>
|
|
137
|
-
<AppLayoutBreadcrumb
|
|
138
|
+
<AppLayoutBreadcrumb>
|
|
139
|
+
<BreadcrumbItem>Changes</BreadcrumbItem>
|
|
140
|
+
</AppLayoutBreadcrumb>
|
|
138
141
|
<AppLayoutActions>
|
|
139
142
|
<PushChangesButton
|
|
140
143
|
disabled={
|
package/pages/slices.tsx
CHANGED
|
@@ -23,6 +23,7 @@ import EmptyState from "@components/EmptyState";
|
|
|
23
23
|
import ScreenshotChangesModal from "@components/ScreenshotChangesModal";
|
|
24
24
|
import { RenameSliceModal } from "@components/Forms/RenameSliceModal";
|
|
25
25
|
import { DeleteSliceModal } from "@components/DeleteSliceModal";
|
|
26
|
+
import { BreadcrumbItem } from "@src/components/Breadcrumb";
|
|
26
27
|
import { SliceMachineStoreType } from "@src/redux/type";
|
|
27
28
|
import { getLibraries, getRemoteSlices } from "@src/modules/slices";
|
|
28
29
|
import { useScreenshotChangesModal } from "@src/hooks/useScreenshotChangesModal";
|
|
@@ -78,7 +79,9 @@ const SlicesIndex: React.FunctionComponent = () => {
|
|
|
78
79
|
</Head>
|
|
79
80
|
<AppLayout>
|
|
80
81
|
<AppLayoutHeader>
|
|
81
|
-
<AppLayoutBreadcrumb
|
|
82
|
+
<AppLayoutBreadcrumb>
|
|
83
|
+
<BreadcrumbItem>Slices</BreadcrumbItem>
|
|
84
|
+
</AppLayoutBreadcrumb>
|
|
82
85
|
{localLibraries?.length !== 0 && sliceCount !== 0 ? (
|
|
83
86
|
<AppLayoutActions>
|
|
84
87
|
<Button
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
|
|
3
|
+
import { Breadcrumb, BreadcrumbItem } from "./Breadcrumb";
|
|
4
|
+
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
|
|
7
|
+
const meta: Meta<typeof Breadcrumb> = {
|
|
8
|
+
component: Breadcrumb,
|
|
9
|
+
argTypes: {
|
|
10
|
+
children: { control: { disable: true } },
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export default meta;
|
|
15
|
+
|
|
16
|
+
export const Default = {
|
|
17
|
+
args: {
|
|
18
|
+
children: [
|
|
19
|
+
<BreadcrumbItem>Foo</BreadcrumbItem>,
|
|
20
|
+
<BreadcrumbItem>Bar</BreadcrumbItem>,
|
|
21
|
+
<BreadcrumbItem>Baz</BreadcrumbItem>,
|
|
22
|
+
],
|
|
23
|
+
},
|
|
24
|
+
} satisfies Story;
|
|
25
|
+
|
|
26
|
+
export const WithActiveItem = {
|
|
27
|
+
args: {
|
|
28
|
+
children: [
|
|
29
|
+
<BreadcrumbItem>Foo</BreadcrumbItem>,
|
|
30
|
+
<BreadcrumbItem>Bar</BreadcrumbItem>,
|
|
31
|
+
<BreadcrumbItem active>Baz</BreadcrumbItem>,
|
|
32
|
+
],
|
|
33
|
+
},
|
|
34
|
+
} satisfies Story;
|
|
@@ -1,35 +1,53 @@
|
|
|
1
1
|
import { Text } from "@prismicio/editor-ui";
|
|
2
|
-
import
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
import { PropsWithChildren, Children, FC } from "react";
|
|
3
4
|
|
|
4
|
-
import
|
|
5
|
+
import styles from "./Breadcrumb.module.css";
|
|
5
6
|
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
separator?: string;
|
|
10
|
-
};
|
|
7
|
+
export const Breadcrumb: FC<PropsWithChildren> = (props) => {
|
|
8
|
+
const { children, ...otherProps } = props;
|
|
9
|
+
const childrenCount = Children.count(children);
|
|
11
10
|
|
|
12
|
-
export const Breadcrumb: FC<BreadcrumbProps> = ({
|
|
13
|
-
folder,
|
|
14
|
-
page,
|
|
15
|
-
separator = "/",
|
|
16
|
-
}) => {
|
|
17
11
|
return (
|
|
18
|
-
<
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
>
|
|
22
|
-
<Text color="grey11">
|
|
23
|
-
{folder}
|
|
24
|
-
{page !== undefined ? (
|
|
12
|
+
<nav aria-label="Breadcrumb" {...otherProps}>
|
|
13
|
+
<ol className={styles.items}>
|
|
14
|
+
{Children.map(children, (child, index) => (
|
|
25
15
|
<>
|
|
26
|
-
|
|
27
|
-
<
|
|
28
|
-
{page}
|
|
29
|
-
</Text>
|
|
16
|
+
{child}
|
|
17
|
+
{index < childrenCount - 1 ? <BreadcrumbSeparator /> : null}
|
|
30
18
|
</>
|
|
31
|
-
)
|
|
19
|
+
))}
|
|
20
|
+
</ol>
|
|
21
|
+
</nav>
|
|
22
|
+
);
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
type BreadcrumbItemProps = PropsWithChildren<{
|
|
26
|
+
active?: boolean;
|
|
27
|
+
}>;
|
|
28
|
+
|
|
29
|
+
export const BreadcrumbItem: FC<BreadcrumbItemProps> = (props) => {
|
|
30
|
+
const { active = false, children, ...otherProps } = props;
|
|
31
|
+
|
|
32
|
+
return (
|
|
33
|
+
<li {...otherProps}>
|
|
34
|
+
<Text
|
|
35
|
+
component="span"
|
|
36
|
+
color={active ? "grey12" : "grey11"}
|
|
37
|
+
className={clsx(active && styles.active)}
|
|
38
|
+
>
|
|
39
|
+
{children}
|
|
40
|
+
</Text>
|
|
41
|
+
</li>
|
|
42
|
+
);
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
const BreadcrumbSeparator: FC = () => {
|
|
46
|
+
return (
|
|
47
|
+
<li aria-hidden={true}>
|
|
48
|
+
<Text component="span" color="grey11">
|
|
49
|
+
/
|
|
32
50
|
</Text>
|
|
33
|
-
</
|
|
51
|
+
</li>
|
|
34
52
|
);
|
|
35
53
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Breadcrumb,
|
|
1
|
+
export { Breadcrumb, BreadcrumbItem } from "./Breadcrumb";
|
|
@@ -89,10 +89,9 @@ describe.each(formats)(
|
|
|
89
89
|
// Submit the form
|
|
90
90
|
await user.click(screen.getByRole("button", { name: "Rename" }));
|
|
91
91
|
|
|
92
|
-
const
|
|
93
|
-
customType.format === "page" ? "Page types" : "Custom types";
|
|
92
|
+
const breadcrumb = screen.getByLabelText("Breadcrumb");
|
|
94
93
|
expect(
|
|
95
|
-
|
|
94
|
+
await within(breadcrumb).findByText(renamedCustomType),
|
|
96
95
|
).toBeVisible();
|
|
97
96
|
});
|
|
98
97
|
},
|
|
@@ -178,10 +177,10 @@ async function renderCustomTypesBuilderPage({
|
|
|
178
177
|
const renderResults = render(<CustomTypesBuilderPage />, customTypeMockStore);
|
|
179
178
|
|
|
180
179
|
const folder = customType.format === "page" ? "Page types" : "Custom types";
|
|
181
|
-
const breadcrumb = await screen.
|
|
182
|
-
|
|
180
|
+
const breadcrumb = await screen.findByLabelText("Breadcrumb");
|
|
181
|
+
expect(breadcrumb).toHaveTextContent(
|
|
182
|
+
`${folder}/${customType.label as string}`,
|
|
183
183
|
);
|
|
184
|
-
expect(breadcrumb).toBeVisible();
|
|
185
184
|
|
|
186
185
|
return renderResults;
|
|
187
186
|
}
|
|
@@ -26,6 +26,7 @@ import { CUSTOM_TYPES_MESSAGES } from "../customTypesMessages";
|
|
|
26
26
|
import { EditDropdown } from "../EditDropdown";
|
|
27
27
|
import { PageSnippetDialog } from "./PageSnippetDialog";
|
|
28
28
|
import { CustomTypeProvider } from "./CustomTypeProvider";
|
|
29
|
+
import { BreadcrumbItem } from "@src/components/Breadcrumb";
|
|
29
30
|
|
|
30
31
|
export const CustomTypesBuilderPage: FC = () => {
|
|
31
32
|
const router = useRouter();
|
|
@@ -87,10 +88,14 @@ const CustomTypesBuilderPageWithProvider: React.FC<
|
|
|
87
88
|
<>
|
|
88
89
|
<AppLayoutHeader>
|
|
89
90
|
<AppLayoutBackButton url={config.tablePagePathname} />
|
|
90
|
-
<AppLayoutBreadcrumb
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
91
|
+
<AppLayoutBreadcrumb>
|
|
92
|
+
<BreadcrumbItem>
|
|
93
|
+
{messages.name({ start: true, plural: true })}
|
|
94
|
+
</BreadcrumbItem>
|
|
95
|
+
<BreadcrumbItem active>
|
|
96
|
+
{customType.label ?? customType.id}
|
|
97
|
+
</BreadcrumbItem>
|
|
98
|
+
</AppLayoutBreadcrumb>
|
|
94
99
|
<AppLayoutActions>
|
|
95
100
|
<AutoSaveStatusIndicator status={actionQueueStatus} />
|
|
96
101
|
{customType.format === "page" ? (
|
|
@@ -20,6 +20,7 @@ import { ErrorBoundary } from "@src/ErrorBoundary";
|
|
|
20
20
|
import type { CustomTypeFormat } from "@slicemachine/manager";
|
|
21
21
|
|
|
22
22
|
import { CustomTypesTable } from "./CustomTypesTable";
|
|
23
|
+
import { BreadcrumbItem } from "@src/components/Breadcrumb";
|
|
23
24
|
|
|
24
25
|
type CustomTypesTablePageProps = {
|
|
25
26
|
format: CustomTypeFormat;
|
|
@@ -61,12 +62,11 @@ export const CustomTypesTablePage: FC<CustomTypesTablePageProps> = ({
|
|
|
61
62
|
fallback={
|
|
62
63
|
<AppLayout>
|
|
63
64
|
<AppLayoutHeader>
|
|
64
|
-
<AppLayoutBreadcrumb
|
|
65
|
-
|
|
66
|
-
start: true,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
/>
|
|
65
|
+
<AppLayoutBreadcrumb>
|
|
66
|
+
<BreadcrumbItem>
|
|
67
|
+
{customTypesMessages.name({ start: true, plural: true })}
|
|
68
|
+
</BreadcrumbItem>
|
|
69
|
+
</AppLayoutBreadcrumb>
|
|
70
70
|
<AppLayoutActions>
|
|
71
71
|
<Button disabled startIcon="add">
|
|
72
72
|
Create
|
|
@@ -81,12 +81,11 @@ export const CustomTypesTablePage: FC<CustomTypesTablePageProps> = ({
|
|
|
81
81
|
>
|
|
82
82
|
<AppLayout>
|
|
83
83
|
<AppLayoutHeader>
|
|
84
|
-
<AppLayoutBreadcrumb
|
|
85
|
-
|
|
86
|
-
start: true,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
/>
|
|
84
|
+
<AppLayoutBreadcrumb>
|
|
85
|
+
<BreadcrumbItem>
|
|
86
|
+
{customTypesMessages.name({ start: true, plural: true })}
|
|
87
|
+
</BreadcrumbItem>
|
|
88
|
+
</AppLayoutBreadcrumb>
|
|
90
89
|
<AppLayoutActions>
|
|
91
90
|
<Button
|
|
92
91
|
data-testid="create-ct"
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
import { ErrorBoundary } from "@src/ErrorBoundary";
|
|
12
12
|
|
|
13
13
|
import { LabsList } from "./LabsList";
|
|
14
|
+
import { BreadcrumbItem } from "@src/components/Breadcrumb";
|
|
14
15
|
|
|
15
16
|
export const LabsPage: FC = () => {
|
|
16
17
|
return (
|
|
@@ -58,7 +59,9 @@ const LabsPageLayout: FC<LabsPageLayoutProps> = ({
|
|
|
58
59
|
<AppLayout>
|
|
59
60
|
{withHeader ? (
|
|
60
61
|
<AppLayoutHeader>
|
|
61
|
-
<AppLayoutBreadcrumb
|
|
62
|
+
<AppLayoutBreadcrumb>
|
|
63
|
+
<BreadcrumbItem>Labs</BreadcrumbItem>
|
|
64
|
+
</AppLayoutBreadcrumb>
|
|
62
65
|
</AppLayoutHeader>
|
|
63
66
|
) : null}
|
|
64
67
|
<AppLayoutContent>{children}</AppLayoutContent>
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
} from "@components/AppLayout";
|
|
12
12
|
import { ConnectGitRepository } from "@src/features/settings/git/ConnectGitRepository";
|
|
13
13
|
import { useGitIntegrationExperiment } from "@src/features/settings/git/useGitIntegrationExperiment";
|
|
14
|
+
import { BreadcrumbItem } from "@src/components/Breadcrumb";
|
|
14
15
|
|
|
15
16
|
export const SettingsPage: FC = () => {
|
|
16
17
|
const gitIntegrationExperiment = useGitIntegrationExperiment();
|
|
@@ -34,7 +35,9 @@ export const SettingsPage: FC = () => {
|
|
|
34
35
|
</Head>
|
|
35
36
|
<AppLayout>
|
|
36
37
|
<AppLayoutHeader>
|
|
37
|
-
<AppLayoutBreadcrumb
|
|
38
|
+
<AppLayoutBreadcrumb>
|
|
39
|
+
<BreadcrumbItem>Settings</BreadcrumbItem>
|
|
40
|
+
</AppLayoutBreadcrumb>
|
|
38
41
|
</AppLayoutHeader>
|
|
39
42
|
<AppLayoutContent>
|
|
40
43
|
<Box flexDirection="column" maxWidth={600}>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[849],{21985:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/changes",function(){return t(59046)}])},56577:function(e,n,t){"use strict";t.d(n,{z:function(){return d}});var i=t(62230),r=t(85244),s=t(98240),o=t(52322),c=t(2784),l=t(75289),a=function(e,n){return e?"".concat(e,"-").concat(n):""},u=function(e){switch(e){case"white":case"secondaryMedium":case"secondarySmall":case"secondary":return"#1A1523";default:return"grey01"}},d=(0,c.forwardRef)(function(e,n){var t=e.label,c=e.Icon,d=e.type,h=e.form,x=e.isLoading,f=void 0!==x&&x,p=e.disabled,m=e.onClick,g=e.sx,j=e.iconSize,v=void 0===j?16:j,y=e.iconFill,b=e.variant,C=void 0===b?"primary":b,_=(0,s.Z)(e,["label","Icon","type","form","isLoading","disabled","onClick","sx","iconSize","iconFill","variant"]);return(0,o.jsx)(l.zx,(0,r.Z)((0,i.Z)({ref:n,sx:(0,i.Z)((0,r.Z)((0,i.Z)({},void 0===g?{}:g),{display:"flex",alignItems:"center",justifyContent:"center",gap:"8px"}),f?{cursor:"wait !important"}:{}),type:d,form:h,disabled:void 0!==p&&p||f,onClick:f?void 0:m,variant:C},_),{children:f?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(l.$j,{size:v,color:u(C),"data-testid":a(_["data-testid"],"spinner")}),c&&t]}):(0,o.jsxs)(o.Fragment,{children:[c&&(0,o.jsx)(c,{size:v,fill:y,"data-testid":a(_["data-testid"],"icon")}),t]})}))})},59469:function(e,n,t){"use strict";var i=t(62230),r=t(52322),s=t(75289);n.Z=function(e){var n=e.elems,t=e.renderElem,o=e.defineElementKey,c=e.gridTemplateMinPx,l=e.gridGap,a=e.sx;return(0,r.jsx)(s.xu,{as:"section",sx:(0,i.Z)({display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(".concat(void 0===c?"320px":c,", 1fr))"),gridGap:void 0===l?"16px":l,pt:2},a),children:n.map(function(e,n){return e?(0,r.jsx)("span",{children:t(e,n)},"".concat(o(e),"-").concat(n+1)):null})})}},59046:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return eC}});var i=t(22710),r=t(99267),s=t(52322),o=t(2784),c=t(88932),l=t(97729),a=t.n(l),u=t(65077),d=t(5632),h=t.n(d),x=t(53220),f=t(951),p=t(22715),m=t(75289),g=function(e){var n=e.children;return(0,s.jsx)(m.kC,{sx:{alignItems:"center",justifyContent:"space-between",mt:"8px",bg:"grey02",borderRadius:4,padding:"12px 16px",width:"100%"},children:n})},j=t(39097),v=t.n(j),y=t(7819),b=t(34728),C=t(67445),_=function(e){var n=e.ct,t=e.status,i=e.authStatus,r=e.isOnline;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(m.xu,{as:"td",style:{width:"40%"},children:(0,s.jsx)(m.xv,{sx:{fontWeight:500},children:n.label})}),(0,s.jsx)(m.xu,{as:"td",style:{width:"40%"},children:n.id}),(0,s.jsx)(m.xu,{as:"td",style:{width:"20%"},children:(0,s.jsx)(b.O,{authStatus:i,isOnline:r,modelStatus:t,modelType:"CustomType"})})]})},w=function(e){var n=e.customTypes,t=e.modelsStatuses,i=e.authStatus,r=e.isOnline;return(0,s.jsxs)(m.xu,{as:"table","data-legacy-component":!0,children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{className:"transparent small",children:[(0,s.jsx)(m.xu,{as:"th",sx:{width:"40%",fontWeight:600},children:"Name"}),(0,s.jsx)(m.xu,{as:"th",sx:{width:"40%",fontWeight:600},children:"API ID"}),(0,s.jsx)(m.xu,{as:"th",sx:{width:"20%",fontWeight:600},children:"Status"})]})}),(0,s.jsx)("tbody",{children:n.map(function(e){return(0,y.TG)(e)?(0,s.jsx)(v(),{passHref:!0,href:C.cd[e.local.format].getBuilderPagePathname(e.local.id),legacyBehavior:!0,children:(0,s.jsx)("tr",{tabIndex:0,"data-testid":"custom-type-".concat(e.local.id),children:(0,s.jsx)(_,{ct:e.local,status:t.customTypes[e.local.id],authStatus:i,isOnline:r},e.local.id)})},e.local.id):(0,s.jsx)("tr",{tabIndex:0,className:"disabled","data-testid":"custom-type-".concat(e.remote.id),children:(0,s.jsx)(_,{ct:e.remote,status:t.customTypes[e.remote.id],authStatus:i,isOnline:r},e.remote.id)},e.remote.id)})})]})},k=t(59469),S=t(15836),Z=t(5479),z=t(47731),T=t(32681),D=t(71749),L=t(8564),O=t(11563),N=t(82770);function R(){var e=(0,O.L)("slicemachine-dev-collaboration"),n=(0,o.useState)(!1),t=n[0],i=n[1],r=null==e?void 0:e.payload;return((0,o.useEffect)(function(){(null==e?void 0:e.value)==="on"&&void 0!==r&&N.Xe.track({event:"dev-collab:workflow-stub-displayed"})},[e,r]),(null==e?void 0:e.value)!=="on"||void 0===r)?null:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(p.xu,{alignItems:"flex-start",border:{bottom:!0,left:!0,right:!0,top:!0},borderRadius:6,borderStyle:"dashed",flexDirection:"column",flexShrink:0,gap:8,padding:16,width:320,children:[(0,s.jsxs)(p.xu,{flexDirection:"column",gap:2,children:[(0,s.jsx)(p.xv,{variant:"smallBold",children:r.cardTitle}),(0,s.jsx)(p.xv,{color:"grey11",variant:"small",children:r.cardDescription})]}),(0,s.jsx)(p.zx,{color:"grey",onClick:function(){N.Xe.track({event:"dev-collab:set-up-workflow-opened"}),i(!0)},children:r.cardButtonLabel})]}),(0,s.jsxs)(p.Vq,{onOpenChange:function(e){e||i(!1)},open:t,size:{height:"auto",width:448},children:[(0,s.jsx)(p.fK,{title:r.dialogTitle}),(0,s.jsx)(p.cZ,{children:(0,s.jsxs)(p.xu,{flexDirection:"column",children:[(0,s.jsx)(p.xu,{flexDirection:"column",padding:16,children:(0,s.jsx)(p.xv,{children:r.dialogDescription})}),(0,s.jsx)(p.kX,{cancel:{text:"Cancel"},ok:{text:r.dialogButtonLabel,onClick:function(){N.Xe.track({event:"dev-collab:join-beta-clicked"}),window.open(r.dialogButtonLink,"_blank"),i(!1)}},size:"medium"})]})})]})]})}var I=function(e){var n=e.unSyncedCustomTypes,t=e.unSyncedSlices,i=e.modelsStatuses,r=e.authStatus,c=e.isOnline,l=(0,z.H)(),a=l.modalPayload,u=l.onOpenModal,d=a.sliceFilterFn,h=a.defaultVariationSelector,x=t.filter(function(e){return i.slices[e.model.id]!==T.GJ.Deleted});return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(p.xu,{gap:16,alignItems:"flex-start",children:[(0,s.jsxs)(p.xu,{flexDirection:"column",flexGrow:1,children:[n.length>0&&(0,s.jsxs)(p.xu,{flexDirection:"column",children:[(0,s.jsx)(g,{children:(0,s.jsxs)(p.xu,{children:[(0,s.jsx)(p.xv,{variant:"h5",children:"Types"}),(0,s.jsx)(p.xv,{variant:"h5",sx:{marginLeft:8},children:n.length})]})}),(0,s.jsx)(w,{customTypes:n,modelsStatuses:i,authStatus:r,isOnline:c})]}),t.length>0&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(p.xu,{padding:{bottom:8},children:(0,s.jsxs)(g,{children:[(0,s.jsxs)(p.xu,{children:[(0,s.jsx)(p.xv,{variant:"h5",children:"Slices"}),(0,s.jsx)(p.xv,{variant:"h5",sx:{marginLeft:8},children:t.length})]}),(0,s.jsxs)(p.xu,{children:[t.some(function(e){return(0,Z.cx)(e)>0&&i.slices[e.model.id]!==T.GJ.Deleted})&&(0,s.jsxs)(p.xv,{color:"amber11",sx:{marginRight:8,alignSelf:"center"},children:[(0,s.jsx)(f.sQg,{size:16,style:{marginRight:"4px",position:"relative",top:"3px"}}),"Missing Screenshots"]}),(0,s.jsxs)(p.zx,{color:"dark",onClick:function(){return u({sliceFilterFn:function(e){return e}})},children:[(0,s.jsx)(f.hOO,{style:{color:"#FFF",fontSize:"15px",position:"relative",top:"3px",marginRight:"4px"}})," ","Update all screenshots"]})]})]})}),(0,s.jsx)(k.Z,{gridGap:"32px 16px",elems:t,gridTemplateMinPx:"305px",defineElementKey:function(e){return e.model.name},renderElem:function(e){var n=i.slices[e.model.id];return(0,s.jsx)(D.b,{action:{type:"status",authStatus:r,isOnline:c,modelStatus:n},isDeleted:n===T.GJ.Deleted,mode:"navigation",onUpdateScreenshot:function(){u({sliceFilterFn:function(n){return n.filter(function(n){return n.model.id===e.model.id})}})},slice:e,variant:"solid"})}}),(0,s.jsx)(S.Z,{slices:d(x),defaultVariationSelector:h})]})]}),(0,s.jsx)(L.S,{children:(0,s.jsx)(o.Suspense,{children:(0,s.jsx)(R,{})})})]})})},F=t(91914),H=function(){return(0,s.jsx)(m.kC,{sx:{justifyContent:"center",alignItems:"center",flex:1},children:(0,s.jsxs)(m.kC,{sx:{flexDirection:"column",alignItems:"center",transform:"translateY(-50%)"},children:[(0,s.jsx)(F.wQ1,{size:48}),(0,s.jsx)(m.xv,{sx:{fontWeight:600,fontSize:"24px",lineHeight:"32px",mb:"8px",mt:"2px",textAlign:"center"},children:"No internet connection"}),(0,s.jsx)(m.xv,{sx:{fontSize:"13px",lineHeight:"24px",textAlign:"center"},children:"Connect to the internet to sync your changes."})]})})},E=t(90374),B=t(79096),M=function(e){var n=e.authStatus,t=(0,E.Z)().openLoginModal;return(0,s.jsxs)(p.xu,{flexDirection:"column",height:"100%",alignItems:"center",justifyContent:"center",gap:8,children:[n===B.t.FORBIDDEN?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(p.xv,{variant:"h3",align:"center",children:"It seems like you are logged out"}),(0,s.jsx)(p.xv,{align:"center",children:"Log in to connect to your repository."})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(p.xv,{variant:"h3",align:"center",children:"It seems like you don't have access to this repository"}),(0,s.jsx)(p.xv,{align:"center",children:"Check that the repository name is correct, then contact your repository administrator."})]}),(0,s.jsxs)(p.xv,{align:"center",children:["If that doesn't work, it's possible that Slice Machine is having trouble accessing Prismic's servers."," ",(0,s.jsx)(p.hh,{href:"https://community.prismic.io/",children:"Contact our support team"}),"."]}),n===B.t.FORBIDDEN&&(0,s.jsx)(p.zx,{onClick:function(){return t()},children:"Log in to Prismic"})]})},A=t(2754),G=t(34543),P=t(62230),W=t(85244),V=t(98240),U=t(6277);t(25977);var X={primary:"_1ecs97dbc8 _1ecs97dbjl _1ecs97dbc2 _1ecs97dbjf _1ecs97dbca _1ecs97dbjn",secondary:"_1ecs97daji _1ecs97dah3 _1ecs97dajc _1ecs97dagx _1ecs97dajk _1ecs97dah5"},Q={normal:"ovkapw1",smallBold:"ovkapw2",inherit:"ovkapw3 _1ecs97df47"},Y=function(e){var n=e.children,t=e.color,i=e.endIcon,r=e.href,c=e.textVariant,l=void 0===c?"smallBold":c,a=(0,V.Z)(e,["children","color","endIcon","href","textVariant"]);return(0,s.jsxs)("a",(0,W.Z)((0,P.Z)({href:r,target:"_blank",rel:"noreferrer"},a),{className:(0,U.W)("ovkapw0 _1ecs97dez0 _1ecs97df41 _1ecs97dez2 _1ecs97dez8",X[void 0===t?"primary":t]),children:[(0,s.jsx)(p.xv,{component:"span",color:"inherit",variant:l,children:n}),(0,o.isValidElement)(i)?(0,o.cloneElement)(i,{className:(0,U.W)(i.props.className,"_1ecs97dfhw",Q[l])}):null]}))},K=t(56580),J=t(39092),$=function(){var e,n=(e=(0,K.v9)(function(e){return{repoName:(0,J.MY)(e)}}).repoName,"https://".concat(e,".prismic.io/documents/working"));return(0,s.jsxs)(A.R$,{style:{alignSelf:"center",marginTop:p.TV.size[72]},children:[(0,s.jsx)(A.u2,{children:(0,s.jsx)(p.Ee,{src:"/blank-slate-changes-uptodate.png",sizing:"cover"})}),(0,s.jsxs)(A.T9,{children:[(0,s.jsx)(A._T,{children:"Everything up-to-date"}),(0,s.jsx)(A.nf,{children:"You have no changes staged. Your changes appear here after you have saved them, while they're waiting to be pushed to the Page Builder. Ready to get going?"}),(0,s.jsxs)(A.Qj,{children:[(0,s.jsx)(p.zx,{onClick:function(){h().push("/")},children:"Create a page type"}),(0,s.jsx)(Y,{endIcon:(0,s.jsx)(G.AlO,{}),textVariant:"normal",href:n,children:"Create content"})]})]})]})},q=t(80441),ee=t(80299),en=t(75499),et=function(e){return(0,s.jsx)(L.S,{renderError:eo,children:(0,s.jsx)(o.Suspense,{fallback:(0,s.jsx)(ec,{}),children:(0,s.jsx)(ei,(0,P.Z)({},e))})})},ei=function(e){return(0,ee.M)().eligible?(0,s.jsx)(er,(0,P.Z)({},e)):(0,s.jsx)(es,(0,P.Z)({},e))},er=function(e){var n=(0,en.G)().linkedGitRepos;if(!(n.length>0))return(0,s.jsx)(es,(0,P.Z)({},e));var t=q.Q[n[0].provider];return(0,s.jsx)(p.u,{content:"This project uses the Git workflow. Update Prismic by pushing your changes to ".concat(t.name,"."),side:"bottom",children:(0,s.jsx)(es,{disabled:!0})})},es=(0,o.forwardRef)(function(e,n){return(0,s.jsx)(p.zx,(0,W.Z)((0,P.Z)({},e),{ref:n,startIcon:"upload",children:"Push"}))});function eo(){return(0,s.jsx)(p.u,{content:"An error occurred while fetching the list of connected Git repositories.",side:"bottom",children:(0,s.jsx)(es,{disabled:!0})})}var ec=function(){return(0,s.jsx)(p.Od,{height:32,width:71.32})},el=t(56577),ea=t(31667);t(78656);var eu=function(e){var n=e.ctName,t=e.numberOfDocuments,i=e.link,r=e.isOverLimit;return(0,s.jsxs)(m.Zb,{sx:{mb:12},variant:"drawerCard","data-testid":"AssociatedDocumentsCard-".concat(n),children:[(0,s.jsxs)(m.kC,{sx:{flexDirection:"column"},children:[(0,s.jsx)(m.xv,{children:n}),(0,s.jsxs)(m.xv,{sx:{color:"textClear",fontSize:"12px",lineHeight:"16px"},children:[t," documents"]})]}),(0,s.jsx)(m.rU,{href:i,target:"_blank",variant:"cardSmall",sx:{color:void 0!==r&&r?"danger":"purple08"},children:"View documents"})]})},ed=t(79797),eh=t(54132),ex=function(e){var n=e.isOpen,t=e.title,i=e.footer,r=e.explanations,o=e.onClose;return(0,s.jsx)(ed.Z,{placement:"right",open:n,level:null,onClose:o,width:496,children:(0,s.jsx)(eh.Z,{radius:"0px",bodySx:{bg:"white",padding:24,flex:1,display:"flex",flexDirection:"column",overflow:"scroll"},footerSx:{p:0},sx:{flexDirection:"column",display:"flex",height:"100%",border:"none"},borderFooter:!0,Header:function(){return(0,s.jsxs)(m.kC,{sx:{p:"16px",alignItems:"center",justifyContent:"space-between",borderBottom:function(e){var n;return"1px solid ".concat(String(null===(n=e.colors)||void 0===n?void 0:n.borders))}},children:[(0,s.jsx)(m.kC,{sx:{alignItems:"center"},children:(0,s.jsx)(m.X6,{sx:{fontSize:"14px",fontWeight:"bold",ml:1},children:t})}),(0,s.jsx)(m.x8,{type:"button",onClick:function(){return o()}})]})},Footer:function(){return(0,s.jsx)(m.kC,{sx:{flexDirection:"column",justifyContent:"center",alignItems:"center",paddingRight:16,borderTop:function(e){var n;return"1px solid ".concat(String(null===(n=e.colors)||void 0===n?void 0:n.darkBorders))},backgroundColor:"white",padding:20},children:i})},children:r})})},ef=function(e){var n=e.onToggle,t=e.isConfirmed,i=e.sx;return(0,s.jsxs)(m.kC,{sx:(0,P.Z)({borderRadius:6,flexDirection:"column",backgroundColor:"grey03",padding:12,width:"100%"},i),children:[(0,s.jsx)(m.xv,{sx:{fontWeight:"bold",mb:2},children:"Are you sure to proceed?"}),(0,s.jsxs)(m.__,{sx:{mt:"4px",py:1},variant:"large",children:[(0,s.jsx)(m.XZ,{defaultChecked:t,onChange:n,variant:"forms.checkbox.dark"}),"Delete these Documents"]})]})},ep=function(e){var n=e.pushChanges,t=e.modalData,i=e.onClose,r=(0,o.useState)(!1),c=r[0],l=r[1],a=(0,K.v9)(function(e){return{remoteOnlyCustomTypes:(0,ea.Ch)(e).filter(y.yp)}}).remoteOnlyCustomTypes;if((null==t?void 0:t.type)!=="SOFT")return null;var u=t.details.customTypes.map(function(e){var n,t=a.find(function(n){return(0,y.n5)(n)===e.id});return void 0===t?null:(0,s.jsx)(eu,{isOverLimit:!0,ctName:null!==(n=t.remote.label)&&void 0!==n?n:t.remote.id,link:e.url,numberOfDocuments:e.numberOfDocuments},e.id)});return(0,s.jsx)(ex,{isOpen:"SOFT"===t.type,title:"Confirm deletion",onClose:i,footer:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ef,{onToggle:function(){l(!c)},isConfirmed:c,sx:{mb:10}}),(0,s.jsx)(el.z,{label:"Push changes",variant:"primary",onClick:function(){n(c)},disabled:!c,sx:{fontWeight:"bold",color:"white",borderRadius:6,width:"100%"}})]}),explanations:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(m.xv,{sx:{fontWeight:"bold",mb:1,lineHeight:"24px"},children:"This action will also delete Documents."}),(0,s.jsxs)(m.xv,{sx:{mb:24},children:[t.details.customTypes.length>1?"These types have":"This type has"," ","associated Documents, which will also be deleted. This might create broken links in your repository."]}),u]})})},em=function(e){var n=e.pushChanges,t=e.modalData,i=e.onClose,r=(0,K.v9)(function(e){return{remoteOnlyCustomTypes:(0,ea.Ch)(e).filter(y.yp)}}).remoteOnlyCustomTypes;if((null==t?void 0:t.type)!=="HARD")return null;var o=t.details.customTypes.map(function(e){var n,t=r.find(function(n){return(0,y.n5)(n)===e.id});return void 0===t?null:(0,s.jsx)(eu,{isOverLimit:!0,ctName:null!==(n=t.remote.label)&&void 0!==n?n:t.remote.id,link:e.url,numberOfDocuments:e.numberOfDocuments},e.id)});return(0,s.jsx)(ex,{isOpen:"HARD"===t.type,title:"Manual action required",onClose:i,footer:(0,s.jsx)(el.z,{label:"Try again",variant:"primary",onClick:function(){n(!1)},sx:{fontWeight:"bold",color:"white",borderRadius:6,width:"100%"}}),explanations:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(m.xv,{sx:{fontWeight:"bold",mb:1,lineHeight:"24px"},children:["Your type",t.details.customTypes.length>1&&"s"," cannot be deleted."]}),(0,s.jsxs)(m.xv,{sx:{mb:24},children:[t.details.customTypes.length>1?"These types have":"This type has"," ","too many associated Documents. Archive and delete these Documents manually and then try deleting the types again."]}),o]})})},eg=t(46326),ej=t(41834),ev=t(80262),ey=t(16847),eb=t(50950),eC=function(){var e,n=(0,ej.X)(),t=n.unSyncedSlices,l=n.unSyncedCustomTypes,h=n.changedCustomTypes,f=n.changedSlices,p=n.modelsStatuses,m=(0,ev.L)(),g=(0,ey.n)(),j=(0,E.Z)(),v=j.pushChangesSuccess,y=j.refreshState,b=(0,o.useState)(!1),C=b[0],_=b[1],w=(0,o.useState)(void 0),k=w[0],S=w[1],Z=(0,eb.g)().autoSyncStatus,z=(0,d.useRouter)(),T=t.length+l.length;(0,o.useEffect)(function(){("synced"===Z||"failed"===Z||"syncing"===Z)&&z.push("/")},[Z,z]);var D=(e=(0,i.Z)(function(e){var n,t,i;return(0,r.__generator)(this,function(t){switch(t.label){case 0:return t.trys.push([0,5,,6]),_(!0),S(void 0),[4,(0,eg.t)({confirmDeleteDocuments:e,changedCustomTypes:h,changedSlices:f})];case 1:if(!(void 0!==(n=t.sent())))return[3,2];return S(n),[3,4];case 2:return[4,(0,N.y0)()];case 3:y(t.sent()),v(),c.Am.success("All slices and types have been pushed"),t.label=4;case 4:return[3,6];case 5:return i=t.sent(),console.error("Something went wrong when manually pushing your changes",i),c.Am.error("Something went wrong when pushing your changes. Check your terminal logs."),[3,6];case 6:return _(!1),[2]}})}),function(n){return e.apply(this,arguments)}),L=(0,o.useMemo)(function(){return m?g===B.t.UNAUTHORIZED||g===B.t.FORBIDDEN?(0,s.jsx)(M,{authStatus:g}):0===T?(0,s.jsx)($,{}):(0,s.jsx)(I,{unSyncedSlices:t,unSyncedCustomTypes:l,modelsStatuses:p,authStatus:g,isOnline:m}):(0,s.jsx)(H,{})},[m,g,T,t,l,p,]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a(),{children:(0,s.jsx)("title",{children:"Changes - Slice Machine"})}),(0,s.jsxs)(x.LN,{children:[(0,s.jsxs)(x.wd,{children:[(0,s.jsx)(x.Cx,{folder:"Changes"}),(0,s.jsx)(x.K2,{children:(0,s.jsx)(et,{disabled:0===T||!m||g===B.t.UNAUTHORIZED||g===B.t.FORBIDDEN||C,loading:C,onClick:function(){D(!1)}})})]}),(0,s.jsx)(x.RN,{children:(0,s.jsxs)(u.xR,{sx:{display:"flex",flexDirection:"column"},children:[L,(0,s.jsx)(ep,{pushChanges:function(e){D(e)},modalData:k,onClose:function(){return S(void 0)}}),(0,s.jsx)(em,{pushChanges:function(e){D(e)},modalData:k,onClose:function(){return S(void 0)}})]})})]})]})}},2754:function(e,n,t){"use strict";t.d(n,{R$:function(){return u},Qj:function(){return p},T9:function(){return h},nf:function(){return f},u2:function(){return d},_T:function(){return x}});var i=t(67557),r=t(62230),s=t(85244),o=t(98240),c=t(52322),l=t(22715),a=t(6277);t(69143);var u=function(e){var n=e.backgroundImage,t=e.style,l=(0,o.Z)(e,["backgroundImage","style"]),u=void 0!==n;return(0,c.jsx)("article",(0,s.Z)((0,r.Z)({},l),{className:(0,a.W)("_18bjhbz0 _1ecs97dez0 _1ecs97dez1 _1ecs97dez2 _1ecs97dezb _1ecs97dfiv _1ecs97dfix _1ecs97dfiz _1ecs97d3fg _1ecs97d3mt _1ecs97df0r _1ecs97df23 _1ecs97df2h _1ecs97dezp",(0,i.Z)({},"_18bjhbz1 _1ecs97dezx _1ecs97df4v",u)),style:(0,r.Z)({backgroundImage:u?"url(".concat(n,")"):void 0},t)}))},d=function(e){return(0,c.jsx)("div",(0,s.Z)((0,r.Z)({},e),{className:"_1ecs97dez0 _1ecs97dez1 _1ecs97dez2 _1ecs97dezb _1ecs97d6r8 _1ecs97d6yl _1ecs97df29 _1ecs97df2l _1ecs97dezp"}))},h=function(e){return(0,c.jsx)("div",(0,s.Z)((0,r.Z)({},e),{className:"_18bjhbz3 _1ecs97dez0 _1ecs97dez1 _1ecs97dez2 _1ecs97dezb _1ecs97dffv"}))},x=function(e){return(0,c.jsx)(l.xv,(0,s.Z)((0,r.Z)({},e),{className:"_18bjhbz4"}))},f=function(e){return(0,c.jsx)(l.xv,(0,s.Z)((0,r.Z)({},e),{className:"_18bjhbz5",color:"grey11"}))},p=function(e){return(0,c.jsx)("div",(0,s.Z)((0,r.Z)({},e),{className:"_18bjhbz6 _1ecs97dez0 _1ecs97dez8 _1ecs97dez1 _1ecs97dez2 _1ecs97df95 _1ecs97dfdl",color:"grey"}))}},80441:function(e,n,t){"use strict";t.d(n,{Q:function(){return x}});var i=t(22710),r=t(99267);let s={GitHub:"gitHub"};var o=t(62230),c=t(85244),l=t(52322),a=function(e){return(0,l.jsx)("svg",(0,c.Z)((0,o.Z)({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),{children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.77596 5.47599C4.84147 5.44648 4.91265 5.43167 4.9845 5.4326L19.3525 5.43506C19.4243 5.43413 19.4955 5.44894 19.561 5.47845C19.6265 5.50796 19.6848 5.55146 19.7317 5.60588C19.7786 5.6603 19.8131 5.72433 19.8326 5.79348C19.8521 5.86262 19.8563 5.93521 19.8448 6.00614L19.1802 10.0751H9.71803L10.5722 14.6018H11.1162L11.1162 14.6018H13.7846L14.56 10.0751H19.1803L17.7575 18.8357C17.7387 18.9522 17.6786 19.058 17.5882 19.1339C17.4979 19.2098 17.3832 19.2507 17.2652 19.2492H7.23692C7.2134 19.249 7.19001 19.2476 7.16682 19.2449C7.03392 19.2298 6.90803 19.175 6.80603 19.0868C6.68704 18.9851 6.60772 18.8448 6.58203 18.6904L4.49219 6.00367C4.48069 5.93275 4.48485 5.86016 4.50438 5.79102C4.52392 5.72187 4.55835 5.65784 4.60527 5.60342C4.65218 5.54899 4.71044 5.5055 4.77596 5.47599Z",fill:"currentColor"})}))},u=function(e){return(0,l.jsx)("svg",(0,c.Z)((0,o.Z)({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),{children:(0,l.jsx)("path",{d:"M12 4C7.57486 4 4 7.57486 4 12C4 15.5246 6.30057 18.5257 9.47429 19.6C9.87429 19.6754 10.0251 19.4251 10.0251 19.2251V17.8754C7.8 18.3497 7.32457 16.8 7.32457 16.8C6.94971 15.8743 6.42514 15.6251 6.42514 15.6251C5.70057 15.1246 6.47543 15.1497 6.47543 15.1497C7.27543 15.2 7.69943 15.9749 7.69943 15.9749C8.42514 17.2 9.57486 16.8503 10.0251 16.6491C10.1006 16.1246 10.2994 15.7749 10.5246 15.5749C8.74971 15.3749 6.87543 14.6754 6.87543 11.6251C6.87543 10.7497 7.17486 10.0503 7.69943 9.47543C7.62514 9.27543 7.34971 8.45029 7.77486 7.34971C7.77486 7.34971 8.44914 7.12457 9.97486 8.17486C10.6266 7.99627 11.2991 7.90405 11.9749 7.90057C12.6491 7.90057 13.3497 8 13.9749 8.17486C15.5006 7.14971 16.1749 7.34971 16.1749 7.34971C16.6 8.45029 16.3246 9.27543 16.2503 9.47543C16.776 10.024 17.0754 10.7497 17.0754 11.624C17.0754 14.6994 15.2 15.3749 13.4251 15.5749C13.6994 15.8251 13.9749 16.2994 13.9749 17.0491V19.2503C13.9749 19.4754 14.1246 19.7246 14.5246 19.6251C17.7006 18.5246 20 15.5246 20 12C20 7.57486 16.4251 4 12 4Z",fill:"currentColor"})}))},d=function(e){return(0,l.jsx)("svg",(0,c.Z)((0,o.Z)({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),{children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.7881 10.5954L16.5431 5.20756C16.6328 4.93081 17.0594 4.93081 17.1492 5.20756L18.9076 10.5954H14.7881ZM6.6192 5.20756L4.86353 10.5954H8.97968L7.22468 5.20756C7.1349 4.93081 6.70898 4.93081 6.6192 5.20756ZM4.0299 13.2981L4.86352 10.5954H4.86353H8.979H14.7881H18.9076L19.7392 13.2981C19.7796 13.4207 19.7802 13.553 19.7408 13.676C19.7014 13.799 19.624 13.9063 19.5198 13.9826L11.893 19.5257L11.8879 19.5319L11.8923 19.5378L11.8865 19.5336L11.8835 19.5371L11.8852 19.5326L4.24927 13.9826C4.0299 13.8246 3.95092 13.5458 4.0299 13.2981Z",fill:"currentColor"})}))},h=t(81038),x={gitHub:{connect:(0,i.Z)(function(){return(0,r.__generator)(this,function(e){switch(e.label){case 0:return[4,f("gitHub")];case 1:return[2,e.sent()]}})}),Icon:u,name:"GitHub",supported:m("gitHub")},bitbucket:{connect:(0,i.Z)(function(){return(0,r.__generator)(this,function(e){switch(e.label){case 0:return[4,f("bitbucket")];case 1:return[2,e.sent()]}})}),Icon:a,name:"Bitbucket",supported:m("bitbucket")},gitLab:{connect:(0,i.Z)(function(){return(0,r.__generator)(this,function(e){switch(e.label){case 0:return[4,f("gitLab")];case 1:return[2,e.sent()]}})}),Icon:d,name:"GitLab",supported:m("gitLab")}};function f(e){return p.apply(this,arguments)}function p(){return(p=(0,i.Z)(function(e){var n;return(0,r.__generator)(this,function(t){switch(t.label){case 0:if(!m(e))throw Error("Not implemented.");return[4,h.j.git.getProviderAppInstallURL({provider:e})];case 1:return n=t.sent(),window.open(n,"git-provider-app-installation"),[2]}})})).apply(this,arguments)}function m(e){return Boolean(Object.values(s).includes(e))}},75499:function(e,n,t){"use strict";t.d(n,{G:function(){return a}});var i=t(22710),r=t(17064),s=t(99267),o=t(17329),c=t(19334),l=t(81038);function a(){var e,n,t=(0,r.Z)((0,c.f)(),1)[0];return{linkedGitRepos:(0,o.QT)(u,[t.repositoryName]),linkRepo:(e=(0,i.Z)(function(e){return(0,s.__generator)(this,function(n){switch(n.label){case 0:return[4,l.j.git.linkRepo({prismic:{domain:t.repositoryName},git:e})];case 1:return n.sent(),[4,(0,o.gw)(u,[t.repositoryName])];case 2:return n.sent(),[2]}})}),function(n){return e.apply(this,arguments)}),unlinkRepo:(n=(0,i.Z)(function(e){return(0,s.__generator)(this,function(n){switch(n.label){case 0:return[4,l.j.git.unlinkRepo({prismic:{domain:t.repositoryName},git:e})];case 1:return n.sent(),[4,(0,o.gw)(u,[t.repositoryName])];case 2:return n.sent(),[2]}})}),function(e){return n.apply(this,arguments)})}}function u(e){return d.apply(this,arguments)}function d(){return(d=(0,i.Z)(function(e){return(0,s.__generator)(this,function(n){switch(n.label){case 0:return[4,l.j.git.fetchLinkedRepos({prismic:{domain:e}})];case 1:return[2,n.sent()]}})})).apply(this,arguments)}},19334:function(e,n,t){"use strict";t.d(n,{f:function(){return c}});var i=t(22710),r=t(99267),s=t(17329),o=t(81038);function c(){var e,n=(0,s.QT)(l,[]),t=(e=(0,i.Z)(function(e){return(0,r.__generator)(this,function(n){switch(n.label){case 0:return[4,o.j.project.writeSliceMachineConfig({config:e})];case 1:return n.sent(),(0,s.VA)(l,[],e),[2]}})}),function(n){return e.apply(this,arguments)});return[n,t]}function l(){return a.apply(this,arguments)}function a(){return(a=(0,i.Z)(function(){return(0,r.__generator)(this,function(e){return[2,o.j.project.getSliceMachineConfig()]})})).apply(this,arguments)}},69143:function(){},25977:function(){}},function(e){e.O(0,[898,789,123,543,918,25,286,774,888,179],function(){return e(e.s=21985)}),_N_E=e.O()}]);
|