rimelight-components 2.0.2 → 2.0.3

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,6 +1,6 @@
1
1
  {
2
2
  "name": "rimelight-components",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "docs": "https://rimelight.com/tools/rimelight-components",
5
5
  "configKey": "rimelightComponents",
6
6
  "compatibility": {
package/dist/module.mjs CHANGED
@@ -4,7 +4,7 @@ import { readdirSync } from 'node:fs';
4
4
  import { basename } from 'node:path';
5
5
 
6
6
  const name = "rimelight-components";
7
- const version = "2.0.2";
7
+ const version = "2.0.3";
8
8
  const homepage = "https://rimelight.com/tools/rimelight-components";
9
9
 
10
10
  const defaultOptions = {
@@ -48,7 +48,7 @@ const defaultOptions = {
48
48
  }
49
49
  };
50
50
 
51
- function addBlockMapTemplates(blockNames, resolver) {
51
+ function addBlockMapTemplates(blockNames) {
52
52
  const template = addTemplate({
53
53
  filename: "rimelight-blocks-map.mjs",
54
54
  getContents: () => {
@@ -159,10 +159,9 @@ const module = defineNuxtModule({
159
159
  addImportsDir(resolver.resolve("./runtime/composables"));
160
160
  addImportsDir(resolver.resolve("./runtime/types"));
161
161
  addImportsDir(resolver.resolve("./runtime/utils"));
162
- const blocksPath = resolver.resolve("./runtime/components/blocks");
163
- const blockFiles = readdirSync(blocksPath).filter(
164
- (name2) => name2.endsWith(".vue")
165
- );
162
+ const blockFiles = readdirSync(
163
+ resolver.resolve("./runtime/components/blocks")
164
+ ).filter((name2) => name2.endsWith(".vue"));
166
165
  const blockNames = blockFiles.map((file) => basename(file, ".vue"));
167
166
  const template = addBlockMapTemplates(blockNames);
168
167
  nuxt.options.alias["#build/rimelight-blocks-map"] = template.dst;
@@ -1,6 +1,8 @@
1
1
  <script setup>
2
2
  import { useAppConfig } from "#imports";
3
3
  import { computed } from "#imports";
4
+ import { useI18n } from "vue-i18n";
5
+ const { t } = useI18n();
4
6
  const appConfig = useAppConfig();
5
7
  const { variant, to, target } = defineProps({
6
8
  variant: { type: String, required: true },
@@ -22,7 +24,7 @@ const tooltip = computed(() => config.value.tooltip);
22
24
  <template>
23
25
  <NuxtLink :to="to" :target="target">
24
26
  <UAlert
25
- :title="$t(title)"
27
+ :title="t(title)"
26
28
  :color="variant"
27
29
  variant="subtle"
28
30
  :close="{
@@ -36,7 +38,7 @@ const tooltip = computed(() => config.value.tooltip);
36
38
  <slot />
37
39
  </template>
38
40
  <template #close>
39
- <UTooltip v-if="tooltip" :text="$t(tooltip)">
41
+ <UTooltip v-if="tooltip" :text="t(tooltip)">
40
42
  <UIcon
41
43
  name="lucide:circle-question-mark"
42
44
  class="pointer-events-auto size-5"
@@ -1,4 +1,6 @@
1
1
  <script setup>
2
+ import { useI18n } from "vue-i18n";
3
+ const { t } = useI18n();
2
4
  const {
3
5
  pageType,
4
6
  previousTitle,
@@ -34,8 +36,8 @@ const {
34
36
  class="group-hover w-fit rounded-full text-primary group-hover:text-highlighted"
35
37
  />
36
38
  <span class="text-muted">
37
- {{ $t("navigation_previous") }}
38
- {{ $t(pageType) }}
39
+ {{ t("navigation_previous") }}
40
+ {{ t(pageType) }}
39
41
  </span>
40
42
  </div>
41
43
  <div class="flex flex-col gap-xs">
@@ -64,8 +66,8 @@ const {
64
66
  class="w-fit rounded-full text-primary group-hover:text-highlighted"
65
67
  />
66
68
  <span class="text-muted">
67
- {{ $t("navigation_next") }}
68
- {{ $t(pageType) }}</span
69
+ {{ t("navigation_next") }}
70
+ {{ t(pageType) }}</span
69
71
  >
70
72
  </div>
71
73
  <div class="flex flex-col items-end gap-xs">
@@ -1,6 +1,8 @@
1
1
  <script setup>
2
2
  import { computed } from "vue";
3
3
  import { slugify } from "../../utils";
4
+ import { useI18n } from "vue-i18n";
5
+ const { t } = useI18n();
4
6
  const {
5
7
  pageBlocks,
6
8
  title = "table_of_contents",
@@ -58,7 +60,7 @@ const tocItems = computed(() => {
58
60
  aria-label="Table of Contents"
59
61
  >
60
62
  <h5 class="text-highlighted">
61
- {{ $t(title) }}
63
+ {{ t(title) }}
62
64
  </h5>
63
65
 
64
66
  <ul
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "type": "module",
3
3
  "name": "rimelight-components",
4
4
  "description": "A component library by Rimelight Entertainment.",
5
- "version": "2.0.2",
5
+ "version": "2.0.3",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/Rimelight-Entertainment/rimelight-components.git"
@@ -115,7 +115,10 @@
115
115
  },
116
116
  "trustedDependencies": [
117
117
  "@parcel/watcher",
118
- "@tailwindcss/oxide"
118
+ "@tailwindcss/oxide",
119
+ "esbuild",
120
+ "sharp",
121
+ "vue-demi"
119
122
  ],
120
123
  "resolutions": {
121
124
  "rimelight-components": "workspace:*"