@candlerip/shared3 0.0.65 → 0.0.67

Sign up to get free protection for your applications and to get access to all the features.
Files changed (26) hide show
  1. package/package.json +1 -1
  2. package/src/dictionary/dictionary-id/domains/page-dictionary/add-candle-page-dictionary/index.d.ts +4 -8
  3. package/src/dictionary/dictionary-id/domains/page-dictionary/add-person-page-dictionary/index.d.ts +4 -8
  4. package/src/dictionary/dictionary-id/domains/page-dictionary/candle-details-page-dictionary/index.d.ts +41 -45
  5. package/src/dictionary/dictionary-id/domains/page-dictionary/candles-page-dictionary/index.d.ts +2 -6
  6. package/src/dictionary/dictionary-id/domains/page-dictionary/edit-candle-page-dictionary/index.d.ts +4 -8
  7. package/src/dictionary/dictionary-id/domains/page-dictionary/edit-person-page-dictionary/index.d.ts +4 -8
  8. package/src/dictionary/dictionary-id/domains/page-dictionary/index.d.ts +0 -1
  9. package/src/dictionary/dictionary-id/domains/page-dictionary/index.js +0 -1
  10. package/src/dictionary/dictionary-id/domains/page-dictionary/page-dictionary/index.d.ts +1 -12
  11. package/src/dictionary/dictionary-id/domains/page-dictionary/person-candles-page-dictionary/index.d.ts +8 -12
  12. package/src/dictionary/dictionary-id/domains/page-dictionary/person-details-page-dictionary/index.d.ts +41 -45
  13. package/src/dictionary/dictionary-id/domains/page-dictionary/persons-map-page-dictionary/index.d.ts +3 -7
  14. package/src/dictionary/dictionary-id/domains/page-dictionary/persons-page-dictionary/index.d.ts +6 -10
  15. package/src/page/page/configs/index.d.ts +1 -1
  16. package/src/page/page/configs/index.js +1 -1
  17. package/src/page/page/index.d.ts +1 -0
  18. package/src/page/page/index.js +1 -0
  19. package/src/page/page/type-guards/index.d.ts +1 -0
  20. package/src/page/page/type-guards/index.js +1 -0
  21. package/src/page/page/type-guards/is-page/index.d.ts +2 -0
  22. package/src/page/page/type-guards/is-page/index.js +4 -0
  23. package/src/ssr/server-side-props/domains/help-page-server-side-props/index.d.ts +5 -2
  24. package/src/ssr/server-side-props/domains/terms-and-conditions-page-server-side-props/index.d.ts +5 -2
  25. package/src/dictionary/dictionary-id/domains/page-dictionary/redirect-page-dictionary/index.d.ts +0 -7
  26. package/src/dictionary/dictionary-id/domains/page-dictionary/redirect-page-dictionary/index.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@candlerip/shared3",
3
- "version": "0.0.65",
3
+ "version": "0.0.67",
4
4
  "type": "module",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -1,12 +1,8 @@
1
1
  import { CandleMaintenanceDictionary } from '../../candle-dictionary/candle-maintenance-dictionary/index.js';
