accomadesc 0.1.4 → 0.1.5

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.
Files changed (2) hide show
  1. package/dist/types.d.ts +18 -3
  2. package/package.json +1 -2
package/dist/types.d.ts CHANGED
@@ -1,7 +1,22 @@
1
1
  import { type Dinero, type DineroSnapshot } from 'dinero.js';
2
- import type { DateTime } from 'luxon';
3
- import type { I18n } from 'occuplan';
4
2
  import type { FirstMonth } from './occuplan/state.svelte.ts';
3
+ import type { DateTime, MonthNumbers, WeekdayNumbers } from 'luxon';
4
+ export type WeekdayLabels = {
5
+ [key in WeekdayNumbers]: string;
6
+ };
7
+ export type MonthLabels = {
8
+ [key in MonthNumbers]: string;
9
+ };
10
+ export interface OccuplanTranslation {
11
+ weekendLabel?: string;
12
+ weekdayLabels?: WeekdayLabels;
13
+ monthLabels?: MonthLabels;
14
+ monthHeaderFormat?: string;
15
+ typeNames?: {
16
+ defaultOccupationTypeName: string;
17
+ [key: string]: string;
18
+ };
19
+ }
5
20
  export interface GridPhoto {
6
21
  photo: Photo;
7
22
  zoomed: boolean;
@@ -313,7 +328,7 @@ export interface Section {
313
328
  export interface I18nFacade {
314
329
  currentLang?: string;
315
330
  supportedLangs?: string[];
316
- calendarTranslation?: I18n;
331
+ calendarTranslation?: OccuplanTranslation;
317
332
  translateFunc?: (ref: string) => string;
318
333
  formatFunc?: (formatter: string, props: Record<string, any>) => string;
319
334
  formatMoneyFunc?: (d: Dinero<number> | DineroSnapshot<number>) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "accomadesc",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run package",
@@ -59,7 +59,6 @@
59
59
  "dinero.js": "2.0.0-alpha.14",
60
60
  "leaflet": "^1.9.4",
61
61
  "luxon": "^3.5.0",
62
- "occuplan": "^0.3.17",
63
62
  "squirrelly": "^9.1.0"
64
63
  }
65
64
  }