slice-machine-ui 1.26.1-beta.26 → 1.26.1-beta.28

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 (37) hide show
  1. package/out/404.html +1 -1
  2. package/out/_next/static/chunks/{18539003-8854ec97730b0755.js → 18539003-32a73014bab3a789.js} +16 -16
  3. package/out/_next/static/chunks/{188-9cdca9e923488afd.js → 188-2e42d5ebef697946.js} +1 -1
  4. package/out/_next/static/chunks/756-b11a3060cdc2f2d3.js +10 -0
  5. package/out/_next/static/chunks/{91-717d764a224ac07f.js → 91-67c244a4a034c8de.js} +1 -1
  6. package/out/_next/static/chunks/pages/{_app-69457d1552479991.js → _app-0fe871bb1059a05c.js} +62 -60
  7. package/out/_next/static/chunks/pages/{changelog-042822d12df57669.js → changelog-3f04a3d8747ae383.js} +1 -1
  8. package/out/_next/static/chunks/pages/{changes-194f6cf187fa6ee7.js → changes-ec62e7eb50d6f2be.js} +1 -1
  9. package/out/_next/static/chunks/pages/{labs-7a4fe64cb86b59e8.js → labs-830dde0b85d6dd01.js} +1 -1
  10. package/out/_next/static/chunks/pages/{settings-419384d4d43070c2.js → settings-f61144a9387fd6f1.js} +1 -1
  11. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-ad66e6c755798ce7.js +1 -0
  12. package/out/_next/static/chunks/pages/{slices-98f88ac46b6ad58b.js → slices-d65be4ca817a766d.js} +1 -1
  13. package/out/_next/static/css/037ba37d121d4afe.css +1 -0
  14. package/out/_next/static/css/{172e1bc0b9586c22.css → e3ffbc7931a47375.css} +1 -1
  15. package/out/_next/static/{0OvHJU1Z36y0jgiKYEzEO → pyrbPWeWVLzRfJjG0dPXm}/_buildManifest.js +1 -1
  16. package/out/changelog.html +1 -1
  17. package/out/changes.html +1 -1
  18. package/out/custom-types/[customTypeId].html +1 -1
  19. package/out/custom-types.html +1 -1
  20. package/out/index.html +1 -1
  21. package/out/labs.html +1 -1
  22. package/out/page-types/[pageTypeId].html +1 -1
  23. package/out/settings.html +1 -1
  24. package/out/slices/[lib]/[sliceName]/[variation]/simulator.html +1 -1
  25. package/out/slices/[lib]/[sliceName]/[variation].html +1 -1
  26. package/out/slices.html +1 -1
  27. package/package.json +9 -9
  28. package/src/hooks/useScreenshotChangesModal.ts +1 -1
  29. package/src/legacy/lib/builders/SliceBuilder/VariationsList/VariationsList.module.css +10 -0
  30. package/src/legacy/lib/builders/SliceBuilder/VariationsList/VariationsList.module.css.d.ts +5 -0
  31. package/src/legacy/lib/builders/SliceBuilder/{Sidebar → VariationsList}/index.tsx +164 -76
  32. package/src/legacy/lib/builders/SliceBuilder/index.tsx +10 -5
  33. package/out/_next/static/chunks/756-61dc56b98d01e964.js +0 -10
  34. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-40a32a76b39d70e8.js +0 -1
  35. package/out/_next/static/css/cb5dbae3d23ccce1.css +0 -1
  36. /package/out/_next/static/{0OvHJU1Z36y0jgiKYEzEO → pyrbPWeWVLzRfJjG0dPXm}/_ssgManifest.js +0 -0
  37. /package/src/legacy/lib/builders/SliceBuilder/{Sidebar → VariationsList}/AddVariationModal.tsx +0 -0
@@ -1,4 +1,4 @@
1
- import { Box } from "@prismicio/editor-ui";
1
+ import { Box, useMediaQuery } from "@prismicio/editor-ui";
2
2
  import { type FC } from "react";
3
3
 
4
4
  import { BreadcrumbItem } from "@/components/Breadcrumb";
@@ -16,10 +16,15 @@ import {
16
16
  import SimulatorButton from "@/legacy/lib/builders/SliceBuilder/SimulatorButton";
17
17
 
18
18
  import FieldZones from "./FieldZones";
19
- import { Sidebar } from "./Sidebar";
19
+ import { VariationsList } from "./VariationsList";
20
20
 
21
21
  export const SliceBuilder: FC = () => {
22
22
  const { slice, actionQueueStatus } = useSliceState();
23
+ const horizontalScroll = useMediaQuery({ max: "medium" });
24
+
25
+ const contentDisplayProps = horizontalScroll
26
+ ? { gridTemplateRows: "304px 1fr" }
27
+ : { gridTemplateColumns: "320px 1fr" };
23
28
 
24
29
  return (
25
30
  <AppLayout>
@@ -36,12 +41,12 @@ export const SliceBuilder: FC = () => {
36
41
  </AppLayoutHeader>
37
42
  <AppLayoutContent>
38
43
  <Box
39
- alignItems="flex-start"
40
44
  display="grid"
45
+ alignItems="flex-start"
41
46
  gap={16}
42
- gridTemplateColumns="320px 1fr"
47
+ {...contentDisplayProps}
43
48
  >
44
- <Sidebar />
49
+ <VariationsList horizontalScroll={horizontalScroll} />
45
50
  <FieldZones />
46
51
  </Box>
47
52
  <FloatingBackButton />