@griddo/ax 10.1.70 → 10.1.72

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 (50) hide show
  1. package/config/jest/setup.js +14 -4
  2. package/package.json +5 -2
  3. package/public/img/logos/logoSQY.svg +3 -0
  4. package/public/img/slider/analytics.png +0 -0
  5. package/public/img/slider/content.png +0 -0
  6. package/public/img/slider/editor.png +0 -0
  7. package/public/img/slider/gallery.png +0 -0
  8. package/public/img/slider/left-on.svg +4 -0
  9. package/public/img/slider/left.svg +4 -0
  10. package/public/img/slider/right-on.svg +4 -0
  11. package/public/img/slider/right.svg +4 -0
  12. package/src/__tests__/components/Login/Login.test.tsx +5 -7
  13. package/src/api/integrations.tsx +18 -1
  14. package/src/components/Fields/CheckField/index.tsx +6 -12
  15. package/src/components/Fields/CheckField/style.tsx +16 -6
  16. package/src/components/Fields/NoteField/style.tsx +8 -8
  17. package/src/components/Fields/TextField/index.tsx +3 -1
  18. package/src/components/Fields/TextField/style.tsx +6 -1
  19. package/src/components/Fields/UniqueCheck/index.tsx +3 -1
  20. package/src/components/FieldsBehavior/index.tsx +4 -3
  21. package/src/components/FieldsBehavior/style.tsx +35 -22
  22. package/src/components/Login/Circle/index.tsx +16 -0
  23. package/src/components/Login/Circle/style.tsx +30 -0
  24. package/src/components/Login/LoginSlider/index.tsx +63 -0
  25. package/src/components/Login/LoginSlider/style.tsx +68 -0
  26. package/src/components/Login/index.tsx +102 -58
  27. package/src/components/Login/style.tsx +121 -16
  28. package/src/components/MainWrapper/AppBar/index.tsx +5 -1
  29. package/src/components/MainWrapper/AppBar/style.tsx +17 -1
  30. package/src/components/MainWrapper/index.tsx +3 -1
  31. package/src/components/MainWrapper/style.tsx +35 -4
  32. package/src/components/TableList/index.tsx +3 -5
  33. package/src/containers/App/actions.tsx +23 -7
  34. package/src/containers/App/constants.tsx +2 -0
  35. package/src/containers/App/interfaces.tsx +6 -0
  36. package/src/containers/App/reducer.tsx +4 -0
  37. package/src/containers/Integrations/actions.tsx +32 -2
  38. package/src/modules/Login/index.tsx +16 -3
  39. package/src/modules/Settings/Integrations/BulkHeader/TableHeader/index.tsx +1 -1
  40. package/src/modules/Settings/Integrations/BulkHeader/TableHeader/style.tsx +2 -2
  41. package/src/modules/Settings/Integrations/IntegrationForm/index.tsx +2 -1
  42. package/src/modules/Settings/Integrations/IntegrationItem/index.tsx +27 -13
  43. package/src/modules/Settings/Integrations/IntegrationItem/style.tsx +32 -5
  44. package/src/modules/Settings/Integrations/index.tsx +114 -81
  45. package/src/modules/Settings/Integrations/style.tsx +20 -1
  46. package/src/modules/Sites/SitesList/index.tsx +18 -3
  47. package/src/modules/Sites/SitesList/style.tsx +28 -1
  48. package/src/modules/Sites/index.tsx +4 -1
  49. package/src/themes/theme.json +4 -0
  50. package/src/types/index.tsx +2 -0
@@ -45,4 +45,23 @@ const ModalContent = styled.div`
45
45
  padding: ${(p) => p.theme.spacing.m};
46
46
  `;
47
47
 
