nuxt-ui-elements 0.1.7 → 0.1.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.
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxt-ui-elements",
3
3
  "configKey": "uiElements",
4
- "version": "0.1.7",
4
+ "version": "0.1.8",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -128,12 +128,10 @@ const maskGradient = computed(() => {
128
128
  class="absolute inset-0 overflow-hidden"
129
129
  :style="maskGradient ? { maskImage: maskGradient } : {}"
130
130
  >
131
- <ClientOnly>
132
- <div
133
- class="aurora-effect pointer-events-none absolute -inset-2.5 h-full w-full will-change-transform animate-in fade-in duration-1000"
134
- :style="{ opacity: auroraOpacityValue }"
135
- />
136
- </ClientOnly>
131
+ <div
132
+ class="aurora-effect pointer-events-none absolute -inset-2.5 h-full w-full will-change-transform animate-in fade-in duration-1000"
133
+ :style="{ opacity: auroraOpacityValue }"
134
+ />
137
135
  </div>
138
136
 
139
137
  <div class="relative z-10">
@@ -193,6 +193,7 @@ function animate(time) {
193
193
  animationFrameId = requestAnimationFrame(animate);
194
194
  }
195
195
  onMounted(() => {
196
+ if (!import.meta.client) return;
196
197
  if (!canvasRef.value || !containerRef.value) return;
197
198
  context.value = canvasRef.value.getContext("2d");
198
199
  if (!context.value) return;
@@ -239,9 +240,7 @@ watch(
239
240
 
240
241
  <template>
241
242
  <div ref="containerRef" :class="ui.base({ class: [props.ui?.base] })">
242
- <ClientOnly>
243
- <canvas ref="canvasRef" :class="ui.canvas({ class: props.ui?.canvas })" :style="maskStyle" />
244
- </ClientOnly>
243
+ <canvas ref="canvasRef" :class="ui.canvas({ class: props.ui?.canvas })" :style="maskStyle" />
245
244
  <slot />
246
245
  </div>
247
246
  </template>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-ui-elements",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "A collection of beautiful, animated UI components for Nuxt applications",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/genu/nuxt-ui-elements.git",