accomadesc 0.4.30 → 0.4.32

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.
@@ -2,11 +2,16 @@
2
2
  import Button from './basic/Button.svelte';
3
3
  import PhotoComponent from './Photo.svelte';
4
4
  import type { I18nFacade, Photo, PhotoGalleryContent } from './types.js';
5
- import { browser } from '$app/environment';
5
+ import { browser } from '$app/env';
6
6
  import { untrack } from 'svelte';
7
7
  import { slide } from 'svelte/transition';
8
8
 
9
- let { photos, gridPhotoWidth = 300, minimizedAtLoad = true, translateFunc }: PhotoGalleryContent & I18nFacade = $props();
9
+ let {
10
+ photos,
11
+ gridPhotoWidth = 300,
12
+ minimizedAtLoad = true,
13
+ translateFunc,
14
+ }: PhotoGalleryContent & I18nFacade = $props();
10
15
 
11
16
  let landscape = $state(true);
12
17
  if (browser) {
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import { onMount } from 'svelte';
3
- import { browser } from '$app/environment';
3
+ import { browser } from '$app/env';
4
4
  import type { I18nFacade, WeatherContent } from './types.js';
5
5
  import { randomID } from './names/gen.js';
6
6
 
@@ -13,7 +13,7 @@
13
13
  contextKey,
14
14
  } from './state.svelte.js';
15
15
  import Button from '../basic/Button.svelte';
16
- import { browser } from '$app/environment';
16
+ import { browser } from '$app/env';
17
17
  import Spinner from '../basic/Spinner.svelte';
18
18
  import { randomID } from '../names/gen.js';
19
19
  import { getContext, onMount, setContext, untrack } from 'svelte';
@@ -177,9 +177,7 @@
177
177
  style="
178
178
  grid-area: columnLegend / rowLegend / columnLegend / rowLegend;
179
179
  background-color: var(--occuplan-main-bg-color);"
180
- >
181
- &nbsp;
182
- </div>
180
+ ></div>
183
181
 
184
182
  {#each monthDays as d}
185
183
  <div class="monthday-header" style="grid-area: columnLegend / d{d} / columnLegend / d{d};">
@@ -215,9 +213,7 @@
215
213
  grid-area: m{d.month}y{d.year} / d{d.day} / m{d.month}y{d.year} / d{d.day};
216
214
  {occupationState.occupationStyle(d, true, maxDate)}
217
215
  "
218
- >
219
- &nbsp;
220
- </div>
216
+ ></div>
221
217
  {/each}
222
218
  {/if}
223
219
  </main>
@@ -231,9 +227,8 @@
231
227
  outline: var(--occuplan-grid-border);
232
228
  background: radial-gradient(var(--occuplan-weekend-bg-color), var(--occuplan-main-bg-color), var(--occuplan-main-bg-color));
233
229
  "
234
- >
235
- &nbsp;
236
- </div>
230
+ ></div>
231
+
237
232
  {#each foundOccupationTypes as t}
238
233
  {@const format = occupationTypeFormatting(t)}
239
234
  <span>{typeLabels[t]}</span>
@@ -241,9 +236,7 @@
241
236
  id="occupation-type-{t}-legend"
242
237
  class="legend-entry-marker"
243
238
  style="background-color: {format.bgColor}; outline: var(--occuplan-grid-border);"
244
- >
245
- &nbsp;
246
- </div>
239
+ ></div>
247
240
  {/each}
248
241
  </div>
249
242
  <div class="footer-content">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "accomadesc",
3
- "version": "0.4.30",
3
+ "version": "0.4.32",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "dist",
@@ -28,17 +28,17 @@
28
28
  "luxon": "^3.7.2"
29
29
  },
30
30
  "devDependencies": {
31
- "@playwright/test": "^1.63.0",
32
- "@sveltejs/adapter-auto": "^7.0.1",
33
- "@sveltejs/adapter-static": "^3.0.10",
34
- "@sveltejs/kit": "^2.70.3",
35
- "@sveltejs/package": "^2.5.8",
31
+ "@playwright/test": "^1.64.0",
32
+ "@sveltejs/adapter-auto": "^8.0.0",
33
+ "@sveltejs/adapter-static": "^4.0.0",
34
+ "@sveltejs/kit": "^3.0.1",
35
+ "@sveltejs/package": "^3.0.0",
36
36
  "@sveltejs/vite-plugin-svelte": "^7.3.1",
37
37
  "@testing-library/dom": "^10.4.2",
38
38
  "@testing-library/jest-dom": "^7.0.1",
39
39
  "@testing-library/svelte": "^5.4.2",
40
40
  "@types/luxon": "^3.7.6",
41
- "@types/node": "^26.6.4",
41
+ "@types/node": "^26.6.5",
42
42
  "@vitest/ui": "^5.0.3",
43
43
  "gdpr-cooco-banner": "^0.0.13",
44
44
  "jsdom": "^30.1.2",
@@ -48,13 +48,17 @@
48
48
  "svelte": "^5.57.2",
49
49
  "svelte-check": "^4.7.6",
50
50
  "typescript": "^6.0.3",
51
- "vite": "^8.3.3",
51
+ "vite": "^8.3.4",
52
52
  "vitest": "^5.0.3"
53
53
  },
54
54
  "peerDependencies": {
55
55
  "@sveltejs/kit": "^2.15.2",
56
56
  "svelte": "^5.0.0"
57
57
  },
58
+ "imports": {
59
+ "#lib": "./src/lib/index.js",
60
+ "#lib/*": "./src/lib/*"
61
+ },
58
62
  "scripts": {
59
63
  "dev": "vite dev",
60
64
  "build": "vite build --minify false && npm run package",