48
- export { Wrapper, ContentWrapper, TitleWrapper, Title, Description, TableWrapper, EmptyWrapper, ModalContent };
48
+ const OrderNote = styled.div`
49
+ ${(p) => p.theme.textStyle.uiXS};
50
+ color: ${(p) => p.theme.color.textMediumEmphasis};
51
+ background-color: ${(p) => p.theme.color.uiBackground03};
52
+ padding: ${(p) => p.theme.spacing.s};
53
+ border-radius: ${(p) => p.theme.radii.s};
54
+ margin-bottom: ${(p) => p.theme.spacing.xs};
55
+ `;
56
+
57
+ export {
58
+ Wrapper,
59
+ ContentWrapper,
60
+ TitleWrapper,
61
+ Title,
62
+ Description,
63
+ TableWrapper,
64
+ EmptyWrapper,
65
+ ModalContent,
66
+ OrderNote,
67
+ };
@@ -35,6 +35,9 @@ const SitesList = (props: ISitesListProps): JSX.Element => {
35
35
  error,
36
36
  config,
37
37
  setListConfig,
38
+ hasAnimation,
39
+ setHasAnimation,
40
+ isLoading,
38
41
  } = props;
39
42
 
40
43
  const isMount = useIsMount();
@@ -335,12 +338,18 @@ const SitesList = (props: ISitesListProps): JSX.Element => {
335
338
  </TableList>
336
339
  );
337
340
 
338
- const AllSitesList = () => (displayMode === "grid" ? <GridList /> : <ListTable />);
341
+ const AllSitesList = () => (
342
+ <S.AllSitesListWrapper className={hasAnimation ? "animate" : ""} onAnimationEnd={handleAnimationEnd}>
343
+ {displayMode === "grid" ? <GridList /> : <ListTable />}
344
+ </S.AllSitesListWrapper>
345
+ );
346
+
347
+ const handleAnimationEnd = () => setHasAnimation(false);
339
348
 
