@candlerip/shared3 0.0.66 → 0.0.68

Sign up to get free protection for your applications and to get access to all the features.
Files changed (20) hide show
  1. package/package.json +1 -1
  2. package/src/dictionary/dictionary-id/domains/page-dictionary/contact-page-dictionary/index.d.ts +30 -26
  3. package/src/dictionary/dictionary-id/domains/page-dictionary/cookie-policy-page-dictionary/index.d.ts +15 -11
  4. package/src/dictionary/dictionary-id/domains/page-dictionary/help-page-dictionary/index.d.ts +21 -17
  5. package/src/dictionary/dictionary-id/domains/page-dictionary/home-page-dictionary/index.d.ts +32 -28
  6. package/src/dictionary/dictionary-id/domains/page-dictionary/index.d.ts +0 -1
  7. package/src/dictionary/dictionary-id/domains/page-dictionary/index.js +0 -1
  8. package/src/dictionary/dictionary-id/domains/page-dictionary/page-dictionary/index.d.ts +1 -12
  9. package/src/dictionary/dictionary-id/domains/page-dictionary/terms-and-conditions-page-dictionary/index.d.ts +19 -15
  10. package/src/page/page/configs/index.d.ts +1 -1
  11. package/src/page/page/configs/index.js +1 -1
  12. package/src/page/page/index.d.ts +1 -0
  13. package/src/page/page/index.js +1 -0
  14. package/src/page/page/type-guards/index.d.ts +1 -0
  15. package/src/page/page/type-guards/index.js +1 -0
  16. package/src/page/page/type-guards/is-page/index.d.ts +2 -0
  17. package/src/page/page/type-guards/is-page/index.js +4 -0
  18. package/src/ssr/server-side-props/domains/contact-page-server-side-props/index.d.ts +2 -5
  19. package/src/dictionary/dictionary-id/domains/page-dictionary/redirect-page-dictionary/index.d.ts +0 -3
  20. 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.66",
3
+ "version": "0.0.68",
4
4
  "type": "module",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -1,32 +1,36 @@
