slice-machine-ui 1.21.2-dev-next-release.3 → 1.21.3-dev-next-release.0
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/DeleteVariationModal/index.tsx +1 -0
- package/components/Forms/RenameVariationModal/RenameVariationModal.tsx +1 -0
- package/lib/builders/SliceBuilder/Sidebar/index.tsx +26 -10
- package/out/404.html +1 -1
- package/out/_next/static/7-xwDUFUOhWgfbJon6kf_/_buildManifest.js +1 -0
- package/out/_next/static/chunks/18539003-9f66499125869c64.js +97 -0
- package/out/_next/static/chunks/482-7e97f91961588a90.js +1 -0
- package/out/_next/static/chunks/{550-abf97d3008006056.js → 550-19c9163a7ca0e711.js} +1 -1
- package/out/_next/static/chunks/{80-72d903b2a0bd5dc3.js → 80-7b8a97d0122ff74a.js} +1 -1
- package/out/_next/static/chunks/{840-6e00e3fb69984e18.js → 840-c3192c2481effe16.js} +1 -1
- package/out/_next/static/chunks/904-721355903ee2357a.js +1 -0
- package/out/_next/static/chunks/{958-7352113230cf4059.js → 958-c48ce4650cf3eb86.js} +1 -1
- package/out/_next/static/chunks/pages/{_app-2b075d0d6b5cb35e.js → _app-a67c22a01a3bb9a3.js} +125 -117
- package/out/_next/static/chunks/pages/{changes-58e202426cfeb11f.js → changes-c9a244c30cfbfa92.js} +1 -1
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-ac0d8307645fe81f.js +1 -0
- package/out/_next/static/css/42c3dec8e94c9fae.css +1 -0
- package/out/_next/static/css/{5d18ccf403d4649a.css → 5da5d3cd7a87c3cf.css} +1 -1
- package/out/_next/static/css/{31841735992dea23.css → 77abb01eee0e43a7.css} +1 -1
- package/out/_next/static/css/{78250665d395ea50.css → 7d650bca12dc4061.css} +1 -1
- package/out/_next/static/css/{b0be58d878c0fac3.css → be1f49e49a5aa7eb.css} +1 -1
- package/out/_next/static/css/{58a89606d9ca9093.css → cb33580e45d01b59.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/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 +7 -7
- package/postcss.config.js +2 -0
- package/src/features/slices/convertLegacySlice/ConvertLegacySliceAsNewSliceDialog.tsx +1 -0
- package/src/features/slices/convertLegacySlice/ConvertLegacySliceAsNewVariationDialog.tsx +1 -0
- package/src/features/slices/convertLegacySlice/ConvertLegacySliceMergeWithIdenticalDialog.tsx +1 -0
- package/out/_next/static/bmg4AZ5_aawA-FHD0CyW1/_buildManifest.js +0 -1
- package/out/_next/static/chunks/18539003-5d8b6a04053638af.js +0 -97
- package/out/_next/static/chunks/482-2b96f646465808a7.js +0 -1
- package/out/_next/static/chunks/904-41d6e45ae563ffc0.js +0 -1
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-3d8beb33e88d9e35.js +0 -1
- package/out/_next/static/css/cf7719d67ec45489.css +0 -1
- /package/out/_next/static/{bmg4AZ5_aawA-FHD0CyW1 → 7-xwDUFUOhWgfbJon6kf_}/_ssgManifest.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Box, Button } from "@prismicio/editor-ui";
|
|
1
|
+
import { Box, Button, Gradient } from "@prismicio/editor-ui";
|
|
2
2
|
import { useRouter } from "next/router";
|
|
3
3
|
import { type Dispatch, type FC, type SetStateAction, useState } from "react";
|
|
4
4
|
|
|
@@ -73,16 +73,32 @@ export const Sidebar: FC<SidebarProps> = (props) => {
|
|
|
73
73
|
variationId={v.id}
|
|
74
74
|
/>
|
|
75
75
|
))}
|
|
76
|
-
<
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
76
|
+
<Box
|
|
77
|
+
backgroundColor="grey2"
|
|
78
|
+
bottom={0}
|
|
79
|
+
flexDirection="column"
|
|
80
|
+
padding={{ bottom: 40, inline: 24 }}
|
|
81
|
+
position="sticky"
|
|
82
|
+
// As `PageLayoutContent` has a `16px` bottom padding, we need to
|
|
83
|
+
// apply an equal negative margin to the `Box` if we want it to sit
|
|
84
|
+
// flush with the bottom of the page.
|
|
85
|
+
// @ts-expect-error TODO(PBD-1080): write the new `ScrollAreaEndGradient` component instead of using a `Box`.
|
|
86
|
+
style={{ marginBottom: "-16px" }}
|
|
83
87
|
>
|
|
84
|
-
|
|
85
|
-
|
|
88
|
+
<Gradient sx={{ left: 0, position: "absolute", right: 0 }} />
|
|
89
|
+
<Button
|
|
90
|
+
onClick={() => {
|
|
91
|
+
setDialog({ type: "ADD_VARIATION" });
|
|
92
|
+
}}
|
|
93
|
+
startIcon="add"
|
|
94
|
+
// Set `position` to `relative` to position `Button` on top of
|
|
95
|
+
// `Gradient`.
|
|
96
|
+
sx={{ position: "relative" }}
|
|
97
|
+
variant="secondary"
|
|
98
|
+
>
|
|
99
|
+
Add a new variation
|
|
100
|
+
</Button>
|
|
101
|
+
</Box>
|
|
86
102
|
</Box>
|
|
87
103
|
<ScreenshotChangesModal
|
|
88
104
|
slices={sliceFilterFn([slice])}
|
package/out/404.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/42c3dec8e94c9fae.css" as="style"/><link rel="stylesheet" href="/_next/static/css/42c3dec8e94c9fae.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-a67c22a01a3bb9a3.js" defer=""></script><script src="/_next/static/chunks/pages/_error-69b4f498bafdd188.js" defer=""></script><script src="/_next/static/7-xwDUFUOhWgfbJon6kf_/_buildManifest.js" defer=""></script><script src="/_next/static/7-xwDUFUOhWgfbJon6kf_/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":404}},"page":"/_error","query":{},"buildId":"7-xwDUFUOhWgfbJon6kf_","runtimeConfig":{"sentryEnvironment":"alpha"},"nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
self.__BUILD_MANIFEST=function(s,c,a,e,t,i,d,n,b,f){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":[c,i,d,"static/chunks/pages/index-d8e3a2c0d712904f.js"],"/_error":["static/chunks/pages/_error-69b4f498bafdd188.js"],"/changelog":["static/chunks/870-0c7a8a9622de78b7.js","static/chunks/pages/changelog-4b8369d91d82b28b.js"],"/changes":[a,"static/chunks/8eec4907-b712959d9f984b68.js","static/chunks/918-38d08f1e885b222d.js",s,e,"static/css/7d650bca12dc4061.css","static/chunks/pages/changes-c9a244c30cfbfa92.js"],"/custom-types":[c,i,d,"static/chunks/pages/custom-types-2f5664d9492b13fb.js"],"/custom-types/[customTypeId]":[n,s,c,t,b,f,"static/chunks/pages/custom-types/[customTypeId]-3a37eb3373bb8823.js"],"/labs":["static/chunks/pages/labs-2922105ab714d32a.js"],"/page-types/[pageTypeId]":[n,s,c,t,b,f,"static/chunks/pages/page-types/[pageTypeId]-733f3890c0466a05.js"],"/slices":[a,s,e,"static/css/cb33580e45d01b59.css","static/chunks/pages/slices-93b7af2624c85b8e.js"],"/slices/[lib]/[sliceName]/[variation]":[a,s,e,t,"static/css/77abb01eee0e43a7.css","static/chunks/pages/slices/[lib]/[sliceName]/[variation]-ac0d8307645fe81f.js"],"/slices/[lib]/[sliceName]/[variation]/simulator":[a,"static/chunks/72585f70-28b4d7d5384b3703.js","static/chunks/18539003-9f66499125869c64.js","static/chunks/505-fa47e200ac3a012d.js","static/chunks/pages/slices/[lib]/[sliceName]/[variation]/simulator-7b17cb59d0db03b5.js"],sortedPages:["/","/_app","/_error","/changelog","/changes","/custom-types","/custom-types/[customTypeId]","/labs","/page-types/[pageTypeId]","/slices","/slices/[lib]/[sliceName]/[variation]","/slices/[lib]/[sliceName]/[variation]/simulator"]}}("static/chunks/958-c48ce4650cf3eb86.js","static/chunks/550-19c9163a7ca0e711.js","static/chunks/c8eae200-966ce352f7b5d2b9.js","static/chunks/80-7b8a97d0122ff74a.js","static/chunks/482-7e97f91961588a90.js","static/chunks/840-c3192c2481effe16.js","static/css/be1f49e49a5aa7eb.css","static/chunks/474-9a64c602aba34ae5.js","static/chunks/904-721355903ee2357a.js","static/css/5da5d3cd7a87c3cf.css"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
|