accomadesc 0.2.24 → 0.2.26
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.
- package/dist/index.d.ts +1 -1
- package/dist/types.d.ts +14 -12
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -24,6 +24,6 @@ import Text from './Text.svelte';
|
|
|
24
24
|
import Weather from './Weather.svelte';
|
|
25
25
|
import PageComponent from './PageComponent.svelte';
|
|
26
26
|
export type { OccuplanTranslations } from './occuplan/state.svelte.ts';
|
|
27
|
-
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, Block, PageProps, PageConfig, Nav as NavI, FormatSpec, FormatTemplateName, SiteConfig, LangConfig, CookieConfig, SiteFonts, SiteTranslation, FontSpec, Hero, } from './types.js';
|
|
27
|
+
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, FormatSpec, FormatTemplateName, SiteConfig, LangConfig, CookieConfig, SiteFonts, SiteTranslation, FontSpec, Hero, } from './types.js';
|
|
28
28
|
export { PRICING_COLUMNS, BLOCK_KINDS, isAccoCard, isText, isPhoto, isGallery, isLeafletMap, isWeather, isAmenitiesCore, isCalendarAvailable, isCalendar, isCalendarGrid, isCalendarRows, isPricing, isPricingShort, isAccoDescription, isBookingRequest, isContactForm, } from './types.js';
|
|
29
29
|
export { randomID, randomName, Avatar, Button, Icon, Spinner, TextInput, AccoCard, AccoDescription, AmenitiesCore, Calendar, CalendarAvailable, LeafletMap, Photo, PhotoGallery, Pricing, PricingShort, Section, Text, Weather, BookingRequest, ContactForm, CalendarRows, CalendarGrid, Notes, PageComponent, };
|
package/dist/types.d.ts
CHANGED
|
@@ -2,13 +2,15 @@ import { type Dinero, type DineroSnapshot } from 'dinero.js';
|
|
|
2
2
|
import type { FirstMonth, OccuplanTranslations } from './occuplan/state.svelte.js';
|
|
3
3
|
import type { DateTime, MonthNumbers, WeekdayNumbers } from 'luxon';
|
|
4
4
|
import type { CookieType, Translation as CookieTranslation } from 'gdpr-cooco-banner';
|
|
5
|
-
import type { CalendarAvailableI } from './index.ts';
|
|
6
5
|
export type WeekdayLabels = {
|
|
7
6
|
[key in WeekdayNumbers]: string;
|
|
8
7
|
};
|
|
9
8
|
export type MonthLabels = {
|
|
10
9
|
[key in MonthNumbers]: string;
|
|
11
10
|
};
|
|
11
|
+
export interface AccoBlock {
|
|
12
|
+
acco?: string | undefined;
|
|
13
|
+
}
|
|
12
14
|
export interface GridPhoto {
|
|
13
15
|
photo: Photo;
|
|
14
16
|
zoomed: boolean;
|
|
@@ -25,7 +27,7 @@ export interface LeafletMapContent {
|
|
|
25
27
|
long: number;
|
|
26
28
|
zoom: number;
|
|
27
29
|
}
|
|
28
|
-
export interface Calendar {
|
|
30
|
+
export interface Calendar extends AccoBlock {
|
|
29
31
|
id: string;
|
|
30
32
|
kind: 'calendar';
|
|
31
33
|
content: CalendarContent;
|
|
@@ -43,7 +45,7 @@ export interface CalendarContent {
|
|
|
43
45
|
maxFutureYears?: number;
|
|
44
46
|
maxPastYears?: number;
|
|
45
47
|
}
|
|
46
|
-
export interface CalendarAvailable {
|
|
48
|
+
export interface CalendarAvailable extends AccoBlock {
|
|
47
49
|
id: string;
|
|
48
50
|
kind: 'calendar-available';
|
|
49
51
|
content: CalendarAvailableContent;
|
|
@@ -53,7 +55,7 @@ export interface CalendarAvailableContent {
|
|
|
53
55
|
search: number[];
|
|
54
56
|
maxFutureYears?: number;
|
|
55
57
|
}
|
|
56
|
-
export interface CalendarGrid {
|
|
58
|
+
export interface CalendarGrid extends AccoBlock {
|
|
57
59
|
id: string;
|
|
58
60
|
kind: 'calendar-grid';
|
|
59
61
|
content: CalendarGridContent;
|
|
@@ -66,7 +68,7 @@ export interface CalendarGridContent {
|
|
|
66
68
|
firstMonth?: FirstMonth;
|
|
67
69
|
maxWidth?: string;
|
|
68
70
|
}
|
|
69
|
-
export interface CalendarRows {
|
|
71
|
+
export interface CalendarRows extends AccoBlock {
|
|
70
72
|
id: string;
|
|
71
73
|
kind: 'calendar-rows';
|
|
72
74
|
content: CalendarRowsContent;
|
|
@@ -138,7 +140,7 @@ export interface PhotoGalleryContent {
|
|
|
138
140
|
gridPhotoWidth?: number;
|
|
139
141
|
photos: Photo[];
|
|
140
142
|
}
|
|
141
|
-
export interface Pricing {
|
|
143
|
+
export interface Pricing extends AccoBlock {
|
|
142
144
|
id: string;
|
|
143
145
|
kind: 'pricing';
|
|
144
146
|
content: PricingContent;
|
|
@@ -180,7 +182,7 @@ export interface PricingEntry {
|
|
|
180
182
|
additionalPersonText2?: string;
|
|
181
183
|
additionalPersonText3?: string;
|
|
182
184
|
}
|
|
183
|
-
export interface PricingShort {
|
|
185
|
+
export interface PricingShort extends AccoBlock {
|
|
184
186
|
id: string;
|
|
185
187
|
kind: 'pricing-short';
|
|
186
188
|
content: PricingShortContent;
|
|
@@ -194,7 +196,7 @@ export interface PricingShortContent {
|
|
|
194
196
|
showMinimum?: boolean;
|
|
195
197
|
footnote?: string;
|
|
196
198
|
}
|
|
197
|
-
export interface AmenitiesCore {
|
|
199
|
+
export interface AmenitiesCore extends AccoBlock {
|
|
198
200
|
id: string;
|
|
199
201
|
kind: 'amenities-core';
|
|
200
202
|
content: AmenitiesCoreContent;
|
|
@@ -218,7 +220,7 @@ export interface AmenitiesCoreContent {
|
|
|
218
220
|
parking: boolean;
|
|
219
221
|
showParking?: boolean;
|
|
220
222
|
}
|
|
221
|
-
export interface AccoCard {
|
|
223
|
+
export interface AccoCard extends AccoBlock {
|
|
222
224
|
id: string;
|
|
223
225
|
kind: 'acco-card';
|
|
224
226
|
content: AccoCardContent;
|
|
@@ -231,7 +233,7 @@ export interface AccoCardContent {
|
|
|
231
233
|
avail: CalendarAvailable;
|
|
232
234
|
amenities: AmenitiesCore;
|
|
233
235
|
}
|
|
234
|
-
export interface AccoDescription {
|
|
236
|
+
export interface AccoDescription extends AccoBlock {
|
|
235
237
|
id: string;
|
|
236
238
|
kind: 'acco-description';
|
|
237
239
|
content: AccoDescriptionContent;
|
|
@@ -265,7 +267,7 @@ export interface ContactFormContent {
|
|
|
265
267
|
maxCharsAllowed?: number;
|
|
266
268
|
preview?: boolean;
|
|
267
269
|
}
|
|
268
|
-
export interface BookingRequest {
|
|
270
|
+
export interface BookingRequest extends AccoBlock {
|
|
269
271
|
id: string;
|
|
270
272
|
kind: 'booking-request';
|
|
271
273
|
content: BookingRequestContent;
|
|
@@ -287,7 +289,7 @@ export interface BookingRequestContent {
|
|
|
287
289
|
maxCharsAllowed?: number;
|
|
288
290
|
preview?: boolean;
|
|
289
291
|
}
|
|
290
|
-
export type Block = Text | Photo | PhotoGallery | Calendar | CalendarAvailable | CalendarGrid | CalendarRows | Pricing | PricingShort | AmenitiesCore | Weather | LeafletMap | AccoCard | AccoDescription | ContactForm | BookingRequest
|
|
292
|
+
export type Block = Text | Photo | PhotoGallery | Calendar | CalendarAvailable | CalendarGrid | CalendarRows | Pricing | PricingShort | AmenitiesCore | Weather | LeafletMap | AccoCard | AccoDescription | ContactForm | BookingRequest;
|
|
291
293
|
export interface FontSpec {
|
|
292
294
|
shortName: string;
|
|
293
295
|
cssName: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "accomadesc",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.26",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "vite dev",
|
|
6
6
|
"build": "vite build && npm run package",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@sveltejs/adapter-auto": "^3.3.1",
|
|
43
|
-
"@sveltejs/kit": "^2.20.
|
|
43
|
+
"@sveltejs/kit": "^2.20.1",
|
|
44
44
|
"@sveltejs/package": "^2.3.10",
|
|
45
45
|
"@sveltejs/vite-plugin-svelte": "^5.0.3",
|
|
46
46
|
"@types/luxon": "^3.4.2",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"prettier": "^3.5.3",
|
|
49
49
|
"prettier-plugin-svelte": "^3.3.3",
|
|
50
50
|
"publint": "^0.3.9",
|
|
51
|
-
"svelte": "^5.23.
|
|
51
|
+
"svelte": "^5.23.2",
|
|
52
52
|
"svelte-check": "^4.1.5",
|
|
53
53
|
"typescript": "^5.8.2",
|
|
54
54
|
"vite": "^6.2.2"
|