1
+ import { CommonPageDictionary } from '../common-page-dictionary/index.js';
1
2
  export interface ContactPageDictionary {
2
- info: {
3
- email: string;
4
- title: string;
5
- facebook: string;
6
- };
7
- sendMessage: {
8
- form: {
9
- buttons: {
10
- reset: string;
11
- submit: string;
12
- };
13
- error: {
14
- email: string;
15
- invalid: string;
16
- required: string;
17
- };
18
- label: {
19
- email: string;
20
- message: string;
21
- name: string;
22
- subject: string;
23
- };
24
- submit: {
25
- error: string;
26
- success: string;
3
+ common: CommonPageDictionary;
4
+ page: {
5
+ info: {
6
+ email: string;
7
+ title: string;
8
+ facebook: string;
9
+ };
10
+ sendMessage: {
11
+ form: {
12
+ buttons: {
13
+ reset: string;
14
+ submit: string;
15
+ };
16
+ error: {
17
+ email: string;
18
+ invalid: string;
19
+ required: string;
20
+ };
21
+ label: {
22
+ email: string;
23
+ message: string;
24
+ name: string;
25
+ subject: string;
26
+ };
27
+ submit: {
28
+ error: string;
29
+ success: string;
30
+ };
27
31
  };
32
+ title: string;
28
33
  };
29
34
  title: string;
30
35
  };
31
- title: string;
32
36
  }
@@ -1,17 +1,21 @@
1
+ import { CommonPageDictionary } from '../common-page-dictionary/index.js';
1
2
  export interface CookiePolicyPageDictionary {
2
- cookiePolicy: {
3
- description: string;
4
- form: {
5
- buttons: {
6
- acceptAll: string;
7
- rejectAll: string;
8
- save: string;
9
- };
10
- label: {
11
- language: string;
3
+ common: CommonPageDictionary;
4
+ page: {
5
+ cookiePolicy: {
6
+ description: string;
7
+ form: {
8
+ buttons: {
9
+ acceptAll: string;
10
+ rejectAll: string;
11
+ save: string;
12
+ };
13
+ label: {
14
+ language: string;
15
+ };
12
16
  };
17
+ title: string;
13
18
  };
14
19
  title: string;
15
20
  };
16
- title: string;
17
21
  }
@@ -1,21 +1,25 @@
1
+ import { CommonPageDictionary } from '../common-page-dictionary/index.js';
1
2
  export interface HelpPageDictionary {
2
- rules: {
3
- intro: string;
4
- persons: string;
5
- personsParagraph: string;
6
- addPersonTitle: string;
7
- addPersonRule1: string;
8
- addPersonRule2: string;
9
- addPersonRule3: string;
10
- addPersonRule4: string;
11
- candles: string;
12
- candlesParagraph1: string;
13
- candlesParagraph2: string;
14
- candlesParagraph3: string;
15
- lightACandleTitle: string;
16
- lightACandleRule1: string;
17
- lightACandleRule2: string;
3
+ common: CommonPageDictionary;
4
+ page: {
5
+ rules: {
6
+ intro: string;
7
+ persons: string;
8
+ personsParagraph: string;
9
+ addPersonTitle: string;
10
+ addPersonRule1: string;
11
+ addPersonRule2: string;
12
+ addPersonRule3: string;
13
+ addPersonRule4: string;
14
+ candles: string;
15
+ candlesParagraph1: string;
16
+ candlesParagraph2: string;
17
+ candlesParagraph3: string;
18
+ lightACandleTitle: string;
19
+ lightACandleRule1: string;
20
+ lightACandleRule2: string;
21
+ title: string;
22
+ };
18
23
  title: string;
19
24
  };
20
- title: string;
21
25
  }
@@ -1,34 +1,38 @@
1
1
  import { CandleCardsDictionary } from '../../candle-dictionary/candle-cards-dictionary/index.js';
2
2
  import { PersonCardsDictionary } from '../../person-dictionary/person-cards-dictionary/index.js';
3
3
  import { PersonImageDictionary } from '../../person-dictionary/person-image-dictionary/index.js';
4
+ import { CommonPageDictionary } from '../common-page-dictionary/index.js';
4
5
  export interface HomePageDictionary {
5
- lastLitCandles: {
6
- candles: string;
7
- candleCards: CandleCardsDictionary;
8
- title: string;
9
- };
10
- lastUploadedPersons: {
11
- personCards: PersonCardsDictionary;
12
- persons: string;
13
- personsMap: string;
14
- title: string;
15
- };
16
- proposal: {
17
- lightACandle: string;
18
- personImage: PersonImageDictionary;
19
- title: string;
20
- };
21
- statistics: {
22
- burningCandles: string;
23
- burnedCandles: string;
24
- candles: string;
25
- persons: string;
26
- title: string;
27
- };
28
- welcome: {
29
- addPerson: string;
30
- description1: string;
31
- description2: string;
32
- title: string;
6
+ common: CommonPageDictionary;
7
+ page: {
8
+ lastLitCandles: {
9
+ candles: string;
10
+ candleCards: CandleCardsDictionary;
11
+ title: string;
12
+ };
13
+ lastUploadedPersons: {
14
+ personCards: PersonCardsDictionary;
15
+ persons: string;
16
+ personsMap: string;
17
+ title: string;
18
+ };
19
+ proposal: {
20
+ lightACandle: string;
21
+ personImage: PersonImageDictionary;
22
+ title: string;
23
+ };
24
+ statistics: {
25
+ burningCandles: string;
26
+ burnedCandles: string;
27
+ candles: string;
28
+ persons: string;
29
+ title: string;
30
+ };
31
+ welcome: {
32
+ addPerson: string;
33
+ description1: string;
34
+ description2: string;
35
+ title: string;
36
+ };
33
37
  };
34
38
  }
@@ -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,19 +1,23 @@
1
+ import { CommonPageDictionary } from '../common-page-dictionary/index.js';
1
2
  export interface TermsAndConditionsPageDictionary {
2
- terms: {
3
- intro: string;
4
- conditionsOfUseTitle: string;
5
- conditionsOfUseParagraph: string;
6
- intellectualPropertyTitle: string;
7
- intellectualPropertyParagraph: string;
8
- userAccountsTitle: string;
9
- userAccountsParagraph: string;
10
- applicableLawTitle: string;
11
- applicableLawParagraph: string;
12
- disputesTitle: string;
13
- disputesParagraph: string;
14
- limitationAndLiabilityTitle: string;
15
- limitationAndLiabilityParagraph: string;
3
+ common: CommonPageDictionary;
4
+ page: {
5
+ terms: {
6
+ intro: string;
7
+ conditionsOfUseTitle: string;
8
+ conditionsOfUseParagraph: string;
9
+ intellectualPropertyTitle: string;
10
+ intellectualPropertyParagraph: string;
11
+ userAccountsTitle: string;
12
+ userAccountsParagraph: string;
13
+ applicableLawTitle: string;
14
+ applicableLawParagraph: string;
15
+ disputesTitle: string;
16
+ disputesParagraph: string;
17
+ limitationAndLiabilityTitle: string;
18
+ limitationAndLiabilityParagraph: string;
19
+ title: string;
20
+ };
16
21
  title: string;
17
22
  };
18
- title: string;
19
23
  }
@@ -1 +1 @@
1
- export declare const PAGES: readonly ["homePage", "contactPage", "helpPage", "termsAndConditionsPage"];
1
+ export declare const PAGES: readonly ["home-page", "contact-page", "cookie-policy-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', 'cookie-policy-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,9 +1,6 @@
1
1
  import { Language } from '../../../../dictionary/index.js';
2
- import { CommonPageDictionary, ContactPageDictionary } from '../../../../dictionary/dictionary-id/index.js';
2
+ import { ContactPageDictionary } from '../../../../dictionary/dictionary-id/index.js';
3
3
  export interface ContactPageServerSideProps {
4
- dictionary: {
5
- common: CommonPageDictionary;
6
- page: ContactPageDictionary;
7
- };
4
+ dictionary: ContactPageDictionary;
8
5
  language: Language;
9
6
  }
@@ -1,3 +0,0 @@
1
- export interface RedirectPageDictionary {
2
- title: string;
3
- }