@hyvor/design 1.1.5 → 1.1.6
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,10 +1,7 @@
|
|
|
1
1
|
<script lang="ts" generics="StringsT extends I18nStrings">
|
|
2
|
-
import { run } from 'svelte/legacy';
|
|
3
|
-
|
|
4
2
|
import { type ToDotPaths, type I18nStrings, type PrimitiveType } from './types.js';
|
|
5
3
|
import { getContext, onMount, tick, getAllContexts, type Component, hydrate } from 'svelte';
|
|
6
4
|
import { InternationalizationService } from './i18n.js';
|
|
7
|
-
import { browser } from '$app/environment';
|
|
8
5
|
import { getMessage as getMessageBase } from './t.js';
|
|
9
6
|
|
|
10
7
|
type ComponentDeclaration = {
|
|
@@ -152,10 +149,12 @@
|
|
|
152
149
|
|
|
153
150
|
let mounted = $state(false);
|
|
154
151
|
|
|
155
|
-
|
|
152
|
+
const isBrowser = typeof window !== 'undefined';
|
|
153
|
+
|
|
154
|
+
$effect(() => {
|
|
156
155
|
params;
|
|
157
156
|
key;
|
|
158
|
-
if (
|
|
157
|
+
if (isBrowser && mounted) {
|
|
159
158
|
renderFrontend();
|
|
160
159
|
}
|
|
161
160
|
});
|
package/package.json
CHANGED