@hywax/cms 1.1.0 → 1.1.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": "@hywax/cms",
3
- "version": "1.1.0",
3
+ "version": "1.1.3",
4
4
  "configKey": "cms",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
package/dist/module.mjs CHANGED
@@ -6,7 +6,7 @@ import { snakeCase, kebabCase } from 'scule';
6
6
  import { readFile, writeFile } from 'node:fs/promises';
7
7
 
8
8
  const name = "@hywax/cms";
9
- const version = "1.1.0";
9
+ const version = "1.1.3";
10
10
 
11
11
  function createContext(options, nuxt) {
12
12
  const { resolve } = createResolver(import.meta.url);
@@ -161,9 +161,6 @@ function prepareMergeConfigs({ nuxt, options }) {
161
161
  nuxt.options.experimental = defu(nuxt.options.experimental || {}, {
162
162
  typedPages: true
163
163
  });
164
- nuxt.options.future = defu(nuxt.options.future || {}, {
165
- compatibilityVersion: 5
166
- });
167
164
  nuxt.options.runtimeConfig.public = defu(nuxt.options.runtimeConfig.public || {}, {
168
165
  fluxorUrl: options.fluxorUrl,
169
166
  version: "develop"
@@ -7,22 +7,21 @@
7
7
  collapsible
8
8
  >
9
9
  <template #header="{ collapsed }">
10
- <NuxtLink :to="homeLink" class="flex items-center gap-2.5" :class="collapsed && 'mx-auto'">
11
- <UIcon v-if="logotypeIcon && logotypeShortIcon" :name="collapsed ? logotypeShortIcon : logotypeIcon" />
12
- <slot v-else name="logotype" :collapsed="collapsed">
13
- <span class="text-lg">{{ logotype }}</span>
14
- </slot>
10
+ <slot name="logotype" :collapsed="collapsed">
11
+ <NuxtLink :to="homeLink" class="flex items-center gap-2.5" :class="collapsed && 'mx-auto'">
12
+ <UIcon v-if="logotypeIcon && logotypeShortIcon" :name="collapsed ? logotypeShortIcon : logotypeIcon" />
15
13
 
16
- <template v-if="version">
17
- <UBadge
18
- v-show="!collapsed"
19
- color="primary"
20
- variant="soft"
21
- size="sm"
22
- :label="version"
23
- />
24
- </template>
25
- </NuxtLink>
14
+ <template v-if="version">
15
+ <UBadge
16
+ v-show="!collapsed"
17
+ color="primary"
18
+ variant="soft"
19
+ size="sm"
20
+ :label="version"
21
+ />
22
+ </template>
23
+ </NuxtLink>
24
+ </slot>
26
25
  </template>
27
26
 
28
27
  <template #default="{ collapsed }">
@@ -44,7 +43,7 @@
44
43
  </template>
45
44
 
46
45
  <template v-if="$slots.footer" #footer="{ collapsed }">
47
- <div class="my-1">
46
+ <div class="my-1 w-full">
48
47
  <slot name="footer" :collapsed="collapsed" />
49
48
  </div>
50
49
  </template>
@@ -1,12 +1,12 @@
1
- import type { StringOrVNode, ToastProps } from '@nuxt/ui';
1
+ import type { ToastProps } from '@nuxt/ui';
2
2
  type NotificationOptions = Omit<ToastProps, 'title' | 'icon' | 'color' | 'defaultOpen'> & {
3
3
  onClick?: (toast: Omit<ToastProps, 'defaultOpen'>) => void;
4
4
  };
5
- export declare function useNotification(): {
6
- success: (message: string, options?: NotificationOptions) => import("@nuxt/ui/runtime/composables/useToast.js").Toast;
7
- error: (message: string, options?: NotificationOptions) => import("@nuxt/ui/runtime/composables/useToast.js").Toast;
8
- warning: (message: StringOrVNode, options?: NotificationOptions) => import("@nuxt/ui/runtime/composables/useToast.js").Toast;
9
- notify: (toast: Partial<import("@nuxt/ui/runtime/composables/useToast.js").Toast>) => import("@nuxt/ui/runtime/composables/useToast.js").Toast;
10
- info: (message: StringOrVNode, options?: NotificationOptions) => import("@nuxt/ui/runtime/composables/useToast.js").Toast;
11
- };
5
+ interface UseNotificationReturn {
6
+ success: (message: string, options?: NotificationOptions) => void;
7
+ error: (message: string, options?: NotificationOptions) => void;
8
+ warning: (message: string, options?: NotificationOptions) => void;
9
+ info: (message: string, options?: NotificationOptions) => void;
10
+ }
11
+ export declare function useNotification(): UseNotificationReturn;
12
12
  export {};
@@ -40,7 +40,6 @@ export function useNotification() {
40
40
  success,
41
41
  error,
42
42
  warning,
43
- notify,
44
43
  info
45
44
  };
46
45
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hywax/cms",
3
3
  "type": "module",
4
- "version": "1.1.0",
4
+ "version": "1.1.3",
5
5
  "description": "Hywax CMS. ⚠️ This package is intended for internal use only.",
6
6
  "repository": {
7
7
  "type": "git",
@@ -68,7 +68,7 @@
68
68
  "consola": "^3.4.2",
69
69
  "defu": "^6.1.4",
70
70
  "fast-copy": "^3.0.2",
71
- "fast-equals": "^5.2.2",
71
+ "fast-equals": "^5.4.0",
72
72
  "nuxt-auth-utils": "^0.5.26",
73
73
  "pathe": "^2.0.3",
74
74
  "scule": "^1.3.0",
@@ -86,13 +86,13 @@
86
86
  "@types/node": "^24.10.4",
87
87
  "@types/sortablejs": "^1.15.9",
88
88
  "@vue/test-utils": "^2.4.6",
89
- "changelogen": "^0.6.1",
89
+ "changelogen": "^0.6.2",
90
90
  "eslint": "^9.39.2",
91
91
  "happy-dom": "^20.0.11",
92
92
  "husky": "^9.1.7",
93
- "lint-staged": "^16.1.2",
93
+ "lint-staged": "^16.2.7",
94
94
  "nuxt": "^4.2.2",
95
- "typescript": "^5.8.3",
95
+ "typescript": "^5.9.3",
96
96
  "vitest": "^3.2.4",
97
97
  "vue-tsc": "^3.2.1"
98
98
  },