@yh-ui/components 1.0.17 → 1.0.19

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.
@@ -28,6 +28,7 @@ defineOptions({
28
28
  const props = defineProps(aiBubbleProps);
29
29
  const ns = useNamespace("ai-bubble");
30
30
  const { t } = useLocale();
31
+ const hasMounted = ref(false);
31
32
  const { themeStyle } = useComponentTheme(
32
33
  "ai-bubble",
33
34
  computed(() => props.themeOverrides)
@@ -935,6 +936,7 @@ const handleCodeBlockAction = async (e) => {
935
936
  }
936
937
  };
937
938
  onMounted(() => {
939
+ hasMounted.value = true;
938
940
  document.addEventListener("click", handleCodeBlockAction);
939
941
  });
940
942
  onBeforeUnmount(() => {
@@ -1132,7 +1134,7 @@ onBeforeUnmount(() => {
1132
1134
  </div>
1133
1135
 
1134
1136
  <!-- Floating Citation Tooltip -->
1135
- <Teleport to="body">
1137
+ <Teleport v-if="hasMounted" to="body">
1136
1138
  <Transition name="yh-fade-in-scale-up">
1137
1139
  <div
1138
1140
  v-if="hoveredCitation"
@@ -1159,7 +1161,7 @@ onBeforeUnmount(() => {
1159
1161
  </Teleport>
1160
1162
 
1161
1163
  <!-- Code Edit Modal -->
1162
- <Teleport to="body">
1164
+ <Teleport v-if="hasMounted" to="body">
1163
1165
  <Transition name="yh-fade-in">
1164
1166
  <div v-if="editingCodeBlock" class="code-edit-modal-overlay" @click.self="cancelEditCode">
1165
1167
  <div class="code-edit-modal">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yh-ui/components",
3
- "version": "1.0.17",
3
+ "version": "1.0.19",
4
4
  "description": "YH-UI Vue 3 Components",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -37,10 +37,10 @@
37
37
  "dependencies": {
38
38
  "@webcontainer/api": "^1.6.1",
39
39
  "@floating-ui/dom": "^1.7.4",
40
- "@yh-ui/hooks": "^1.0.17",
41
- "@yh-ui/locale": "^1.0.17",
42
- "@yh-ui/theme": "^1.0.17",
43
- "@yh-ui/utils": "^1.0.17",
40
+ "@yh-ui/hooks": "^1.0.19",
41
+ "@yh-ui/locale": "^1.0.19",
42
+ "@yh-ui/theme": "^1.0.19",
43
+ "@yh-ui/utils": "^1.0.19",
44
44
  "async-validator": "^4.2.5",
45
45
  "dayjs": "^1.11.19",
46
46
  "dompurify": "^3.3.3",