slice-machine-ui 1.21.2 → 1.21.3-alpha.dev-new-release-process.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/components/DeleteVariationModal/index.tsx +1 -0
  2. package/components/Forms/RenameVariationModal/RenameVariationModal.tsx +1 -0
  3. package/lib/builders/SliceBuilder/Sidebar/index.tsx +26 -10
  4. package/out/404.html +1 -1
  5. package/out/_next/static/4fF6o72tfapCldj3ruQTI/_buildManifest.js +1 -0
  6. package/out/_next/static/chunks/18539003-9f66499125869c64.js +97 -0
  7. package/out/_next/static/chunks/474-5a072e6fac61f703.js +14 -0
  8. package/out/_next/static/chunks/482-ec07ddd6b8d3b7ae.js +1 -0
  9. package/out/_next/static/chunks/{550-abf97d3008006056.js → 550-19c9163a7ca0e711.js} +1 -1
  10. package/out/_next/static/chunks/{80-72d903b2a0bd5dc3.js → 80-7b8a97d0122ff74a.js} +1 -1
  11. package/out/_next/static/chunks/{840-6e00e3fb69984e18.js → 840-c3192c2481effe16.js} +1 -1
  12. package/out/_next/static/chunks/904-fd19b19b9540335b.js +1 -0
  13. package/out/_next/static/chunks/{958-7352113230cf4059.js → 958-8d92be64411b0736.js} +1 -1
  14. package/out/_next/static/chunks/pages/{_app-02e85fec42f453b0.js → _app-21a88fa2d7b60b06.js} +130 -125
  15. package/out/_next/static/chunks/pages/{changes-58e202426cfeb11f.js → changes-c9a244c30cfbfa92.js} +1 -1
  16. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-ac0d8307645fe81f.js +1 -0
  17. package/out/_next/static/css/42c3dec8e94c9fae.css +1 -0
  18. package/out/_next/static/css/{5d18ccf403d4649a.css → 5da5d3cd7a87c3cf.css} +1 -1
  19. package/out/_next/static/css/{31841735992dea23.css → 77abb01eee0e43a7.css} +1 -1
  20. package/out/_next/static/css/{78250665d395ea50.css → 7d650bca12dc4061.css} +1 -1
  21. package/out/_next/static/css/{b0be58d878c0fac3.css → be1f49e49a5aa7eb.css} +1 -1
  22. package/out/_next/static/css/{58a89606d9ca9093.css → cb33580e45d01b59.css} +1 -1
  23. package/out/changelog.html +1 -1
  24. package/out/changes.html +1 -1
  25. package/out/custom-types/[customTypeId].html +1 -1
  26. package/out/custom-types.html +1 -1
  27. package/out/index.html +1 -1
  28. package/out/labs.html +1 -1
  29. package/out/page-types/[pageTypeId].html +1 -1
  30. package/out/slices/[lib]/[sliceName]/[variation]/simulator.html +1 -1
  31. package/out/slices/[lib]/[sliceName]/[variation].html +1 -1
  32. package/out/slices.html +1 -1
  33. package/package.json +9 -9
  34. package/postcss.config.js +2 -0
  35. package/src/features/slices/convertLegacySlice/ConvertLegacySliceAsNewSliceDialog.tsx +1 -0
  36. package/src/features/slices/convertLegacySlice/ConvertLegacySliceAsNewVariationDialog.tsx +1 -0
  37. package/src/features/slices/convertLegacySlice/ConvertLegacySliceMergeWithIdenticalDialog.tsx +1 -0
  38. package/LICENSE +0 -202
  39. package/out/_next/static/MdTAsVD-20JKDPs1agyRg/_buildManifest.js +0 -1
  40. package/out/_next/static/chunks/18539003-5d8b6a04053638af.js +0 -97
  41. package/out/_next/static/chunks/474-9a64c602aba34ae5.js +0 -6
  42. package/out/_next/static/chunks/482-2b96f646465808a7.js +0 -1
  43. package/out/_next/static/chunks/904-41d6e45ae563ffc0.js +0 -1
  44. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-3d8beb33e88d9e35.js +0 -1
  45. package/out/_next/static/css/cf7719d67ec45489.css +0 -1
  46. /package/out/_next/static/{MdTAsVD-20JKDPs1agyRg → 4fF6o72tfapCldj3ruQTI}/_ssgManifest.js +0 -0
@@ -71,6 +71,7 @@ export const DeleteVariationModal: FC<DeleteVariationModalProps> = ({
71
71
  loading: sliceBuilderState.loading,
72
72
  }}
73
73
  cancel={{ text: "Cancel" }}
74
+ size="medium"
74
75
  />
75
76
  </Box>
76
77
  </DialogContent>
@@ -106,6 +106,7 @@ export const RenameVariationModal: FC<RenameVariationModalProps> = ({
106
106
  disabled: !formik.isValid,
107
107
  }}
108
108
  cancel={{ text: "Cancel" }}
109
+ size="medium"
109
110
  />
110
111
  </form>
111
112
  )}
@@ -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
- <Button
77
- onClick={() => {
78
- setDialog({ type: "ADD_VARIATION" });
79
- }}
80
- startIcon="add"
81
- sx={{ bottom: 72, marginInline: 24, position: "sticky" }}
82
- variant="secondary"
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
- Add a new variation
85
- </Button>
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/cf7719d67ec45489.css" as="style"/><link rel="stylesheet" href="/_next/static/css/cf7719d67ec45489.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-02e85fec42f453b0.js" defer=""></script><script src="/_next/static/chunks/pages/_error-69b4f498bafdd188.js" defer=""></script><script src="/_next/static/MdTAsVD-20JKDPs1agyRg/_buildManifest.js" defer=""></script><script src="/_next/static/MdTAsVD-20JKDPs1agyRg/_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":"MdTAsVD-20JKDPs1agyRg","runtimeConfig":{"sentryEnvironment":"production"},"nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
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/4fF6o72tfapCldj3ruQTI/_buildManifest.js" defer=""></script><script src="/_next/static/4fF6o72tfapCldj3ruQTI/_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":"4fF6o72tfapCldj3ruQTI","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,f,n,u,b){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":[c,i,f,"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,f,"static/chunks/pages/custom-types-2f5664d9492b13fb.js"],"/custom-types/[customTypeId]":[n,s,c,t,u,b,"static/chunks/pages/custom-types/[customTypeId]-3a37eb3373bb8823.js"],"/labs":["static/chunks/pages/labs-2922105ab714d32a.js"],"/page-types/[pageTypeId]":[n,s,c,t,u,b,"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-8d92be64411b0736.js","static/chunks/550-19c9163a7ca0e711.js","static/chunks/c8eae200-966ce352f7b5d2b9.js","static/chunks/80-7b8a97d0122ff74a.js","static/chunks/482-ec07ddd6b8d3b7ae.js","static/chunks/840-c3192c2481effe16.js","static/css/be1f49e49a5aa7eb.css","static/chunks/474-5a072e6fac61f703.js","static/chunks/904-fd19b19b9540335b.js","static/css/5da5d3cd7a87c3cf.css"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();