accomadesc 0.3.37 → 0.3.39
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CookieSelection, Translation as CookieTranslation } from 'gdpr-cooco-banner';
|
|
2
2
|
import { DateTime } from 'luxon';
|
|
3
|
-
import type { FormatSpec, I18nFacade, SiteConfig } from './types.
|
|
4
|
-
import type { OccuplanTranslations } from './occuplan/state.svelte.
|
|
3
|
+
import type { FormatSpec, I18nFacade, SiteConfig } from './types.js';
|
|
4
|
+
import type { OccuplanTranslations } from './occuplan/state.svelte.js';
|
|
5
5
|
interface FullTranslation {
|
|
6
6
|
calendar: OccuplanTranslations;
|
|
7
7
|
cookies: CookieTranslation;
|
package/dist/SiteState.svelte.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DateTime } from 'luxon';
|
|
2
|
-
import { format } from './helpers/format.
|
|
2
|
+
import { format } from './helpers/format.js';
|
|
3
3
|
export class SiteState {
|
|
4
4
|
_getSiteConfigFn;
|
|
5
5
|
//fullTranslations: Record<string, FullTranslation> = $derived(this._getSiteConfigFn().lang.translations);
|
|
@@ -411,7 +411,7 @@ export class OccupationState {
|
|
|
411
411
|
export const getOccupationState = (url, debug = false) => {
|
|
412
412
|
if (debug)
|
|
413
413
|
console.log('Get OState /w url', url);
|
|
414
|
-
const stateID =
|
|
414
|
+
const stateID = `i-${url}-${OCCUPATION_STATE}`;
|
|
415
415
|
let _instance = getContext(stateID);
|
|
416
416
|
if (_instance)
|
|
417
417
|
return _instance;
|