@candlerip/shared3 0.0.148 → 0.0.149

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@candlerip/shared3",
3
- "version": "0.0.148",
3
+ "version": "0.0.149",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./src/index.js",
@@ -19,12 +19,15 @@ export const composeCandlesPageData = async ({ filterSort: initFilterSort, langu
19
19
  const { candles, candlesCount } = resp.data;
20
20
  return {
21
21
  data: {
22
- candlesList: {
23
- candles,
24
- candlesCount,
25
- },
26
22
  dictionary,
27
- filterSort,
23
+ pageData: {
24
+ candlesList: {
25
+ candles,
26
+ candlesCount,
27
+ },
28
+ filterSort,
29
+ renderDate: new Date(),
30
+ },
28
31
  },
29
32
  };
30
33
  };
@@ -1,4 +1,4 @@
1
- import { Language } from '../../../../../dictionary/index.js';
1
+ import { Dictionary, Language } from '../../../../../dictionary/index.js';
2
2
  import { CustomError } from '../../../../../error/index.js';
3
3
  import { CandleFilterSort } from '../../../../../filter-sort/index.js';
4
4
  import { CandlesPageData } from '../type.js';
@@ -6,7 +6,10 @@ export type ComposeCandlesPageData = (props: {
6
6
  filterSort?: Partial<CandleFilterSort>;
7
7
  language: Language;
8
8
  }) => Promise<{
9
- data: CandlesPageData;
9
+ data: {
10
+ dictionary: Dictionary;
11
+ pageData: CandlesPageData;
12
+ };
10
13
  } | {
11
14
  customError: CustomError;
12
15
  }>;
@@ -1,5 +1,4 @@
1
1
  import { Candle } from '../../../../candle/index.js';
2
- import { Dictionary } from '../../../../dictionary/index.js';
3
2
  import { CandleFilterSort } from '../../../../filter-sort/index.js';
4
3
  import { Person } from '../../../../person/index.js';
5
4
  export interface CandlesPageData {
@@ -9,6 +8,6 @@ export interface CandlesPageData {
9
8
  }>;
10
9
  candlesCount: number;
11
10
  };
12
- dictionary: Dictionary;
13
11
  filterSort: CandleFilterSort;
12
+ renderDate: Date;
14
13
  }