accomadesc 0.3.28 → 0.3.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@
4
4
  import type { Nav, I18nFacade } from './types.js';
5
5
  import NavItem from './NavItem.svelte';
6
6
  import { getContext } from 'svelte';
7
- import { GLOBAL_STATE, GlobalState } from './state.svelte.ts';
7
+ import { GLOBAL_STATE, GlobalState } from './state.svelte';
8
8
 
9
9
  let currentPath = $derived(page.url.pathname);
10
10
  let {
@@ -2,7 +2,7 @@
2
2
  import type { NavItem, I18nFacade } from './types.js';
3
3
  import ExtLinkSvg from './svg/ExtLinkSVG.svelte';
4
4
  import { getContext } from 'svelte';
5
- import { GLOBAL_STATE, GlobalState } from './state.svelte.ts';
5
+ import { GLOBAL_STATE, GlobalState } from './state.svelte';
6
6
 
7
7
  let {
8
8
  n,
@@ -16,7 +16,7 @@
16
16
  import { page } from '$app/state';
17
17
  import Button from './basic/Button.svelte';
18
18
  import { fallbackCSS } from './style.js';
19
- import { GLOBAL_STATE, GlobalState } from './state.svelte.ts';
19
+ import { GLOBAL_STATE, GlobalState } from './state.svelte';
20
20
  import { setContext } from 'svelte';
21
21
 
22
22
  let {
package/dist/index.d.ts CHANGED
@@ -25,7 +25,7 @@ import Section from './Section.svelte';
25
25
  import Text from './Text.svelte';
26
26
  import Weather from './Weather.svelte';
27
27
  import PageComponent from './PageComponent.svelte';
28
- export type { OccuplanTranslations } from './occuplan/state.svelte.ts';
28
+ export type { OccuplanTranslations } from './occuplan/state.svelte';
29
29
  export type { GridPhoto, LeafletMap as LeafletMapI, LeafletMapContent, Calendar as CalendarI, CalendarContent, CalendarAvailable as CalendarAvailableI, CalendarAvailableContent, CalendarGrid as CalendarGridI, CalendarGridContent, CalendarRows as CalendarRowsI, CalendarRowsContent, Text as TextI, TextContent, Weather as WeatherI, WeatherContent, Photo as PhotoI, PhotoContent, PhotoGallery as PhotoGalleryI, PhotoGalleryContent, Pricing as PricingI, PricingContent, PricingShort as PricingShortI, PricingShortContent, PricingEntry, PricingRange, PricingColumn, StaticRangeDate, StaticPricingRange, AmenitiesCore as AmenitiesCoreI, AmenitiesCoreContent, AccoCard as AccoCardI, AccoCardContent, ContactForm as ContactFormI, ContactFormContent, BookingRequest as BookingRequestI, BookingRequestContent, AccoDescription as AccoDescriptionI, AccoDescriptionContent, Section as SectionI, I18nFacade, AccoBlock, Block, PageProps, PageConfig, Nav as NavI, Style, NavItem, FormatSpec, FormatTemplateName, SiteConfig, LangConfig, CookieConfig, SiteFonts, SiteTranslation, FontSpec, Hero, } from './types.js';
30
30
  export { PRICING_COLUMNS, BLOCK_KINDS, isAccoCard, isText, isPhoto, isGallery, isLeafletMap, isWeather, isAmenitiesCore, isCalendarAvailable, isCalendar, isCalendarGrid, isCalendarRows, isPricing, isPricingShort, isAccoDescription, isBookingRequest, isContactForm, isAccoBlock, } from './types.js';
31
31
  export { randomID, randomName, format, MoneyFormats, Avatar, Button, Icon, Spinner, TextInput, AccoCard, AccoDescription, AmenitiesCore, Calendar, CalendarAvailable, LeafletMap, Photo, PhotoGallery, Pricing, PricingShort, Section, Text, Weather, BookingRequest, ContactForm, CalendarRows, CalendarGrid, Notes, PageComponent, };
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">
2
2
  import { DateTime } from 'luxon';
3
3
  import { normalizeDate } from '../helpers/normalizeDate.js';
4
- import { getContext, setContext, type Snippet } from 'svelte';
4
+ import { getContext, onMount, setContext, type Snippet } from 'svelte';
5
5
  import {
6
6
  OCCUPATION_STATE,
7
7
  OccupationState,
@@ -27,13 +27,13 @@
27
27
 
28
28
  const oStateID = `i-${url}-${OCCUPATION_STATE}`;
29
29
  let occupationState: OccupationState = $state(getContext(oStateID));
30
-
31
- $effect(() => {
30
+ onMount(() => {
32
31
  if (!occupationState && browser) {
33
32
  occupationState = getOccupationState(url, debug);
34
33
  setContext(oStateID, occupationState);
35
34
  }
36
35
  });
36
+
37
37
  let av = $derived(occupationState ? occupationState.calcAvailability(search, maxFutureDate) : {});
38
38
  </script>
39
39
 
@@ -13,7 +13,7 @@
13
13
  type OccupationType,
14
14
  type OccuplanTranslations,
15
15
  } from './state.svelte.js';
16
- import { getContext, setContext } from 'svelte';
16
+ import { getContext, onMount, setContext } from 'svelte';
17
17
  import Button from '../basic/Button.svelte';
18
18
  import { browser } from '$app/environment';
19
19
  import Spinner from '../basic/Spinner.svelte';
@@ -53,7 +53,7 @@
53
53
 
54
54
  const oStateID = `i-${url}-${OCCUPATION_STATE}`;
55
55
  let occupationState: OccupationState = $state(getContext(oStateID));
56
- $effect(() => {
56
+ onMount(() => {
57
57
  if (!occupationState && browser) {
58
58
  occupationState = getOccupationState(url, debug);
59
59
  setContext(oStateID, occupationState);
@@ -10,7 +10,7 @@
10
10
  realFirstMonth,
11
11
  type OccuplanTranslations,
12
12
  } from './state.svelte.js';
13
- import { getContext, setContext, untrack } from 'svelte';
13
+ import { getContext, onMount, setContext, untrack } from 'svelte';
14
14
  import Button from '../basic/Button.svelte';
15
15
  import { browser } from '$app/environment';
16
16
  import Spinner from '../basic/Spinner.svelte';
@@ -60,7 +60,7 @@
60
60
 
61
61
  const oStateID = `i-${url}-${OCCUPATION_STATE}`;
62
62
  let occupationState: OccupationState = $state(getContext(oStateID));
63
- $effect(() => {
63
+ onMount(() => {
64
64
  if (!occupationState && browser) {
65
65
  occupationState = getOccupationState(url, debug);
66
66
  setContext(oStateID, occupationState);
@@ -15,7 +15,7 @@
15
15
  } from './state.svelte.js';
16
16
  import Button from '../basic/Button.svelte';
17
17
  import { browser } from '$app/environment';
18
- import { getContext, setContext } from 'svelte';
18
+ import { getContext, onMount, setContext } from 'svelte';
19
19
  import Spinner from '../basic/Spinner.svelte';
20
20
  import { randomID } from '../names/gen.js';
21
21
 
@@ -50,7 +50,7 @@
50
50
 
51
51
  const oStateID = `i-${url}-${OCCUPATION_STATE}`;
52
52
  let occupationState: OccupationState = $state(getContext(oStateID));
53
- $effect(() => {
53
+ onMount(() => {
54
54
  if (!occupationState && browser) {
55
55
  occupationState = getOccupationState(url, debug);
56
56
  setContext(oStateID, occupationState);
@@ -1,9 +1,9 @@
1
- export default AcSvg;
2
- type AcSvg = {
1
+ export default AcSVG;
2
+ type AcSVG = {
3
3
  $on?(type: string, callback: (e: any) => void): () => void;
4
4
  $set?(props: Partial<Props>): void;
5
5
  };
6
- declare const AcSvg: import("svelte").Component<{
6
+ declare const AcSVG: import("svelte").Component<{
7
7
  size?: string | undefined;
8
8
  }, {}, "">;
9
9
  type Props = {
@@ -1,9 +1,9 @@
1
- export default AreaSvg;
2
- type AreaSvg = {
1
+ export default AreaSVG;
2
+ type AreaSVG = {
3
3
  $on?(type: string, callback: (e: any) => void): () => void;
4
4
  $set?(props: Partial<Props>): void;
5
5
  };
6
- declare const AreaSvg: import("svelte").Component<{
6
+ declare const AreaSVG: import("svelte").Component<{
7
7
  size?: string | undefined;
8
8
  }, {}, "">;
9
9
  type Props = {
@@ -1,9 +1,9 @@
1
- export default BathroomSvg;
2
- type BathroomSvg = {
1
+ export default BathroomSVG;
2
+ type BathroomSVG = {
3
3
  $on?(type: string, callback: (e: any) => void): () => void;
4
4
  $set?(props: Partial<Props>): void;
5
5
  };
6
- declare const BathroomSvg: import("svelte").Component<{
6
+ declare const BathroomSVG: import("svelte").Component<{
7
7
  size?: string | undefined;
8
8
  }, {}, "">;
9
9
  type Props = {
@@ -1,9 +1,9 @@
1
- export default BedroomSvg;
2
- type BedroomSvg = {
1
+ export default BedroomSVG;
2
+ type BedroomSVG = {
3
3
  $on?(type: string, callback: (e: any) => void): () => void;
4
4
  $set?(props: Partial<Props>): void;
5
5
  };
6
- declare const BedroomSvg: import("svelte").Component<{
6
+ declare const BedroomSVG: import("svelte").Component<{
7
7
  size?: string | undefined;
8
8
  }, {}, "">;
9
9
  type Props = {
@@ -1,9 +1,9 @@
1
- export default CheckSvg;
2
- type CheckSvg = {
1
+ export default CheckSVG;
2
+ type CheckSVG = {
3
3
  $on?(type: string, callback: (e: any) => void): () => void;
4
4
  $set?(props: Partial<Props>): void;
5
5
  };
6
- declare const CheckSvg: import("svelte").Component<{
6
+ declare const CheckSVG: import("svelte").Component<{
7
7
  size?: string | undefined;
8
8
  }, {}, "">;
9
9
  type Props = {
@@ -1,6 +1,6 @@
1
1
  interface Props {
2
2
  size?: string;
3
3
  }
4
- declare const ExtLinkSvg: import("svelte").Component<Props, {}, "">;
5
- type ExtLinkSvg = ReturnType<typeof ExtLinkSvg>;
6
- export default ExtLinkSvg;
4
+ declare const ExtLinkSVG: import("svelte").Component<Props, {}, "">;
5
+ type ExtLinkSVG = ReturnType<typeof ExtLinkSVG>;
6
+ export default ExtLinkSVG;
@@ -1,12 +1,12 @@
1
- export default HamburgerSvg;
2
- type HamburgerSvg = SvelteComponent<{
1
+ export default HamburgerSVG;
2
+ type HamburgerSVG = SvelteComponent<{
3
3
  [x: string]: never;
4
4
  }, {
5
5
  [evt: string]: CustomEvent<any>;
6
6
  }, {}> & {
7
7
  $$bindings?: string | undefined;
8
8
  };
9
- declare const HamburgerSvg: $$__sveltets_2_IsomorphicComponent<{
9
+ declare const HamburgerSVG: $$__sveltets_2_IsomorphicComponent<{
10
10
  [x: string]: never;
11
11
  }, {
12
12
  [evt: string]: CustomEvent<any>;
@@ -1,6 +1,6 @@
1
1
  interface Props {
2
2
  size?: string;
3
3
  }
4
- declare const LinkSvg: import("svelte").Component<Props, {}, "">;
5
- type LinkSvg = ReturnType<typeof LinkSvg>;
6
- export default LinkSvg;
4
+ declare const LinkSVG: import("svelte").Component<Props, {}, "">;
5
+ type LinkSVG = ReturnType<typeof LinkSVG>;
6
+ export default LinkSVG;
@@ -1,12 +1,12 @@
1
- export default LogoSvg;
2
- type LogoSvg = SvelteComponent<{
1
+ export default LogoSVG;
2
+ type LogoSVG = SvelteComponent<{
3
3
  [x: string]: never;
4
4
  }, {
5
5
  [evt: string]: CustomEvent<any>;
6
6
  }, {}> & {
7
7
  $$bindings?: string | undefined;
8
8
  };
9
- declare const LogoSvg: $$__sveltets_2_IsomorphicComponent<{
9
+ declare const LogoSVG: $$__sveltets_2_IsomorphicComponent<{
10
10
  [x: string]: never;
11
11
  }, {
12
12
  [evt: string]: CustomEvent<any>;
@@ -1,9 +1,9 @@
1
- export default NoCheckSvg;
2
- type NoCheckSvg = {
1
+ export default NoCheckSVG;
2
+ type NoCheckSVG = {
3
3
  $on?(type: string, callback: (e: any) => void): () => void;
4
4
  $set?(props: Partial<Props>): void;
5
5
  };
6
- declare const NoCheckSvg: import("svelte").Component<{
6
+ declare const NoCheckSVG: import("svelte").Component<{
7
7
  size?: string | undefined;
8
8
  }, {}, "">;
9
9
  type Props = {
@@ -1,9 +1,9 @@
1
- export default NotSvg;
2
- type NotSvg = {
1
+ export default NotSVG;
2
+ type NotSVG = {
3
3
  $on?(type: string, callback: (e: any) => void): () => void;
4
4
  $set?(props: Partial<Props>): void;
5
5
  };
6
- declare const NotSvg: import("svelte").Component<{
6
+ declare const NotSVG: import("svelte").Component<{
7
7
  size?: string | undefined;
8
8
  }, {}, "">;
9
9
  type Props = {
@@ -1,9 +1,9 @@
1
- export default ParkingSvg;
2
- type ParkingSvg = {
1
+ export default ParkingSVG;
2
+ type ParkingSVG = {
3
3
  $on?(type: string, callback: (e: any) => void): () => void;
4
4
  $set?(props: Partial<Props>): void;
5
5
  };
6
- declare const ParkingSvg: import("svelte").Component<{
6
+ declare const ParkingSVG: import("svelte").Component<{
7
7
  size?: string | undefined;
8
8
  }, {}, "">;
9
9
  type Props = {
@@ -1,9 +1,9 @@
1
- export default PeopleSvg;
2
- type PeopleSvg = {
1
+ export default PeopleSVG;
2
+ type PeopleSVG = {
3
3
  $on?(type: string, callback: (e: any) => void): () => void;
4
4
  $set?(props: Partial<Props>): void;
5
5
  };
6
- declare const PeopleSvg: import("svelte").Component<{
6
+ declare const PeopleSVG: import("svelte").Component<{
7
7
  size?: string | undefined;
8
8
  }, {}, "">;
9
9
  type Props = {
@@ -1,9 +1,9 @@
1
- export default PetsSvg;
2
- type PetsSvg = {
1
+ export default PetsSVG;
2
+ type PetsSVG = {
3
3
  $on?(type: string, callback: (e: any) => void): () => void;
4
4
  $set?(props: Partial<Props>): void;
5
5
  };
6
- declare const PetsSvg: import("svelte").Component<{
6
+ declare const PetsSVG: import("svelte").Component<{
7
7
  size?: string | undefined;
8
8
  }, {}, "">;
9
9
  type Props = {
@@ -1,9 +1,9 @@
1
- export default SmokingSvg;
2
- type SmokingSvg = {
1
+ export default SmokingSVG;
2
+ type SmokingSVG = {
3
3
  $on?(type: string, callback: (e: any) => void): () => void;
4
4
  $set?(props: Partial<Props>): void;
5
5
  };
6
- declare const SmokingSvg: import("svelte").Component<{
6
+ declare const SmokingSVG: import("svelte").Component<{
7
7
  size?: string | undefined;
8
8
  }, {}, "">;
9
9
  type Props = {
@@ -1,9 +1,9 @@
1
- export default TvSvg;
2
- type TvSvg = {
1
+ export default TvSVG;
2
+ type TvSVG = {
3
3
  $on?(type: string, callback: (e: any) => void): () => void;
4
4
  $set?(props: Partial<Props>): void;
5
5
  };
6
- declare const TvSvg: import("svelte").Component<{
6
+ declare const TvSVG: import("svelte").Component<{
7
7
  size?: string | undefined;
8
8
  }, {}, "">;
9
9
  type Props = {
@@ -1,9 +1,9 @@
1
- export default WifiSvg;
2
- type WifiSvg = {
1
+ export default WifiSVG;
2
+ type WifiSVG = {
3
3
  $on?(type: string, callback: (e: any) => void): () => void;
4
4
  $set?(props: Partial<Props>): void;
5
5
  };
6
- declare const WifiSvg: import("svelte").Component<{
6
+ declare const WifiSVG: import("svelte").Component<{
7
7
  size?: string | undefined;
8
8
  }, {}, "">;
9
9
  type Props = {
@@ -1,12 +1,12 @@
1
- export default Xsvg;
2
- type Xsvg = SvelteComponent<{
1
+ export default XSVG;
2
+ type XSVG = SvelteComponent<{
3
3
  [x: string]: never;
4
4
  }, {
5
5
  [evt: string]: CustomEvent<any>;
6
6
  }, {}> & {
7
7
  $$bindings?: string | undefined;
8
8
  };
9
- declare const Xsvg: $$__sveltets_2_IsomorphicComponent<{
9
+ declare const XSVG: $$__sveltets_2_IsomorphicComponent<{
10
10
  [x: string]: never;
11
11
  }, {
12
12
  [evt: string]: CustomEvent<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "accomadesc",
3
- "version": "0.3.28",
3
+ "version": "0.3.30",
4
4
  "files": [
5
5
  "dist",
6
6
  "!dist/**/*.test.*",
@@ -25,25 +25,25 @@
25
25
  },
26
26
  "devDependencies": {
27
27
  "@sveltejs/adapter-auto": "^3.3.1",
28
- "@sveltejs/adapter-static": "^3.0.9",
29
- "@sveltejs/kit": "^2.37.1",
30
- "@sveltejs/package": "^2.5.0",
28
+ "@sveltejs/adapter-static": "^3.0.10",
29
+ "@sveltejs/kit": "^2.47.3",
30
+ "@sveltejs/package": "^2.5.4",
31
31
  "@sveltejs/vite-plugin-svelte": "^5.1.1",
32
32
  "@types/luxon": "^3.7.1",
33
33
  "gdpr-cooco-banner": "^0.0.11",
34
34
  "prettier": "^3.6.2",
35
35
  "prettier-plugin-svelte": "^3.4.0",
36
- "publint": "^0.3.12",
37
- "svelte": "^5.38.8",
38
- "svelte-check": "^4.3.1",
39
- "typescript": "^5.9.2",
40
- "vite": "^6.3.6"
36
+ "publint": "^0.3.15",
37
+ "svelte": "^5.41.4",
38
+ "svelte-check": "^4.3.3",
39
+ "typescript": "^5.9.3",
40
+ "vite": "^6.4.1"
41
41
  },
42
42
  "dependencies": {
43
43
  "@dinero.js/currencies": "2.0.0-alpha.14",
44
- "@fontsource/raleway": "^5.2.6",
44
+ "@fontsource/raleway": "^5.2.8",
45
45
  "@twicpics/components": "^0.31.4",
46
- "@types/leaflet": "^1.9.20",
46
+ "@types/leaflet": "^1.9.21",
47
47
  "leaflet": "^1.9.4",
48
48
  "luxon": "^3.7.2"
49
49
  },