rimelight-components 1.7.11 → 1.7.12

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.
@@ -23,23 +23,22 @@ const icon = computed(() => config.value.icon);
23
23
  const title = computed(() => config.value.title);
24
24
  const tooltip = computed(() => config.value.tooltip);
25
25
  const RootComponent = computed(() => to ? NuxtLink : "div");
26
- const rootProps = computed(() => {
27
- const commonClasses = {
28
- class: ""
29
- };
26
+ const rootAttributes = computed(() => {
27
+ const attrs = { class: "w-full block" };
28
+ attrs.type = "CalloutBlock";
30
29
  if (to) {
31
- return {
32
- ...commonClasses,
33
- to,
34
- target: target || void 0
35
- };
30
+ attrs.to = to;
31
+ attrs.target = target || void 0;
32
+ if (target === "_blank") {
33
+ attrs.rel = "noopener noreferrer";
34
+ }
36
35
  }
37
- return commonClasses;
36
+ return attrs;
38
37
  });
39
38
  </script>
40
39
 
41
40
  <template>
42
- <component :is="RootComponent" v-bind="rootProps">
41
+ <component :is="RootComponent" v-bind="rootAttributes">
43
42
  <UAlert
44
43
  :title="$t(title)"
45
44
  :color="variant"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "rimelight-components",
3
3
  "description": "My new Nuxt module",
4
- "version": "1.7.11",
4
+ "version": "1.7.12",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/Rimelight-Entertainment/rimelight-components.git"