triiiceratops 0.9.7 → 0.9.8

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,4 +1,4 @@
1
- import { M as De } from "./TriiiceratopsViewer-CVbWWD1o.js";
1
+ import { M as De } from "./TriiiceratopsViewer-C5AKP6W4.js";
2
2
  function Fe(oe, F) {
3
3
  for (var e = 0; e < F.length; e++) {
4
4
  const t = F[e];
@@ -2,4 +2,4 @@ import * as messages from '../paraglide/messages.js';
2
2
  export declare const language: {
3
3
  readonly current: "en" | "de";
4
4
  };
5
- export declare const m: typeof messages;
5
+ export { messages as m };
@@ -1,20 +1,18 @@
1
1
  import * as messages from '../paraglide/messages.js';
2
2
  import { getLocale, setLocale as baseSetLocale, overwriteSetLocale, } from '../paraglide/runtime.js';
3
- let tag = $state(getLocale());
4
- // Wrap setLocale to update our reactive state when locale changes
3
+ // For SSR compatibility, we use a simple variable instead of $state()
4
+ // The consumer's app will handle reactivity at a higher level if needed
5
+ let currentLocale = getLocale();
6
+ // Wrap setLocale to track locale changes
5
7
  overwriteSetLocale((newLocale, options) => {
6
8
  baseSetLocale(newLocale, options);
7
- tag = getLocale();
9
+ currentLocale = getLocale();
8
10
  });
9
11
  export const language = {
10
12
  get current() {
11
- return tag;
13
+ return currentLocale;
12
14
  },
13
15
  };
14
- export const m = new Proxy(messages, {
15
- get(target, prop, receiver) {
16
- // Register dependency by accessing the signal
17
- tag;
18
- return Reflect.get(target, prop, receiver);
19
- },
20
- });
16
+ // Re-export messages directly for SSR compatibility
17
+ // The proxy pattern with $state doesn't work during SSR
18
+ export { messages as m };