340
349
  return (
341
- <MainWrapper title="Sites" rightButton={rightButtonProps} searchAction={setSearchQuery}>
350
+ <MainWrapper title="Sites" rightButton={rightButtonProps} searchAction={setSearchQuery} hasAnimation={hasAnimation}>
342
351
  <ErrorToast ref={errorRef} />
343
- <S.SitesListWrapper>
352
+ <S.SitesListWrapper className={hasAnimation ? "animate" : ""}>
344
353
  {currentRecentSites?.length > 0 ? <RecentSitesList /> : null}
345
354
  <AllSitesHeader />
346
355
  <AllSitesList />
@@ -367,6 +376,8 @@ interface ISitesProps {
367
376
  token: string;
368
377
  error: IError;
369
378
  config: ISiteListConfig;
379
+ hasAnimation: boolean;
380
+ isLoading: boolean;
370
381
  }
371
382
 
372
383
  const mapStateToProps = (state: IRootState) => ({
@@ -377,6 +388,8 @@ const mapStateToProps = (state: IRootState) => ({
377
388
  recentSites: state.sites.recentSites,
378
389
  error: state.app.error,
379
390
  config: state.sites.config,
391
+ hasAnimation: state.app.hasAnimation,
392
+ isLoading: state.app.isLoading,
380
393
  });
381
394
 
382
395
  interface IDispatchProps {
@@ -386,6 +399,7 @@ interface IDispatchProps {
386
399
  publishSitesBulk(ids: number[], params?: IGetSitesParams): Promise<void>;
387
400
  unpublishSitesBulk(ids: number[], params?: IGetSitesParams): Promise<void>;
388
401
  setListConfig(config: ISiteListConfig): void;
402
+ setHasAnimation(hasAnimation: boolean): void;
389
403
  }
390
404
 
391
405
  const mapDispatchToProps = {
@@ -395,6 +409,7 @@ const mapDispatchToProps = {
395
409
  publishSitesBulk: sitesActions.publishSitesBulk,
396
410
  unpublishSitesBulk: sitesActions.unpublishSitesBulk,
397
411
  setListConfig: sitesActions.setListConfig,
412
+ setHasAnimation: appActions.setHasAnimation,
398
413
  };
399
414
 
400
415
  export type ISitesListProps = ISitesProps & IDispatchProps;
@@ -1,4 +1,16 @@
1
- import styled, { css } from "styled-components";
1
+ import styled, { css, keyframes } from "styled-components";
2
+
3
+ const OpacityAnimation = keyframes`
4
+ to {
5
+ opacity: 1;
6
+ }
7
+ }`;
8
+
9
+ const TranslateAnimation = keyframes`
10
+ to {
11
+ transform: translateY(0);
12
+ }
13
+ }`;
2
14
 
3
15
  const SectionHeader = styled.div<{ isRecentSites?: boolean }>`
4
16
  display: flex;
@@ -108,6 +120,12 @@ const RecentSitesItemsWrapper = styled.div<{ isHidden: boolean }>`
108
120
 
109
121
  const SitesListWrapper = styled.div`
110
122
  max-width: calc(100vw - calc(24px * 3));
123
+
124
+ &.animate {
125
+ animation: ${OpacityAnimation} 1.5s ease-in 1.5s;
126
+ animation-fill-mode: forwards;
127
+ opacity: 0;
128
+ }
111
129
  `;
112
130
 
113
131
  const GridList = styled.div<{ isEmpty: boolean; fullWidth: boolean }>`
@@ -158,6 +176,14 @@ const PaginationWrapper = styled.div`
158
176
  padding-right: ${(p) => p.theme.spacing.m};
159
177
  `;
160
178
 
179
+ const AllSitesListWrapper = styled.div`
180
+ &.animate {
181
+ transform: translateY(50px);
182
+ animation: ${TranslateAnimation} 1s ease-out 1.5s;
183
+ animation-fill-mode: forwards;
184
+ }
185
+ `;
186
+
161
187
  export {
162
188
  SectionHeader,
163
189
  CollapseButton,
@@ -175,4 +201,5 @@ export {
175
201
  Thumbnail,
176
202
  ItemName,
177
203
  PaginationWrapper,
204
+ AllSitesListWrapper,
178
205
  };
@@ -23,6 +23,7 @@ const Sites = (props: ISitesProps): JSX.Element => {
23
23
  getAllDataPacks,
24
24
  getUser,
25
25
  globalLangs,
26
+ hasAnimation,
26
27
  } = props;
27
28
 
28
29
  useLayoutEffect(() => {
@@ -48,19 +49,21 @@ const Sites = (props: ISitesProps): JSX.Element => {
48
49
  // eslint-disable-next-line react-hooks/exhaustive-deps
49
50
  }, [token]);
50
51
 
51
- return isLoading ? <Loading /> : <SitesList />;
52
+ return isLoading && !hasAnimation ? <Loading /> : <SitesList />;
52
53
  };
53
54
 
54
55
  const mapStateToProps = (state: IRootState) => ({
55
56
  isLoading: state.app.isLoading,
56
57
  token: state.app.token,
57
58
  globalLangs: state.app.globalLangs,
59
+ hasAnimation: state.app.hasAnimation,
58
60
  });
59
61
 
60
62
  interface IStateProps {
61
63
  isLoading: boolean;
62
64
  token: string;
63
65
  globalLangs: any[];
66
+ hasAnimation: boolean;
64
67
  }
65
68
 
66
69
  interface IDispatchProps {
@@ -40,6 +40,10 @@
40
40
  "description": "",
41
41
  "value": "#E6E7F8"
42
42
  },
43
+ "uiBackground04": {
44
+ "description": "",
45
+ "value": "#20224C"
46
+ },
43
47
  "uiBarBackground": {
44
48
  "description": "",
45
49
  "value": "#FFFFFF"
@@ -809,6 +809,8 @@ export interface IIntegration {
809
809
  };
810
810
  active?: boolean;
811
811
  variables: undefined | IIntegrationVariable[];
812
+ scriptOrder: number;
813
+ correlativeScriptOrder?: number;
812
814
  }
813
815
 
814
816
  export interface IIntegrationVariable {