slice-machine-ui 1.19.2-dev-next-release.2 → 1.19.2-dev-next-release.3

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 (47) hide show
  1. package/components/Simulator/components/IframeRenderer/index.tsx +0 -3
  2. package/components/Simulator/components/Toolbar/index.tsx +0 -42
  3. package/components/Simulator/index.tsx +0 -2
  4. package/lib/models/common/Screenshots.ts +1 -10
  5. package/out/404.html +1 -1
  6. package/out/_next/static/chunks/585-f3dca093db4b3792.js +10 -0
  7. package/out/_next/static/chunks/{80-4cd4c6f95d162ef7.js → 80-c513d12da6156fb7.js} +1 -1
  8. package/out/_next/static/chunks/{904-b2d5235c13e62ee8.js → 904-cfe9632d3f82e990.js} +1 -1
  9. package/out/_next/static/chunks/pages/{_app-ec1f14f2d3ddb69d.js → _app-37aead075684fb8d.js} +3 -3
  10. package/out/_next/static/chunks/pages/{changes-768c9cb6fef169d1.js → changes-cacc63c37e28fbbd.js} +1 -1
  11. package/out/_next/static/chunks/pages/{labs-395232bcec99d42a.js → labs-083545e0987b7886.js} +1 -1
  12. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/simulator-5e441f8b049cf91b.js +1 -0
  13. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/{[variation]-4dfda949290eb037.js → [variation]-3d4698bb55b09014.js} +1 -1
  14. package/out/_next/static/sVN8SG2Rfq9IshnbTCNsD/_buildManifest.js +1 -0
  15. package/out/changelog.html +1 -1
  16. package/out/changes.html +1 -1
  17. package/out/custom-types/[customTypeId].html +1 -1
  18. package/out/custom-types.html +1 -1
  19. package/out/index.html +1 -1
  20. package/out/labs.html +1 -1
  21. package/out/page-types/[pageTypeId].html +1 -1
  22. package/out/slices/[lib]/[sliceName]/[variation]/simulator.html +1 -1
  23. package/out/slices/[lib]/[sliceName]/[variation].html +1 -1
  24. package/out/slices.html +1 -1
  25. package/package.json +4 -4
  26. package/src/apiClient.ts +1 -40
  27. package/src/modules/loading/types.ts +0 -1
  28. package/src/modules/screenshots/actions.ts +4 -25
  29. package/src/modules/screenshots/sagas.ts +1 -63
  30. package/src/modules/selectedSlice/actions.ts +1 -5
  31. package/src/modules/selectedSlice/reducer.ts +1 -5
  32. package/src/modules/slices/index.ts +1 -6
  33. package/src/modules/toaster/index.tsx +6 -22
  34. package/src/modules/useSliceMachineActions.ts +2 -25
  35. package/components/ScreenshotToaster/index.tsx +0 -53
  36. package/out/_next/static/DcicAqW9Z1wJ8X-Tue3N3/_buildManifest.js +0 -1
  37. package/out/_next/static/chunks/746-2ca4784811bde7c1.js +0 -8
  38. package/out/_next/static/chunks/770-c75d8245a822c5d9.js +0 -3
  39. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/screenshot-76d40513025fd76d.js +0 -1
  40. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/simulator-39efc79412072ae1.js +0 -1
  41. package/out/slices/[lib]/[sliceName]/[variation]/screenshot.html +0 -1
  42. package/pages/slices/[lib]/[sliceName]/[variation]/screenshot.tsx +0 -61
  43. package/test/src/modules/screenshots/__fixtures__/mocks.json +0 -41
  44. package/test/src/modules/screenshots/__fixtures__/model.json +0 -35
  45. package/test/src/modules/screenshots/__testutils__/getSelectedSliceDummyData.ts +0 -29
  46. package/test/src/modules/screenshots/sagas.test.ts +0 -82
  47. /package/out/_next/static/{DcicAqW9Z1wJ8X-Tue3N3 → sVN8SG2Rfq9IshnbTCNsD}/_ssgManifest.js +0 -0
@@ -65,16 +65,10 @@ import {
65
65
  updateSliceCreator,
66
66
  updateSliceWidgetMockCreator,
67
67
  } from "./selectedSlice/actions";
68
- import {
69
- generateSliceCustomScreenshotCreator,
70
- generateSliceScreenshotCreator,
71
- } from "./screenshots/actions";
68
+ import { generateSliceCustomScreenshotCreator } from "./screenshots/actions";
72
69
  import { ComponentUI } from "../../lib/models/common/ComponentUI";
73
70
  import { ChangesPushSagaPayload, changesPushCreator } from "./pushChangesSaga";
74
- import type {
75
- ScreenDimensions,
76
- ScreenshotGenerationMethod,
77
- } from "@lib/models/common/Screenshots";
71
+ import type { ScreenshotGenerationMethod } from "@lib/models/common/Screenshots";
78
72
  import { saveSliceMockCreator } from "./simulator";
79
73
  import { SaveSliceMockRequest } from "@src/apiClient";
80
74
  import { VariationSM, WidgetsArea } from "@lib/models/common/Slice";
@@ -365,22 +359,6 @@ const useSliceMachineActions = () => {
365
359
  );
366
360
  };
367
361
 
