@candlerip/shared3 0.0.91 → 0.0.93

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.91",
3
+ "version": "0.0.93",
4
4
  "type": "module",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -0,0 +1 @@
1
+ export * from './minutes/index.js';
@@ -0,0 +1 @@
1
+ export * from './minutes/index.js';
@@ -0,0 +1,5 @@
1
+ export declare const DATE_MINUTES_CONFIG: {
2
+ ONE_DAY_IN_MINUTES: number;
3
+ SEVEN_DAYS_IN_MINUTES: number;
4
+ ONE_YEAR_IN_MINUTES: number;
5
+ };
@@ -0,0 +1,6 @@
1
+ const oneDayInMinutes = 1440;
2
+ export const DATE_MINUTES_CONFIG = {
3
+ ONE_DAY_IN_MINUTES: oneDayInMinutes,
4
+ SEVEN_DAYS_IN_MINUTES: oneDayInMinutes * 7,
5
+ ONE_YEAR_IN_MINUTES: oneDayInMinutes * 365,
6
+ };
@@ -0,0 +1 @@
1
+ export * from './config.js';
@@ -0,0 +1 @@
1
+ export * from './config.js';
package/src/index.d.ts CHANGED
@@ -3,6 +3,7 @@ export * from './auth/index.js';
3
3
  export * from './candle/index.js';
4
4
  export * from './cookie/index.js';
5
5
  export * from './database/index.js';
6
+ export * from './date/index.js';
6
7
  export * from './environment/index.js';
7
8
  export * from './error/index.js';
8
9
  export * from './geographical/index.js';
package/src/index.js CHANGED
@@ -3,6 +3,7 @@ export * from './auth/index.js';
3
3
  export * from './candle/index.js';
4
4
  export * from './cookie/index.js';
5
5
  export * from './database/index.js';
6
+ export * from './date/index.js';
6
7
  export * from './environment/index.js';
7
8
  export * from './error/index.js';
8
9
  export * from './geographical/index.js';
@@ -1,8 +1,10 @@
1
1
  import { Auth } from '../../../auth/index.js';
2
+ import { CookieConsent } from '../../../cookie/index.js';
2
3
  import { Dictionary, Language } from '../../../dictionary/index.js';
3
4
  import { CandleDetailsPageData } from '../../../page/index.js';
4
5
  export interface CandleDetailsServerSideProps {
5
6
  auth: Auth;
7
+ cookieConsent?: CookieConsent;
6
8
  dictionary: Dictionary;
7
9
  language: Language;
8
10
  pageData: CandleDetailsPageData;
@@ -1,7 +1,9 @@
1
1
  import { Auth } from '../../../auth/index.js';
2
+ import { CookieConsent } from '../../../cookie/index.js';
2
3
  import { Dictionary, Language } from '../../../dictionary/index.js';
3
4
  export interface ContactPageServerSideProps {
4
5
  auth: Auth;
6
+ cookieConsent?: CookieConsent;
5
7
  dictionary: Dictionary;
6
8
  language: Language;
7
9
  }
@@ -1,8 +1,10 @@
1
1
  import { Auth } from '../../../auth/index.js';
2
+ import { CookieConsent } from '../../../cookie/index.js';
2
3
  import { Dictionary, Language } from '../../../dictionary/index.js';
3
4
  import { EditCandlePageData } from '../../../page/index.js';
4
5
  export interface EditCandleServerSideProps {
5
6
  auth: Auth;
7
+ cookieConsent?: CookieConsent;
6
8
  dictionary: Dictionary;
7
9
  language: Language;
8
10
  pageData: EditCandlePageData;
@@ -1,7 +1,9 @@
1
1
  import { Auth } from '../../../auth/index.js';
2
+ import { CookieConsent } from '../../../cookie/index.js';
2
3
  import { Dictionary, Language } from '../../../dictionary/index.js';
3
4
  export interface HelpPageServerSideProps {
4
5
  auth: Auth;
6
+ cookieConsent?: CookieConsent;
5
7
  dictionary: Dictionary;
6
8
  language: Language;
7
9
  }
@@ -1,8 +1,10 @@
1
1
  import { Auth } from '../../../auth/index.js';
2
+ import { CookieConsent } from '../../../cookie/index.js';
2
3
  import { Dictionary, Language } from '../../../dictionary/index.js';
3
4
  import { LightCandlePageData } from '../../../page/index.js';
4
5
  export interface LightCandlePageServerSideProps {
5
6
  auth: Auth;
7
+ cookieConsent?: CookieConsent;
6
8
  dictionary: Dictionary;
7
9
  language: Language;
8
10
  pageData: LightCandlePageData;
@@ -1,7 +1,9 @@
1
1
  import { Auth } from '../../../auth/index.js';
2
+ import { CookieConsent } from '../../../cookie/index.js';
2
3
  import { Dictionary, Language } from '../../../dictionary/index.js';
3
4
  export interface TermsAndConditionsPageServerSideProps {
4
5
  auth: Auth;
6
+ cookieConsent?: CookieConsent;
5
7
  dictionary: Dictionary;
6
8
  language: Language;
7
9
  }