slice-machine-ui 1.21.2-dev-next-release.3 → 1.21.3-alpha.dev-new-release-process.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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/chunks/18539003-9f66499125869c64.js +97 -0
- package/out/_next/static/chunks/474-5a072e6fac61f703.js +14 -0
- package/out/_next/static/chunks/482-ec07ddd6b8d3b7ae.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-fd19b19b9540335b.js +1 -0
- package/out/_next/static/chunks/{958-7352113230cf4059.js → 958-8d92be64411b0736.js} +1 -1
- package/out/_next/static/chunks/pages/{_app-2b075d0d6b5cb35e.js → _app-21a88fa2d7b60b06.js} +130 -125
- 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/_next/static/ePMSnFSx26NFGbNGynvnv/_buildManifest.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 +9 -9
- 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/LICENSE +0 -202
- 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/474-9a64c602aba34ae5.js +0 -6
- 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 → ePMSnFSx26NFGbNGynvnv}/_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-21a88fa2d7b60b06.js" defer=""></script><script src="/_next/static/chunks/pages/_error-69b4f498bafdd188.js" defer=""></script><script src="/_next/static/ePMSnFSx26NFGbNGynvnv/_buildManifest.js" defer=""></script><script src="/_next/static/ePMSnFSx26NFGbNGynvnv/_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":"ePMSnFSx26NFGbNGynvnv","runtimeConfig":{"sentryEnvironment":"alpha"},"nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
|