368
- const generateSliceScreenshot = (
369
- variationId: string,
370
- component: ComponentUI,
371
- screenDimensions: ScreenDimensions,
372
- method: ScreenshotGenerationMethod,
373
- ) => {
374
- dispatch(
375
- generateSliceScreenshotCreator.request({
376
- variationId,
377
- component,
378
- screenDimensions,
379
- method,
380
- }),
381
- );
382
- };
383
-
384
362
  const generateSliceCustomScreenshot = (
385
363
  variationId: string,
386
364
  component: ComponentUI,
@@ -517,7 +495,6 @@ const useSliceMachineActions = () => {
517
495
  removeSliceWidget,
518
496
  updateSliceWidgetMock,
519
497
  deleteSliceWidgetMock,
520
- generateSliceScreenshot,
521
498
  generateSliceCustomScreenshot,
522
499
  updateSlice,
523
500
  copyVariationSlice,
@@ -1,53 +0,0 @@
1
- import useSliceMachineActions from "@src/modules/useSliceMachineActions";
2
- import { FC } from "react";
3
- import { Container, Flex, Image, Text } from "theme-ui";
4
-
5
- type ScreenshotToasterProps = {
6
- url: string;
7
- };
8
-
9
- const ScreenshotToaster: FC<ScreenshotToasterProps> = ({ url }) => {
10
- const { openScreenshotPreviewModal } = useSliceMachineActions();
11
-
12
- return (
13
- <Flex
14
- sx={{ height: 75, backgroundColor: "rgba(37, 37, 45, 0.9)" }}
15
- onClick={openScreenshotPreviewModal}
16
- >
17
- <Container
18
- sx={{
19
- width: 102,
20
- justifyContent: "center",
21
- height: "100%",
22
- display: "flex",
23
- mr: 16,
24
- backgroundImage: "url(/pattern.png)",
25
- backgroundColor: "headSection",
26
- backgroundRepeat: "repeat",
27
- backgroundSize: "5px",
28
- borderRadius: "2px",
29
- }}
30
- >
31
- <Image sx={{ maxHeight: "100%", objectFit: "contain" }} src={url} />
32
- </Container>
33
- <Flex
34
- style={{
35
- flexDirection: "column",
36
- justifyContent: "center",
37
- }}
38
- >
39
- <Text sx={{ fontWeight: "Display", fontSize: 16 }}>
40
- Screenshot taken
41
- </Text>
42
- <Text
43
- variant={"xs"}
44
- sx={{ fontSize: 14, color: "icons", fontWeight: "label" }}
45
- >
46
- Tap to view screenshot
47
- </Text>
48
- </Flex>
49
- </Flex>
50
- );
51
- };
52
-
53
- export default ScreenshotToaster;
@@ -1 +0,0 @@
1
- self.__BUILD_MANIFEST=function(s,c,e,a,t,i,b,n,l,d,u){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":[c,i,b,"static/chunks/pages/index-5266b7f0ca55025a.js"],"/_error":["static/chunks/pages/_error-69b4f498bafdd188.js"],"/changelog":["static/chunks/870-0c7a8a9622de78b7.js","static/chunks/pages/changelog-11c9e241f5a8a4cb.js"],"/changes":[e,"static/chunks/8eec4907-b712959d9f984b68.js","static/chunks/918-38d08f1e885b222d.js",s,a,"static/css/f585032018f6024b.css","static/chunks/pages/changes-768c9cb6fef169d1.js"],"/custom-types":[c,i,b,"static/chunks/pages/custom-types-2f5664d9492b13fb.js"],"/custom-types/[customTypeId]":[n,s,c,t,l,d,"static/chunks/pages/custom-types/[customTypeId]-aa37e07c96c8f9b5.js"],"/labs":["static/chunks/pages/labs-395232bcec99d42a.js"],"/page-types/[pageTypeId]":[n,s,c,t,l,d,"static/chunks/pages/page-types/[pageTypeId]-d445f5cabeb460c0.js"],"/slices":[e,s,a,"static/css/22d69420bda374a7.css","static/chunks/pages/slices-f77df402117379c6.js"],"/slices/[lib]/[sliceName]/[variation]":[e,s,a,t,"static/css/e4f4acc81f000d9c.css","static/chunks/pages/slices/[lib]/[sliceName]/[variation]-4dfda949290eb037.js"],"/slices/[lib]/[sliceName]/[variation]/screenshot":[u,"static/chunks/pages/slices/[lib]/[sliceName]/[variation]/screenshot-76d40513025fd76d.js"],"/slices/[lib]/[sliceName]/[variation]/simulator":[e,"static/chunks/72585f70-28b4d7d5384b3703.js","static/chunks/18539003-1bb05c8aa7db2bc2.js",u,"static/chunks/770-c75d8245a822c5d9.js","static/chunks/pages/slices/[lib]/[sliceName]/[variation]/simulator-39efc79412072ae1.js"],sortedPages:["/","/_app","/_error","/changelog","/changes","/custom-types","/custom-types/[customTypeId]","/labs","/page-types/[pageTypeId]","/slices","/slices/[lib]/[sliceName]/[variation]","/slices/[lib]/[sliceName]/[variation]/screenshot","/slices/[lib]/[sliceName]/[variation]/simulator"]}}("static/chunks/958-2b881a5b68ff11ba.js","static/chunks/550-1dafbcec5d50b384.js","static/chunks/c8eae200-966ce352f7b5d2b9.js","static/chunks/80-4cd4c6f95d162ef7.js","static/chunks/482-e6bbd1fcdcdf79ad.js","static/chunks/840-4e395e66a2b2f394.js","static/css/26b51745402a92af.css","static/chunks/125-e3857af2068bbedf.js","static/chunks/904-b2d5235c13e62ee8.js","static/css/1fbd45881dcf43c4.css","static/chunks/746-2ca4784811bde7c1.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();