2
- import { CommonPageDictionary } from '../common-page-dictionary/index.js';
3
2
  export interface AddCandlePageDictionary {
4
- common: CommonPageDictionary;
5
- page: {
6
- maintenance: {
7
- personCandles: string;
8
- candleMaintenance: CandleMaintenanceDictionary;
9
- };
10
- title: string;
3
+ maintenance: {
4
+ personCandles: string;
5
+ candleMaintenance: CandleMaintenanceDictionary;
11
6
  };
7
+ title: string;
12
8
  }
@@ -1,13 +1,9 @@
1
1
  import { PersonMaintenanceDictionary } from '../../person-dictionary/person-maintenance-dictionary/index.js';
2
- import { CommonPageDictionary } from '../common-page-dictionary/index.js';
3
2
  export interface AddPersonPageDictionary {
4
- common: CommonPageDictionary;
5
- page: {
6
- maintenance: {
7
- persons: string;
8
- personMaintenance: PersonMaintenanceDictionary;
9
- title: string;
10
- };
3
+ maintenance: {
4
+ persons: string;
5
+ personMaintenance: PersonMaintenanceDictionary;
11
6
  title: string;
12
7
  };
8
+ title: string;
13
9
  }
@@ -1,53 +1,49 @@
1
1
  import { CandleImageDictionary } from '../../candle-dictionary/candle-image-dictionary/index.js';
2
- import { CommonPageDictionary } from '../common-page-dictionary/index.js';
3
2
  export interface CandleDetailsPageDictionary {
4
- common: CommonPageDictionary;
5
- page: {
6
- detail: {
7
- candleImage: CandleImageDictionary;
8
- description: {
9
- burnedOut: string;
10
- burnsSoFar: string;
11
- description: string;
12
- litName: string;
13
- };
14
- delete: {
15
- cancel: string;
16
- ok: string;
17
- question: string;
18
- submit: {
19
- error: string;
20
- success: string;
21
- };
22
- title: string;
23
- };
24
- edit: {
25
- title: string;
3
+ detail: {
4
+ candleImage: CandleImageDictionary;
5
+ description: {
6
+ burnedOut: string;
7
+ burnsSoFar: string;
8
+ description: string;
9
+ litName: string;
10
+ };
11
+ delete: {
12
+ cancel: string;
13
+ ok: string;
14
+ question: string;
15
+ submit: {
16
+ error: string;
17
+ success: string;
26
18
  };
27
- myCandle: {
28
- cancel: string;
29
- ok: string;
30
- loginRequired: string;
31
- question: string;
32
- submit: {
33
- error: string;
34
- success: string;
35
- };
36
- title: string;
19
+ title: string;
20
+ };
21
+ edit: {
22
+ title: string;
23
+ };
24
+ myCandle: {
25
+ cancel: string;
26
+ ok: string;
27
+ loginRequired: string;
28
+ question: string;
29
+ submit: {
30
+ error: string;
31
+ success: string;
37
32
  };
38
- personCandles: string;
39
- personDetails: string;
40
- relight: {
41
- cancel: string;
42
- ok: string;
43
- question: string;
44
- submit: {
45
- error: string;
46
- success: string;
47
- };
48
- title: string;
33
+ title: string;
34
+ };
35
+ personCandles: string;
36
+ personDetails: string;
37
+ relight: {
38
+ cancel: string;
39
+ ok: string;
40
+ question: string;
41
+ submit: {
42
+ error: string;
43
+ success: string;
49
44
  };
45
+ title: string;
50
46
  };
51
- title: string;
52
47
  };
48
+ title: string;
53
49
  }
@@ -1,9 +1,5 @@
1
1
  import { CandlesListDictionary } from '../../candle-dictionary/candles-list-dictionary/index.js';
2
- import { CommonPageDictionary } from '../common-page-dictionary/index.js';
3
2
  export type CandlesPageDictionary = {
4
- common: CommonPageDictionary;
5
- page: {
6
- candlesList: CandlesListDictionary;
7
- title: string;
8
- };
3
+ candlesList: CandlesListDictionary;
4
+ title: string;
9
5
  };
@@ -1,12 +1,8 @@
1
1
  import { CandleMaintenanceDictionary } from '../../candle-dictionary/candle-maintenance-dictionary/index.js';
2
- import { CommonPageDictionary } from '../common-page-dictionary/index.js';
3
2
  export interface EditCandlePageDictionary {
4
- common: CommonPageDictionary;
5
- page: {
6
- maintenance: {
7
- candleDetails: string;
8
- candleMaintenance: CandleMaintenanceDictionary;
9
- };
10
- title: string;
3
+ maintenance: {
4
+ candleDetails: string;
5
+ candleMaintenance: CandleMaintenanceDictionary;
11
6
  };
7
+ title: string;
12
8
  }
@@ -1,13 +1,9 @@
1
1
  import { PersonMaintenanceDictionary } from '../../person-dictionary/person-maintenance-dictionary/index.js';
2
- import { CommonPageDictionary } from '../common-page-dictionary/index.js';
3
2
  export interface EditPersonPageDictionary {
4
- common: CommonPageDictionary;
5
- page: {
6
- maintenance: {
7
- personDetails: string;
8
- personMaintenance: PersonMaintenanceDictionary;
9
- title: string;
10
- };
3
+ maintenance: {
4
+ personDetails: string;
5
+ personMaintenance: PersonMaintenanceDictionary;
11
6
  title: string;
12
7
  };
8
+ title: string;
13
9
  }
@@ -14,5 +14,4 @@ export * from './person-candles-page-dictionary/index.js';
14
14
  export * from './person-details-page-dictionary/index.js';
15
15
  export * from './persons-map-page-dictionary/index.js';
16
16
  export * from './persons-page-dictionary/index.js';
17
- export * from './redirect-page-dictionary/index.js';
18
17
  export * from './terms-and-conditions-page-dictionary/index.js';
@@ -14,5 +14,4 @@ export * from './person-candles-page-dictionary/index.js';
14
14
  export * from './person-details-page-dictionary/index.js';
15
15
  export * from './persons-map-page-dictionary/index.js';
16
16
  export * from './persons-page-dictionary/index.js';
17
- export * from './redirect-page-dictionary/index.js';
18
17
  export * from './terms-and-conditions-page-dictionary/index.js';
@@ -1,17 +1,6 @@
1
- import { AddCandlePageDictionary } from '../add-candle-page-dictionary/index.js';
2
- import { AddPersonPageDictionary } from '../add-person-page-dictionary/index.js';
3
- import { CandleDetailsPageDictionary } from '../candle-details-page-dictionary/index.js';
4
- import { CandlesPageDictionary } from '../candles-page-dictionary/index.js';
5
1
  import { ContactPageDictionary } from '../contact-page-dictionary/index.js';
6
2
  import { CookiePolicyPageDictionary } from '../cookie-policy-page-dictionary/index.js';
7
- import { EditCandlePageDictionary } from '../edit-candle-page-dictionary/index.js';
8
- import { EditPersonPageDictionary } from '../edit-person-page-dictionary/index.js';
9
3
  import { HelpPageDictionary } from '../help-page-dictionary/index.js';
10
4
  import { HomePageDictionary } from '../home-page-dictionary/index.js';
11
- import { PersonCandlesPageDictionary } from '../person-candles-page-dictionary/index.js';
12
- import { PersonDetailsPageDictionary } from '../person-details-page-dictionary/index.js';
13
- import { PersonsMapPageDictionary } from '../persons-map-page-dictionary/index.js';
14
- import { PersonsPageDictionary } from '../persons-page-dictionary/index.js';
15
- import { RedirectPageDictionary } from '../redirect-page-dictionary/index.js';
16
5
  import { TermsAndConditionsPageDictionary } from '../terms-and-conditions-page-dictionary/index.js';
17
- export type PageDictionary = AddCandlePageDictionary | AddPersonPageDictionary | CandleDetailsPageDictionary | CandlesPageDictionary | ContactPageDictionary | CookiePolicyPageDictionary | EditCandlePageDictionary | EditPersonPageDictionary | HelpPageDictionary | HomePageDictionary | PersonCandlesPageDictionary | PersonDetailsPageDictionary | PersonsPageDictionary | PersonsMapPageDictionary | RedirectPageDictionary | TermsAndConditionsPageDictionary;
6
+ export type PageDictionary = ContactPageDictionary | CookiePolicyPageDictionary | HelpPageDictionary | HomePageDictionary | TermsAndConditionsPageDictionary;
@@ -1,17 +1,13 @@
1
1
  import { CandlesListDictionary } from '../../candle-dictionary/candles-list-dictionary/index.js';
2
2
  import { PersonImageDictionary } from '../../person-dictionary/person-image-dictionary/index.js';
3
- import { CommonPageDictionary } from '../common-page-dictionary/index.js';
4
3
  export interface PersonCandlesPageDictionary {
5
- common: CommonPageDictionary;
6
- page: {
7
- addCandle: {
8
- authWarning: string;
9
- description: string;
10
- lightACandle: string;
11
- personDetails: string;
12
- personImage: PersonImageDictionary;
13
- };
14
- candlesList: CandlesListDictionary;
15
- title: string;
4
+ addCandle: {
5
+ authWarning: string;
6
+ description: string;
7
+ lightACandle: string;
8
+ personDetails: string;
9
+ personImage: PersonImageDictionary;
16
10
  };
11
+ candlesList: CandlesListDictionary;
12
+ title: string;
17
13
  }
@@ -1,52 +1,48 @@
1
1
  import { PersonImageDictionary } from '../../person-dictionary/person-image-dictionary/index.js';
2
- import { CommonPageDictionary } from '../common-page-dictionary/index.js';
3
2
  export interface PersonDetailsPageDictionary {
4
- common: CommonPageDictionary;
5
- page: {
6
- detail: {
7
- candlesCount: {
8
- burnedCandles: string;
9
- burningCandles: string;
10
- };
11
- description: {
12
- birthDate: string;
13
- birthPlaceCountry: string;
14
- deathDate: string;
15
- description: string;
16
- proposable: string;
17
- };
18
- delete: {
19
- cancel: string;
20
- ok: string;
21
- question: string;
22
- submit: {
23
- error: string;
24
- success: string;
25
- };
26
- title: string;
27
- };
28
- edit: {
29
- title: string;
30
- };
31
- images: {
32
- burned: string;
33
- burning: string;
34
- personImage: PersonImageDictionary;
3
+ detail: {
4
+ candlesCount: {
5
+ burnedCandles: string;
6
+ burningCandles: string;
7
+ };
8
+ description: {
9
+ birthDate: string;
10
+ birthPlaceCountry: string;
11
+ deathDate: string;
12
+ description: string;
13
+ proposable: string;
14
+ };
15
+ delete: {
16
+ cancel: string;
17
+ ok: string;
18
+ question: string;
19
+ submit: {
20
+ error: string;
21
+ success: string;
35
22
  };
36
- myPerson: {
37
- cancel: string;
38
- loginRequired: string;
39
- ok: string;
40
- question: string;
41
- submit: {
42
- error: string;
43
- success: string;
44
- };
45
- title: string;
23
+ title: string;
24
+ };
25
+ edit: {
26
+ title: string;
27
+ };
28
+ images: {
29
+ burned: string;
30
+ burning: string;
31
+ personImage: PersonImageDictionary;
32
+ };
33
+ myPerson: {
34
+ cancel: string;
35
+ loginRequired: string;
36
+ ok: string;
37
+ question: string;
38
+ submit: {
39
+ error: string;
40
+ success: string;
46
41
  };
47
- persons: string;
48
- personCandles: string;
42
+ title: string;
49
43
  };
50
- title: string;
44
+ persons: string;
45
+ personCandles: string;
51
46
  };
47
+ title: string;
52
48
  }
@@ -1,11 +1,7 @@
1
- import { CommonPageDictionary } from '../common-page-dictionary/index.js';
2
1
  export interface PersonsMapPageDictionary {
3
- common: CommonPageDictionary;
4
- page: {
5
- map: {
6
- description: string;
7
- title: string;
8
- };
2
+ map: {
3
+ description: string;
9
4
  title: string;
10
5
  };
6
+ title: string;
11
7
  }
@@ -1,15 +1,11 @@
1
1
  import { PersonsListDictionary } from '../../person-dictionary/index.js';
2
- import { CommonPageDictionary } from '../common-page-dictionary/index.js';
3
2
  export interface PersonsPageDictionary {
4
- common: CommonPageDictionary;
5
- page: {
6
- addPerson: {
7
- addPerson: string;
8
- authWarning: string;
9
- descripton: string;
10
- title: string;
11
- };
12
- personsList: PersonsListDictionary;
3
+ addPerson: {
4
+ addPerson: string;
5
+ authWarning: string;
6
+ descripton: string;
13
7
  title: string;
14
8
  };
9
+ personsList: PersonsListDictionary;
10
+ title: string;
15
11
  }
@@ -1 +1 @@
1
- export declare const PAGES: readonly ["homePage", "contactPage", "helpPage", "termsAndConditionsPage"];
1
+ export declare const PAGES: readonly ["home-page", "contact-page", "help-page", "terms-and-conditions-page"];
@@ -1 +1 @@
1
- export const PAGES = ['homePage', 'contactPage', 'helpPage', 'termsAndConditionsPage'];
1
+ export const PAGES = ['home-page', 'contact-page', 'help-page', 'terms-and-conditions-page'];
@@ -1,2 +1,3 @@
1
1
  export * from './configs/index.js';
2
2
  export * from './domains/index.js';
3
+ export * from './type-guards/index.js';
@@ -1,2 +1,3 @@
1
1
  export * from './configs/index.js';
2
2
  export * from './domains/index.js';
3
+ export * from './type-guards/index.js';
@@ -0,0 +1 @@
1
+ export * from './is-page/index.js';
@@ -0,0 +1 @@
1
+ export * from './is-page/index.js';
@@ -0,0 +1,2 @@
1
+ import { Page } from '../../domains/index.js';
2
+ export declare const isPage: (data?: unknown) => data is Page;
@@ -0,0 +1,4 @@
1
+ import { PAGES } from '../../configs/index.js';
2
+ export const isPage = (data) => {
3
+ return PAGES.some((it) => data === it);
4
+ };
@@ -1,6 +1,9 @@
1
1
  import { Language } from '../../../../dictionary/index.js';
2
- import { HelpPageDictionary } from '../../../../dictionary/dictionary-id/index.js';
2
+ import { CommonPageDictionary, HelpPageDictionary } from '../../../../dictionary/dictionary-id/index.js';
3
3
  export interface HelpPageServerSideProps {
4
- dictionary: HelpPageDictionary;
4
+ dictionary: {
5
+ common: CommonPageDictionary;
6
+ page: HelpPageDictionary;
7
+ };
5
8
  language: Language;
6
9
  }
@@ -1,6 +1,9 @@
1
1
  import { Language } from '../../../../dictionary/index.js';
2
- import { TermsAndConditionsPageDictionary } from '../../../../dictionary/dictionary-id/index.js';
2
+ import { CommonPageDictionary, TermsAndConditionsPageDictionary } from '../../../../dictionary/dictionary-id/index.js';
3
3
  export interface TermsAndConditionsPageServerSideProps {
4
- dictionary: TermsAndConditionsPageDictionary;
4
+ dictionary: {
5
+ common: CommonPageDictionary;
6
+ page: TermsAndConditionsPageDictionary;
7
+ };
5
8
  language: Language;
6
9
  }
@@ -1,7 +0,0 @@
1
- import { CommonPageDictionary } from '../common-page-dictionary/index.js';
2
- export interface RedirectPageDictionary {
3
- common: CommonPageDictionary;
4
- page: {
5
- title: string;
6
- };
7
- }