rimelight-components 2.0.95 → 2.0.97

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.95",
3
+ "version": "2.0.97",
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.95";
7
+ const version = "2.0.97";
8
8
  const homepage = "https://rimelight.com/tools/rimelight-components";
9
9
 
10
10
  const defaultOptions = {
@@ -183,9 +183,6 @@ const module$1 = defineNuxtModule().with({
183
183
  },
184
184
  setup(options, nuxt) {
185
185
  const { resolve } = createResolver(import.meta.url);
186
- nuxt.options.vite.optimizeDeps = nuxt.options.vite.optimizeDeps || {};
187
- nuxt.options.vite.optimizeDeps.include = nuxt.options.vite.optimizeDeps.include || [];
188
- nuxt.options.vite.optimizeDeps.include.push("@nuxt/ui", "@nuxtjs/i18n", "@nuxt/image", "@vueuse/nuxt");
189
186
  nuxt.options.appConfig.rimelightComponents = defu(
190
187
  nuxt.options.appConfig.rimelightComponents || {},
191
188
  options
@@ -220,6 +217,9 @@ const module$1 = defineNuxtModule().with({
220
217
  });
221
218
  const blockEditorTemplate = addEditorBlockMapTemplates(blockEditorNames);
222
219
  nuxt.options.alias["#build/rimelight-block-editor-map"] = blockEditorTemplate.dst;
220
+ nuxt.hook("prepare:types", ({ references }) => {
221
+ references.push({ path: resolve("./runtime/app.config.d.ts") });
222
+ });
223
223
  }
224
224
  });
225
225
 
@@ -1,4 +1,14 @@
1
- declare const _default: {
2
- rimelightComponents: {};
3
- };
4
- export default _default;
1
+ declare module '#build/app.config' {
2
+ import type { AppConfig } from '@nuxt/schema'
3
+
4
+ interface RimelightComponentsConfig {
5
+ [key: string]: any
6
+ }
7
+
8
+ interface CustomAppConfig extends AppConfig {
9
+ rimelightComponents?: RimelightComponentsConfig
10
+ }
11
+
12
+ const _default: CustomAppConfig
13
+ export default _default
14
+ }
@@ -104,10 +104,12 @@ const getSortedFields = (fields) => {
104
104
  <span>ID:</span>
105
105
  <span>{{ page.id }}</span>
106
106
  </div>
107
+ <ClientOnly>
107
108
  <div class="flex justify-between">
108
109
  <span>Last Updated:</span>
109
110
  <span>{{ page.updated_at }}</span>
110
111
  </div>
112
+ </ClientOnly>
111
113
  </div>
112
114
  </div>
113
115
  </template>
@@ -124,20 +124,6 @@ export function useBlockEditor(initialBlocks, { maxHistorySize = 100, onMutation
124
124
  };
125
125
  const insertBlock = (newBlockType, targetId = null, position = "after") => {
126
126
  executeMutation(() => {
127
- const newBlock = {
128
- id: uuidv7(),
129
- type: newBlockType,
130
- props: getDefaultPropsForType(newBlockType)
131
- };
132
- if (!targetId) {
133
- initialBlocks.value.push(newBlock);
134
- return;
135
- }
136
- const loc = findBlockLocation(initialBlocks.value, targetId);
137
- if (loc) {
138
- const insertIndex = position === "after" ? loc.index + 1 : loc.index;
139
- loc.parentArray.splice(insertIndex, 0, newBlock);
140
- }
141
127
  });
142
128
  };
143
129
  const commitChanges = () => {
@@ -162,6 +148,3 @@ export function useBlockEditor(initialBlocks, { maxHistorySize = 100, onMutation
162
148
  commitChanges
163
149
  };
164
150
  }
165
- function getDefaultPropsForType(type) {
166
- return { children: [] };
167
- }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "rimelight-components",
3
3
  "description": "A component library by Rimelight Entertainment.",
4
- "version": "2.0.95",
4
+ "version": "2.0.97",
5
5
  "type": "module",
6
6
  "repository": {
7
7
  "type": "git",
@@ -80,12 +80,8 @@
80
80
  "release": "release-it --ci"
81
81
  },
82
82
  "dependencies": {
83
- "@nuxt/image": "^2.0.0",
84
83
  "@nuxt/kit": "^4.2.2",
85
- "@nuxt/ui": "^4.2.0",
86
- "@nuxtjs/i18n": "^10.2.1",
87
84
  "@vueuse/core": "^14.1.0",
88
- "@vueuse/nuxt": "^14.1.0",
89
85
  "date-fns": "^4.1.0",
90
86
  "defu": "^6.1.4",
91
87
  "drizzle-orm": "^0.45.1",
@@ -98,10 +94,14 @@
98
94
  "devDependencies": {
99
95
  "@iconify-json/lucide": "^1.2.82",
100
96
  "@nuxt/devtools": "^3.1.1",
97
+ "@nuxt/image": "^2.0.0",
101
98
  "@nuxt/module-builder": "^1.0.2",
102
99
  "@nuxt/schema": "^4.2.2",
103
100
  "@nuxt/test-utils": "^3.21.0",
101
+ "@nuxt/ui": "^4.2.0",
102
+ "@nuxtjs/i18n": "^10.2.1",
104
103
  "@types/node": "latest",
104
+ "@vueuse/nuxt": "^14.1.0",
105
105
  "changelogen": "^0.6.2",
106
106
  "oxfmt": "^0.18.0",
107
107
  "oxlint": "^1.33.0",
@@ -111,6 +111,12 @@
111
111
  "vitest": "^4.0.15",
112
112
  "vue-tsc": "^3.2.0"
113
113
  },
114
+ "peerDependencies": {
115
+ "@nuxt/image": "^2.0.0",
116
+ "@nuxt/ui": "^4.2.0",
117
+ "@nuxtjs/i18n": "^10.2.1",
118
+ "@vueuse/nuxt": "^14.1.0"
119
+ },
114
120
  "trustedDependencies": [
115
121
  "@parcel/watcher",
116
122
  "@tailwindcss/oxide",
@@ -1,14 +0,0 @@
1
- declare module '#build/app.config' {
2
- import type { AppConfig } from '@nuxt/schema'
3
-
4
- interface RimelightComponentsConfig {
5
- [key: string]: any
6
- }
7
-
8
- interface CustomAppConfig extends AppConfig {
9
- rimelightComponents?: RimelightComponentsConfig
10
- }
11
-
12
- const _default: CustomAppConfig
13
- export default _default
14
- }