@candlerip/shared3 0.0.80 → 0.0.82

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.80",
3
+ "version": "0.0.82",
4
4
  "type": "module",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -1,5 +1,6 @@
1
1
  export interface Auth {
2
2
  accessToken: string;
3
+ isAuthenticated: boolean;
3
4
  user: {
4
5
  [key in string]: any;
5
6
  };
@@ -1 +1 @@
1
- export declare const DICTIONARY_IDS: readonly ["acceptAll", "add-candle-page", "add-candle-page.maintenance.submitError", "add-candle-page.maintenance.submitSuccess", "add-person-page", "add-person-page.maintenance.submitError", "add-person-page.maintenance.submitSuccess", "auth.cannotBeChangedLaterWarning", "auth.candleLitWarning", "auth.loginRequired", "author", "burnedCandles", "burnedOutCandle", "burningCandles", "burnsSoFar", "cancel", "candleDetailsPage", "candleDetailsPage.deleteCandle.submitError", "candleDetailsPage.deleteCandle.submitSuccess", "candleDetailsPage.deleteCandle.question", "candleDetailsPage.deleteCandle", "person-details-page.myCandle.submitError", "person-details-page.myCandle.submitSuccess", "person-details-page.myCandle.loginRequired", "person-details-page.myCandle.question", "person-details-page.myCandle", "candleDetailsPage.relightCandle.submitError", "candleDetailsPage.relightCandle.submitSuccess", "candleDetailsPage.relightCandle.question", "candleDetailsPage.relightCandle", "candle", "candlesInCount", "candles", "candles-page", "candle.description", "caseSensitive", "contact-page", "contact-page.infoTitle", "contact-page.sendMessage.submitError", "contact-page.sendMessage.submitSuccess", "contact-page.sendMessageTitle", "cookieConsentForm.title", "cookieConsentForm.description", "cookieConsentForm.languageFormDescription", "cookie-policy-page", "count", "createdAt", "customize", "dropZone.acceptedFormats", "dropZone.drapActive", "dropZone.dropZone", "dropZone.sizeLimit", "editCandlePage", "editCandlePage.maintenance.submitError", "editCandlePage.maintenance.submitSuccess", "editPersonPage", "editPersonPage.maintenance.submitError", "editPersonPage.maintenance.submitSuccess", "email", "english", "facebook", "help-page.addPersonRule1", "help-page.addPersonRule2", "help-page.addPersonRule3", "help-page.addPersonRule4", "help-page.addPersonTitle", "help-page.candlesParagraph1", "help-page.candlesParagraph2", "help-page.candlesParagraph3", "help-page.intro", "help-page.lightACandleRule1", "help-page.lightACandleRule2", "help-page.lightACandleTitle", "help-page.personsParagraph", "help-page", "homePage.proposal", "homePage.lastLitCandles", "homePage.lastUploadedPersons", "homePage.quickCandleLighting.placeOfTheCandle.placehodler", "homePage.quickCandleLighting", "homePage.statistics", "homePage.welcome.description1", "homePage.welcome.description2", "homePage.welcome", "hungarian", "formDateError", "formInvalidEmailError", "formInvalidText", "formMaxLengthError", "formMessageError", "formRequiredError", "image", "invalidImage", "noMoreImages", "tooBigImage", "imageCannotBeLoaded", "imageClickToSeeOriginal", "imageNotSet", "lightACandle", "lightTheCandle", "litName", "login", "loginPage.login.submitError", "loginPage.login.showPassword", "logout", "map", "message", "modify", "more", "motto1", "motto2", "motto3", "myCandles", "myPersons", "name", "ok", "password", "person", "person.birthDate", "person.birthPlaceCountry", "person.deathDate", "person.description", "person.name", "personCandles", "personCandlesPage.addCandle.description", "person-details-page", "person-details-page.deletePerson.submitError", "person-details-page.deletePerson.submitSuccess", "person-details-page.deletePerson.question", "person-details-page.deletePerson", "person-details-page.myPerson.submitError", "person-details-page.myPerson.submitSuccess", "person-details-page.myPerson.loginRequired", "person-details-page.myPerson.question", "person-details-page.myPerson", "persons-page", "persons", "personsInCount", "persons-page.addPerson.description", "persons-page.personsList.hasImage", "persons-page.personsList", "persons-map-page.map.description", "persons-map-page", "proposable", "redirecting", "rejectAll", "reset", "save", "savedSuccessfully", "select", "send", "shareOnFacebook", "sort", "subject", "timeAbbreviationDay", "timeAbbreviationHour", "timeAbbreviationMinute", "terms-and-conditions-page.applicableLawParagraph", "terms-and-conditions-page.applicableLawTitle", "terms-and-conditions-page.conditionsOfUseParagraph", "terms-and-conditions-page.conditionsOfUseTitle", "terms-and-conditions-page.disputesParagraph", "terms-and-conditions-page.disputesTitle", "terms-and-conditions-page.intellectualPropertyParagraph", "terms-and-conditions-page.intellectualPropertyTitle", "terms-and-conditions-page.intro", "terms-and-conditions-page.limitationAndLiabilityParagraph", "terms-and-conditions-page.limitationAndLiabilityTitle", "terms-and-conditions-page", "terms-and-conditions-page.userAccountsParagraph", "terms-and-conditions-page.userAccountsTitle", "username"];
1
+ export declare const DICTIONARY_IDS: readonly ["acceptAll", "add-candle-page", "add-candle-page.maintenance.submitError", "add-candle-page.maintenance.submitSuccess", "add-person-page", "add-person-page.maintenance.submitError", "add-person-page.maintenance.submitSuccess", "auth.cannotBeChangedLaterWarning", "auth.candleLitWarning", "auth.loginRequired", "author", "burnedCandles", "burnedOutCandle", "burningCandles", "burnsSoFar", "cancel", "candleDetailsPage", "candleDetailsPage.deleteCandle.submitError", "candleDetailsPage.deleteCandle.submitSuccess", "candleDetailsPage.deleteCandle.question", "candleDetailsPage.deleteCandle", "person-details-page.myCandle.submitError", "person-details-page.myCandle.submitSuccess", "person-details-page.myCandle.loginRequired", "person-details-page.myCandle.question", "person-details-page.myCandle", "candleDetailsPage.relightCandle.submitError", "candleDetailsPage.relightCandle.submitSuccess", "candleDetailsPage.relightCandle.question", "candleDetailsPage.relightCandle", "candle", "candlesInCount", "candles", "candles-page", "candle.description", "caseSensitive", "contact-page", "contact-page.infoTitle", "contact-page.sendMessage.submitError", "contact-page.sendMessage.submitSuccess", "contact-page.sendMessageTitle", "cookieConsentForm.title", "cookieConsentForm.description", "cookieConsentForm.languageFormDescription", "cookie-policy-page", "count", "createdAt", "customize", "dropZone.acceptedFormats", "dropZone.drapActive", "dropZone.dropZone", "dropZone.sizeLimit", "editCandlePage", "editCandlePage.maintenance.submitError", "editCandlePage.maintenance.submitSuccess", "editPersonPage", "editPersonPage.maintenance.submitError", "editPersonPage.maintenance.submitSuccess", "email", "english", "facebook", "help-page.addPersonRule1", "help-page.addPersonRule2", "help-page.addPersonRule3", "help-page.addPersonRule4", "help-page.addPersonTitle", "help-page.candlesParagraph1", "help-page.candlesParagraph2", "help-page.candlesParagraph3", "help-page.intro", "help-page.lightACandleRule1", "help-page.lightACandleRule2", "help-page.lightACandleTitle", "help-page.personsParagraph", "help-page", "home-page", "home-page.proposal", "home-page.lastLitCandles", "home-page.lastUploadedPersons", "home-page.quickCandleLighting.placeOfTheCandle.placehodler", "home-page.quickCandleLighting", "home-page.statistics", "home-page.welcome.description1", "home-page.welcome.description2", "home-page.welcome", "hungarian", "formDateError", "formInvalidEmailError", "formInvalidText", "formMaxLengthError", "formMessageError", "formRequiredError", "image", "invalidImage", "noMoreImages", "tooBigImage", "imageCannotBeLoaded", "imageClickToSeeOriginal", "imageNotSet", "lightACandle", "lightTheCandle", "litName", "login", "loginPage.login.submitError", "loginPage.login.showPassword", "logout", "map", "message", "modify", "more", "motto1", "motto2", "motto3", "myCandles", "myPersons", "name", "ok", "password", "person", "person.birthDate", "person.birthPlaceCountry", "person.deathDate", "person.description", "person.name", "personCandles", "personCandlesPage.addCandle.description", "person-details-page", "person-details-page.deletePerson.submitError", "person-details-page.deletePerson.submitSuccess", "person-details-page.deletePerson.question", "person-details-page.deletePerson", "person-details-page.myPerson.submitError", "person-details-page.myPerson.submitSuccess", "person-details-page.myPerson.loginRequired", "person-details-page.myPerson.question", "person-details-page.myPerson", "persons-page", "persons", "personsInCount", "persons-page.addPerson.description", "persons-page.personsList.hasImage", "persons-page.personsList", "persons-map-page.map.description", "persons-map-page", "proposable", "redirecting", "rejectAll", "reset", "save", "savedSuccessfully", "select", "send", "shareOnFacebook", "sort", "subject", "timeAbbreviationDay", "timeAbbreviationHour", "timeAbbreviationMinute", "terms-and-conditions-page.applicableLawParagraph", "terms-and-conditions-page.applicableLawTitle", "terms-and-conditions-page.conditionsOfUseParagraph", "terms-and-conditions-page.conditionsOfUseTitle", "terms-and-conditions-page.disputesParagraph", "terms-and-conditions-page.disputesTitle", "terms-and-conditions-page.intellectualPropertyParagraph", "terms-and-conditions-page.intellectualPropertyTitle", "terms-and-conditions-page.intro", "terms-and-conditions-page.limitationAndLiabilityParagraph", "terms-and-conditions-page.limitationAndLiabilityTitle", "terms-and-conditions-page", "terms-and-conditions-page.userAccountsParagraph", "terms-and-conditions-page.userAccountsTitle", "username"];
@@ -74,15 +74,16 @@ export const DICTIONARY_IDS = [
74
74
  'help-page.lightACandleTitle',
75
75
  'help-page.personsParagraph',
76
76
  'help-page',
77
- 'homePage.proposal',
78
- 'homePage.lastLitCandles',
79
- 'homePage.lastUploadedPersons',
80
- 'homePage.quickCandleLighting.placeOfTheCandle.placehodler',
81
- 'homePage.quickCandleLighting',
82
- 'homePage.statistics',
83
- 'homePage.welcome.description1',
84
- 'homePage.welcome.description2',
85
- 'homePage.welcome',
77
+ 'home-page',
78
+ 'home-page.proposal',
79
+ 'home-page.lastLitCandles',
80
+ 'home-page.lastUploadedPersons',
81
+ 'home-page.quickCandleLighting.placeOfTheCandle.placehodler',
82
+ 'home-page.quickCandleLighting',
83
+ 'home-page.statistics',
84
+ 'home-page.welcome.description1',
85
+ 'home-page.welcome.description2',
86
+ 'home-page.welcome',
86
87
  'hungarian',
87
88
  'formDateError',
88
89
  'formInvalidEmailError',
@@ -1 +1 @@
1
- export declare const HOME_PAGE_DICTIONARY_IDS: readonly ["lightACandle", "imageCannotBeLoaded", "imageClickToSeeOriginal", "imageNotSet", "imageCannotBeLoaded", "burnedOutCandle", "burnsSoFar", "timeAbbreviationDay", "timeAbbreviationHour", "timeAbbreviationMinute", "candles", "homePage.lastLitCandles", "burnedCandles", "burningCandles", "imageCannotBeLoaded", "imageClickToSeeOriginal", "imageNotSet", "lightACandle", "persons", "homePage.lastUploadedPersons", "auth.cannotBeChangedLaterWarning", "more", "reset", "add-candle-page.maintenance.submitError", "lightTheCandle", "add-candle-page.maintenance.submitSuccess", "formMaxLengthError", "person.name", "formRequiredError", "litName", "burnedCandles", "burningCandles", "candles", "persons", "homePage.statistics", "add-person-page", "auth.cannotBeChangedLaterWarning", "homePage.welcome.description1", "homePage.welcome.description2", "homePage.welcome", "persons-map-page", "homePage.proposal"];
1
+ export declare const HOME_PAGE_DICTIONARY_IDS: readonly ["lightACandle", "imageCannotBeLoaded", "imageClickToSeeOriginal", "imageNotSet", "imageCannotBeLoaded", "burnedOutCandle", "burnsSoFar", "timeAbbreviationDay", "timeAbbreviationHour", "timeAbbreviationMinute", "candles", "home-page.lastLitCandles", "burnedCandles", "burningCandles", "imageCannotBeLoaded", "imageClickToSeeOriginal", "imageNotSet", "lightACandle", "persons", "home-page.lastUploadedPersons", "auth.cannotBeChangedLaterWarning", "more", "reset", "add-candle-page.maintenance.submitError", "lightTheCandle", "add-candle-page.maintenance.submitSuccess", "formMaxLengthError", "person.name", "formRequiredError", "litName", "burnedCandles", "burningCandles", "candles", "persons", "home-page.statistics", "add-person-page", "auth.cannotBeChangedLaterWarning", "home-page.welcome.description1", "home-page.welcome.description2", "home-page.welcome", "persons-map-page", "home-page.proposal"];
@@ -5,10 +5,10 @@ export const HOME_PAGE_DICTIONARY_IDS = [
5
5
  ...PERSON_IMAGE_DICTIONARY_IDS,
6
6
  ...CANDLE_CARDS_DICTIONARY_IDS,
7
7
  'candles',
8
- 'homePage.lastLitCandles',
8
+ 'home-page.lastLitCandles',
9
9
  ...PERSON_CARDS_DICTIONARY_IDS,
10
10
  'persons',
11
- 'homePage.lastUploadedPersons',
11
+ 'home-page.lastUploadedPersons',
12
12
  'auth.cannotBeChangedLaterWarning',
13
13
  'more',
14
14
  'reset',
@@ -23,14 +23,14 @@ export const HOME_PAGE_DICTIONARY_IDS = [
23
23
  'burningCandles',
24
24
  'candles',
25
25
  'persons',
26
- 'homePage.statistics',
26
+ 'home-page.statistics',
27
27
  'add-person-page',
28
28
  'auth.cannotBeChangedLaterWarning',
29
- 'homePage.welcome.description1',
30
- 'homePage.welcome.description2',
31
- 'homePage.welcome',
29
+ 'home-page.welcome.description1',
30
+ 'home-page.welcome.description2',
31
+ 'home-page.welcome',
32
32
  'persons-map-page',
33
- 'homePage.proposal',
33
+ 'home-page.proposal',
34
34
  ];
35
35
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
36
36
  const CHECK = HOME_PAGE_DICTIONARY_IDS;
@@ -2,7 +2,7 @@ import { Auth } from '../../../auth/index.js';
2
2
  import { AddCandlePageDictionary, Language } from '../../../dictionary/index.js';
3
3
  import { AddCandlePageData } from '../../../page/index.js';
4
4
  export interface AddCandlePageServerSideProps {
5
- auth?: Auth;
5
+ auth: Auth;
6
6
  dictionary: AddCandlePageDictionary;
7
7
  language: Language;
8
8
  pageData: AddCandlePageData;
@@ -1,7 +1,7 @@
1
1
  import { Auth } from '../../../auth/index.js';
2
2
  import { ContactPageDictionary, Language } from '../../../dictionary/index.js';
3
3
  export interface ContactPageServerSideProps {
4
- auth?: Auth;
4
+ auth: Auth;
5
5
  dictionary: ContactPageDictionary;
6
6
  language: Language;
7
7
  }
@@ -2,7 +2,7 @@ import { Auth } from '../../../auth/index.js';
2
2
  import { CookieConsent } from '../../../cookie/index.js';
3
3
  import { CookiePolicyPageDictionary, Language } from '../../../dictionary/index.js';
4
4
  export interface CookiePolicyPageServerSideProps {
5
- auth?: Auth;
5
+ auth: Auth;
6
6
  cookieConsent?: CookieConsent;
7
7
  dictionary: CookiePolicyPageDictionary;
8
8
  language: Language;
@@ -1,7 +1,7 @@
1
1
  import { Auth } from '../../../auth/index.js';
2
2
  import { HelpPageDictionary, Language } from '../../../dictionary/index.js';
3
3
  export interface HelpPageServerSideProps {
4
- auth?: Auth;
4
+ auth: Auth;
5
5
  dictionary: HelpPageDictionary;
6
6
  language: Language;
7
7
  }
@@ -1,7 +1,7 @@
1
1
  import { Auth } from '../../../auth/index.js';
2
2
  import { Language, TermsAndConditionsPageDictionary } from '../../../dictionary/index.js';
3
3
  export interface TermsAndConditionsPageServerSideProps {
4
- auth?: Auth;
4
+ auth: Auth;
5
5
  dictionary: TermsAndConditionsPageDictionary;
6
6
  language: Language;
7
7
  }