rimelight-components 2.0.2 → 2.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/dist/module.d.mts +42 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +69 -65
- package/dist/runtime/components/backgrounds/FlickeringGrid.d.vue.ts +1 -1
- package/dist/runtime/components/backgrounds/FlickeringGrid.vue.d.ts +1 -1
- package/dist/runtime/components/content/Callout.vue +4 -2
- package/dist/runtime/components/page/PageSurround.vue +6 -4
- package/dist/runtime/components/renderers/TOC.vue +3 -1
- package/dist/runtime/components/swatches/ColorSwatch.vue +1 -1
- package/dist/runtime/types/app.config.d.ts +7 -4
- package/package.json +5 -2
package/dist/module.d.mts
CHANGED
|
@@ -5,6 +5,7 @@ interface CalloutOptions {
|
|
|
5
5
|
title: string;
|
|
6
6
|
tooltip: string;
|
|
7
7
|
}
|
|
8
|
+
|
|
8
9
|
interface ModuleOptions {
|
|
9
10
|
/**
|
|
10
11
|
* Prefix for components
|
|
@@ -21,7 +22,47 @@ interface ModuleOptions {
|
|
|
21
22
|
source: CalloutOptions;
|
|
22
23
|
};
|
|
23
24
|
}
|
|
24
|
-
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions,
|
|
25
|
+
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, {
|
|
26
|
+
enabled: boolean;
|
|
27
|
+
prefix: string;
|
|
28
|
+
callouts: {
|
|
29
|
+
info: {
|
|
30
|
+
icon: string;
|
|
31
|
+
title: string;
|
|
32
|
+
tooltip: string;
|
|
33
|
+
};
|
|
34
|
+
success: {
|
|
35
|
+
icon: string;
|
|
36
|
+
title: string;
|
|
37
|
+
tooltip: string;
|
|
38
|
+
};
|
|
39
|
+
warning: {
|
|
40
|
+
icon: string;
|
|
41
|
+
title: string;
|
|
42
|
+
tooltip: string;
|
|
43
|
+
};
|
|
44
|
+
error: {
|
|
45
|
+
icon: string;
|
|
46
|
+
title: string;
|
|
47
|
+
tooltip: string;
|
|
48
|
+
};
|
|
49
|
+
commentary: {
|
|
50
|
+
icon: string;
|
|
51
|
+
title: string;
|
|
52
|
+
tooltip: string;
|
|
53
|
+
};
|
|
54
|
+
ideation: {
|
|
55
|
+
icon: string;
|
|
56
|
+
title: string;
|
|
57
|
+
tooltip: string;
|
|
58
|
+
};
|
|
59
|
+
source: {
|
|
60
|
+
icon: string;
|
|
61
|
+
title: string;
|
|
62
|
+
tooltip: string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
}, true>;
|
|
25
66
|
|
|
26
67
|
export { _default as default };
|
|
27
68
|
export type { ModuleOptions };
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -4,10 +4,11 @@ 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.
|
|
7
|
+
const version = "2.0.5";
|
|
8
8
|
const homepage = "https://rimelight.com/tools/rimelight-components";
|
|
9
9
|
|
|
10
10
|
const defaultOptions = {
|
|
11
|
+
enabled: true,
|
|
11
12
|
prefix: "RC",
|
|
12
13
|
callouts: {
|
|
13
14
|
info: {
|
|
@@ -48,7 +49,7 @@ const defaultOptions = {
|
|
|
48
49
|
}
|
|
49
50
|
};
|
|
50
51
|
|
|
51
|
-
function addBlockMapTemplates(blockNames
|
|
52
|
+
function addBlockMapTemplates(blockNames) {
|
|
52
53
|
const template = addTemplate({
|
|
53
54
|
filename: "rimelight-blocks-map.mjs",
|
|
54
55
|
getContents: () => {
|
|
@@ -84,7 +85,7 @@ function addBlockMapTemplates(blockNames, resolver) {
|
|
|
84
85
|
return template;
|
|
85
86
|
}
|
|
86
87
|
|
|
87
|
-
const module = defineNuxtModule({
|
|
88
|
+
const module = defineNuxtModule().with({
|
|
88
89
|
meta: {
|
|
89
90
|
name,
|
|
90
91
|
version,
|
|
@@ -94,84 +95,87 @@ const module = defineNuxtModule({
|
|
|
94
95
|
nuxt: ">=4.0.0"
|
|
95
96
|
}
|
|
96
97
|
},
|
|
97
|
-
defaults: defaultOptions,
|
|
98
98
|
hooks: {},
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
99
|
+
defaults: defaultOptions,
|
|
100
|
+
moduleDependencies(nuxt) {
|
|
101
|
+
const dependencies = {
|
|
102
|
+
"@nuxt/image": {
|
|
103
|
+
version: ">=1.0.0",
|
|
104
|
+
optional: false,
|
|
105
|
+
overrides: {},
|
|
106
|
+
defaults: {}
|
|
107
|
+
},
|
|
108
|
+
"@nuxtjs/i18n": {
|
|
109
|
+
version: ">=10.1.1",
|
|
110
|
+
optional: false,
|
|
111
|
+
overrides: {},
|
|
112
|
+
defaults: {}
|
|
113
|
+
},
|
|
114
|
+
"@nuxt/ui": {
|
|
115
|
+
version: ">=4.0.0",
|
|
116
|
+
optional: false,
|
|
117
|
+
overrides: {},
|
|
118
|
+
defaults: {
|
|
119
|
+
prefix: "U",
|
|
120
|
+
theme: {
|
|
121
|
+
colors: [
|
|
122
|
+
"neutral",
|
|
123
|
+
"primary",
|
|
124
|
+
"secondary",
|
|
125
|
+
"info",
|
|
126
|
+
"success",
|
|
127
|
+
"warning",
|
|
128
|
+
"error",
|
|
129
|
+
"commentary",
|
|
130
|
+
"ideation",
|
|
131
|
+
"source"
|
|
132
|
+
]
|
|
133
|
+
}
|
|
131
134
|
}
|
|
135
|
+
},
|
|
136
|
+
"@vueuse/nuxt": {
|
|
137
|
+
version: ">=13.9.0",
|
|
138
|
+
optional: false,
|
|
139
|
+
overrides: {},
|
|
140
|
+
defaults: {}
|
|
141
|
+
},
|
|
142
|
+
"motion-v/nuxt": {
|
|
143
|
+
version: ">=1.7.2",
|
|
144
|
+
optional: false,
|
|
145
|
+
overrides: {},
|
|
146
|
+
defaults: {}
|
|
132
147
|
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
version: ">=1.7.2",
|
|
142
|
-
optional: false,
|
|
143
|
-
overrides: {},
|
|
144
|
-
defaults: {}
|
|
145
|
-
}
|
|
148
|
+
};
|
|
149
|
+
return dependencies;
|
|
150
|
+
},
|
|
151
|
+
onInstall(nuxt) {
|
|
152
|
+
console.log(`Setting up ${name}.`);
|
|
153
|
+
},
|
|
154
|
+
onUpgrade(nuxt, options, previousVersion) {
|
|
155
|
+
console.log(`Upgrading ${name} from ${previousVersion} to ${version}.`);
|
|
146
156
|
},
|
|
147
157
|
setup(options, nuxt) {
|
|
148
|
-
const
|
|
158
|
+
const { resolve } = createResolver(import.meta.url);
|
|
149
159
|
nuxt.options.appConfig.rimelightComponents = defu(
|
|
150
160
|
nuxt.options.appConfig.rimelightComponents || {},
|
|
151
161
|
options
|
|
152
162
|
);
|
|
153
163
|
addComponentsDir({
|
|
154
|
-
path:
|
|
164
|
+
path: resolve("./runtime/components/"),
|
|
155
165
|
pathPrefix: false,
|
|
156
|
-
|
|
166
|
+
//TODO Figure out if this can be typed better
|
|
167
|
+
prefix: options.prefix ?? void 0,
|
|
157
168
|
global: true
|
|
158
169
|
});
|
|
159
|
-
addImportsDir(
|
|
160
|
-
addImportsDir(
|
|
161
|
-
addImportsDir(
|
|
162
|
-
const
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
);
|
|
170
|
+
addImportsDir(resolve("./runtime/composables"));
|
|
171
|
+
addImportsDir(resolve("./runtime/types"));
|
|
172
|
+
addImportsDir(resolve("./runtime/utils"));
|
|
173
|
+
const blockFiles = readdirSync(
|
|
174
|
+
resolve("./runtime/components/blocks")
|
|
175
|
+
).filter((name2) => name2.endsWith(".vue"));
|
|
166
176
|
const blockNames = blockFiles.map((file) => basename(file, ".vue"));
|
|
167
177
|
const template = addBlockMapTemplates(blockNames);
|
|
168
178
|
nuxt.options.alias["#build/rimelight-blocks-map"] = template.dst;
|
|
169
|
-
},
|
|
170
|
-
onInstall() {
|
|
171
|
-
console.log("Setting up rimelight-components for the first time!");
|
|
172
|
-
},
|
|
173
|
-
onUpgrade() {
|
|
174
|
-
console.log("Upgrading rimelight-components.");
|
|
175
179
|
}
|
|
176
180
|
});
|
|
177
181
|
|
|
@@ -9,10 +9,10 @@ interface FlickeringGridProps {
|
|
|
9
9
|
maxOpacity?: number;
|
|
10
10
|
}
|
|
11
11
|
declare const __VLS_export: import("vue").DefineComponent<FlickeringGridProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FlickeringGridProps> & Readonly<{}>, {
|
|
12
|
-
color: string;
|
|
13
12
|
squareSize: number;
|
|
14
13
|
gridGap: number;
|
|
15
14
|
flickerChance: number;
|
|
15
|
+
color: string;
|
|
16
16
|
maxOpacity: number;
|
|
17
17
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
18
|
declare const _default: typeof __VLS_export;
|
|
@@ -9,10 +9,10 @@ interface FlickeringGridProps {
|
|
|
9
9
|
maxOpacity?: number;
|
|
10
10
|
}
|
|
11
11
|
declare const __VLS_export: import("vue").DefineComponent<FlickeringGridProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FlickeringGridProps> & Readonly<{}>, {
|
|
12
|
-
color: string;
|
|
13
12
|
squareSize: number;
|
|
14
13
|
gridGap: number;
|
|
15
14
|
flickerChance: number;
|
|
15
|
+
color: string;
|
|
16
16
|
maxOpacity: number;
|
|
17
17
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
18
|
declare const _default: typeof __VLS_export;
|
|
@@ -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="
|
|
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="
|
|
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
|
-
{{
|
|
38
|
-
{{
|
|
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
|
-
{{
|
|
68
|
-
{{
|
|
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
|
-
{{
|
|
63
|
+
{{ t(title) }}
|
|
62
64
|
</h5>
|
|
63
65
|
|
|
64
66
|
<ul
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { computed } from "vue";
|
|
3
3
|
import { useClipboard } from "@vueuse/core";
|
|
4
|
-
import { useToast } from "
|
|
4
|
+
import { useToast } from "@nuxt/ui";
|
|
5
5
|
const { copy } = useClipboard();
|
|
6
6
|
const toast = useToast();
|
|
7
7
|
const { name, hex, rgb, hsl, oklch, cmyk } = defineProps({
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
import type { AppConfig } from "@nuxt/schema"
|
|
1
|
+
import type { ModuleOptions } from "../../module"
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
declare module "@nuxt/schema" {
|
|
4
|
+
interface AppConfig {
|
|
5
|
+
rimelightComponents: ModuleOptions
|
|
6
|
+
}
|
|
6
7
|
}
|
|
8
|
+
|
|
9
|
+
export {}
|
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.
|
|
5
|
+
"version": "2.0.5",
|
|
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:*"
|