accomadesc 0.0.5 → 0.0.7

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.
@@ -26,7 +26,7 @@
26
26
  </div>
27
27
  {#if cardContent.coverPhoto}
28
28
  <div class="photo">
29
- <Photo {...cardContent.coverPhoto} />
29
+ <Photo {...cardContent.coverPhoto.content} {translateFunc} />
30
30
  </div>
31
31
  {/if}
32
32
  {#if cardContent.blocks}
package/dist/index.d.ts CHANGED
@@ -17,6 +17,6 @@ import PricingShort from './PricingShort.svelte';
17
17
  import Section from './Section.svelte';
18
18
  import Text from './Text.svelte';
19
19
  import Weather from './Weather.svelte';
20
- export type { GridPhoto, LeafletMap as LeafletMapI, LeafletMapContent, Calendar as CalendarI, CalendarContent, CalendarAvailable as CalendarAvailableI, CalendarAvailableContent, 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, StaticRangeDate, StaticPricingRange, AmenitiesCore as AmenitiesCoreI, AmenitiesCoreContent, AccoCard as AccoCardI, AccoCardContent, CardContent, AccoDescription as AccoDescriptionI, AccoDescriptionContent, Section as SectionI, I18nFacade, } from './types.ts';
20
+ export type { GridPhoto, LeafletMap as LeafletMapI, LeafletMapContent, Calendar as CalendarI, CalendarContent, CalendarAvailable as CalendarAvailableI, CalendarAvailableContent, 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, StaticRangeDate, StaticPricingRange, AmenitiesCore as AmenitiesCoreI, AmenitiesCoreContent, AccoCard as AccoCardI, AccoCardContent, CardContent, AccoDescription as AccoDescriptionI, AccoDescriptionContent, Section as SectionI, I18nFacade, Acco as AccoI, } from './types.ts';
21
21
  export { PRICING_COLUMNS } from './types.ts';
22
22
  export { randomID, randomName, Avatar, Button, Icon, Spinner, TextInput, AccoCard, AccoDescription, AmenitiesCore, Calendar, CalendarAvailable, LeafletMap, Photo, PhotoGallery, Pricing, PricingShort, Section, Text, Weather, };
package/dist/types.d.ts CHANGED
@@ -1,6 +1,12 @@
1
1
  import { type Dinero, type DineroSnapshot } from 'dinero.js';
2
2
  import type { DateTime } from 'luxon';
3
3
  import type { I18n } from 'occuplan';
4
+ export interface Acco {
5
+ path: string;
6
+ displayName: string;
7
+ cardContent?: AccoCardContent;
8
+ siteContent?: Section[];
9
+ }
4
10
  export interface GridPhoto {
5
11
  photo: Photo;
6
12
  zoomed: boolean;
package/package.json CHANGED
@@ -1,63 +1,62 @@
1
1
  {
2
- "name": "accomadesc",
3
- "version": "0.0.5",
4
- "scripts": {
5
- "dev": "vite dev",
6
- "build": "vite build && npm run package",
7
- "preview": "vite preview",
8
- "package": "svelte-kit sync && svelte-package && publint",
9
- "prepublishOnly": "npm run package",
10
- "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
11
- "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
12
- "test:unit": "vitest",
13
- "test": "npm run test:unit -- --run",
14
- "format": "prettier --write .",
15
- "lint": "prettier --check ."
16
- },
17
- "files": [
18
- "dist",
19
- "!dist/**/*.test.*",
20
- "!dist/**/*.spec.*"
21
- ],
22
- "sideEffects": [
23
- "**/*.css"
24
- ],
25
- "license": "MIT",
26
- "svelte": "./dist/index.js",
27
- "types": "./dist/index.d.ts",
28
- "type": "module",
29
- "exports": {
30
- ".": {
31
- "types": "./dist/index.d.ts",
32
- "svelte": "./dist/index.js"
33
- }
34
- },
35
- "peerDependencies": {
36
- "svelte": "^5.0.0"
37
- },
38
- "devDependencies": {
39
- "@sveltejs/adapter-auto": "^3.3.1",
40
- "@sveltejs/kit": "^2.8.0",
41
- "@sveltejs/package": "^2.3.7",
42
- "@sveltejs/vite-plugin-svelte": "^4.0.0",
43
- "@types/luxon": "^3.4.2",
44
- "prettier": "^3.3.3",
45
- "prettier-plugin-svelte": "^3.2.7",
46
- "publint": "^0.2.12",
47
- "svelte": "^5.1.13",
48
- "svelte-check": "^4.0.6",
49
- "typescript": "^5.6.3",
50
- "vite": "^5.4.10",
51
- "vitest": "^2.1.4"
52
- },
53
- "dependencies": {
54
- "@dinero.js/currencies": "2.0.0-alpha.14",
55
- "@fontsource/raleway": "^5.1.0",
56
- "@twicpics/components": "^0.31.0",
57
- "@types/leaflet": "^1.9.14",
58
- "dinero.js": "2.0.0-alpha.14",
59
- "leaflet": "^1.9.4",
60
- "luxon": "^3.5.0",
61
- "occuplan": "^0.3.16"
62
- }
63
- }
2
+ "name": "accomadesc",
3
+ "version": "0.0.7",
4
+ "files": [
5
+ "dist",
6
+ "!dist/**/*.test.*",
7
+ "!dist/**/*.spec.*"
8
+ ],
9
+ "sideEffects": [
10
+ "**/*.css"
11
+ ],
12
+ "license": "MIT",
13
+ "svelte": "./dist/index.js",
14
+ "types": "./dist/index.d.ts",
15
+ "type": "module",
16
+ "exports": {
17
+ ".": {
18
+ "types": "./dist/index.d.ts",
19
+ "svelte": "./dist/index.js"
20
+ }
21
+ },
22
+ "peerDependencies": {
23
+ "svelte": "^5.0.0"
24
+ },
25
+ "devDependencies": {
26
+ "@sveltejs/adapter-auto": "^3.3.1",
27
+ "@sveltejs/kit": "^2.8.0",
28
+ "@sveltejs/package": "^2.3.7",
29
+ "@sveltejs/vite-plugin-svelte": "^4.0.0",
30
+ "@types/luxon": "^3.4.2",
31
+ "prettier": "^3.3.3",
32
+ "prettier-plugin-svelte": "^3.2.8",
33
+ "publint": "^0.2.12",
34
+ "svelte": "^5.1.15",
35
+ "svelte-check": "^4.0.7",
36
+ "typescript": "^5.6.3",
37
+ "vite": "^5.4.11",
38
+ "vitest": "^2.1.4"
39
+ },
40
+ "dependencies": {
41
+ "@dinero.js/currencies": "2.0.0-alpha.14",
42
+ "@fontsource/raleway": "^5.1.0",
43
+ "@twicpics/components": "^0.31.1",
44
+ "@types/leaflet": "^1.9.14",
45
+ "dinero.js": "2.0.0-alpha.14",
46
+ "leaflet": "^1.9.4",
47
+ "luxon": "^3.5.0",
48
+ "occuplan": "^0.3.16"
49
+ },
50
+ "scripts": {
51
+ "dev": "vite dev",
52
+ "build": "vite build && npm run package",
53
+ "preview": "vite preview",
54
+ "package": "svelte-kit sync && svelte-package && publint",
55
+ "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
56
+ "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
57
+ "test:unit": "vitest",
58
+ "test": "npm run test:unit -- --run",
59
+ "format": "prettier --write .",
60
+ "lint": "prettier --check ."
61
+ }
62
+ }