@tugitark/vue-widget 1.0.4 → 1.0.5
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/Widget.vue +3 -7
- package/package.json +1 -1
package/Widget.vue
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
// Copyright (c) 2026, TugiTark. All rights reserved.
|
|
2
2
|
|
|
3
3
|
<script setup lang="ts">
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import { watch, ref, onMounted, onUnmounted } from 'vue';
|
|
4
|
+
import { watch, ref } from 'vue';
|
|
7
5
|
import render, { Props } from '@tugitark/declarative-widget';
|
|
8
6
|
|
|
9
7
|
// Weird vue behaviour with optional boolean props. Ensure they don't default to `false`.
|
|
@@ -21,6 +19,8 @@
|
|
|
21
19
|
// Replicate FAQ internal behaviour at a per-component level.
|
|
22
20
|
props.onNotification?.(hasNotification);
|
|
23
21
|
}
|
|
22
|
+
} else {
|
|
23
|
+
props.onNotification?.(hasNotification);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
|
|
@@ -32,10 +32,6 @@
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
watch(props, (p) => render({ ...p, onReady, onNotification }), { deep: true, immediate: true });
|
|
35
|
-
|
|
36
|
-
// Listen for events that require us to re-initialise the widget.
|
|
37
|
-
//onMounted(reloadScript);
|
|
38
|
-
//onUnmounted(unloadScript);
|
|
39
35
|
</script>
|
|
40
36
|
|
|
41
37
|
<template>
|