@hywax/cms 0.0.18 → 0.0.19
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
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 = "0.0.
|
|
9
|
+
const version = "0.0.19";
|
|
10
10
|
|
|
11
11
|
function createContext(options, nuxt) {
|
|
12
12
|
const { resolve } = createResolver(import.meta.url);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed, reactive, ref, toRaw, toValue, watch } from "#imports";
|
|
2
|
-
import
|
|
2
|
+
import { deepEqual } from "fast-equals";
|
|
3
3
|
function useTableFilters(initialFilters, options) {
|
|
4
4
|
const initial = computed(() => toValue(initialFilters));
|
|
5
5
|
const filters = ref(structuredClone(initial.value));
|
|
@@ -22,7 +22,7 @@ function useTableFilters(initialFilters, options) {
|
|
|
22
22
|
});
|
|
23
23
|
const appliedCount = computed(() => {
|
|
24
24
|
return appliedCountFields.value.reduce((sum, key) => {
|
|
25
|
-
return
|
|
25
|
+
return deepEqual(filters.value[key], initial.value[key]) ? sum : sum + 1;
|
|
26
26
|
}, 0);
|
|
27
27
|
});
|
|
28
28
|
watch(initial, (initial2) => {
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _slugify from "@sindresorhus/slugify";
|
|
2
2
|
export function slugify(text) {
|
|
3
3
|
if (!text) {
|
|
4
4
|
return "";
|
|
5
5
|
}
|
|
6
|
-
return _slugify
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
trim: true
|
|
6
|
+
return _slugify(text, {
|
|
7
|
+
customReplacements: [
|
|
8
|
+
["@", " at "]
|
|
9
|
+
]
|
|
11
10
|
});
|
|
12
11
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hywax/cms",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.19",
|
|
5
5
|
"description": "Hywax CMS. ⚠️ This package is intended for internal use only.",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -61,17 +61,17 @@
|
|
|
61
61
|
"@nuxt/kit": "^3.17.5",
|
|
62
62
|
"@nuxt/ui-pro": "^3.1.3",
|
|
63
63
|
"@nuxtjs/mdc": "^0.17.0",
|
|
64
|
+
"@sindresorhus/slugify": "^2.2.1",
|
|
64
65
|
"@unpress/mdc-prosemirror": "0.1.12-beta.2",
|
|
65
66
|
"@uplora/formats": "^0.1.0",
|
|
66
67
|
"@uplora/serializer": "^0.1.3",
|
|
67
68
|
"@vueuse/nuxt": "^13.4.0",
|
|
68
69
|
"defu": "^6.1.4",
|
|
69
|
-
"fast-
|
|
70
|
+
"fast-equals": "^5.2.2",
|
|
70
71
|
"nuxt-auth-utils": "^0.5.20",
|
|
71
72
|
"pathe": "^2.0.3",
|
|
72
73
|
"prosekit": "^0.13.6",
|
|
73
74
|
"scule": "^1.3.0",
|
|
74
|
-
"slugify": "^1.6.6",
|
|
75
75
|
"zod": "^3.25.67"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|