cinqcinqdev-seo 0.1.27 → 0.1.28

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 CHANGED
@@ -77,6 +77,11 @@ interface ModuleOptions {
77
77
  * e.g. '/cms' → routes become /cms, /cms/setup, /cms/editor/:id, etc.
78
78
  */
79
79
  basePath?: string;
80
+ /**
81
+ * Languages available in the editor's i18n switcher.
82
+ * Defaults to ['fr', 'ar', 'en']. Set to ['fr'] for French-only projects.
83
+ */
84
+ langs?: string[];
80
85
  }
81
86
  declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
82
87
 
package/dist/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3.0.0"
6
6
  },
7
- "version": "0.1.27",
7
+ "version": "0.1.28",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
10
  "unbuild": "unknown"
@@ -76,7 +76,7 @@ const blockDiffs = computed(() => {
76
76
  const dirtyBlocks = computed(() => new Set(blockDiffs.value.keys()));
77
77
  const showDiff = ref(false);
78
78
  const editingLang = ref("fr");
79
- const LANGS = ["fr", "ar", "en"];
79
+ const LANGS = config?.langs?.length ? config.langs : ["fr", "ar", "en"];
80
80
  const langLabel = (l) => l === "ar" ? "\u0639" : l.toUpperCase();
81
81
  const resolveI18nForPreview = (val) => {
82
82
  if (!val || typeof val !== "object" || Array.isArray(val)) return val ?? "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cinqcinqdev-seo",
3
- "version": "0.1.27",
3
+ "version": "0.1.28",
4
4
  "description": "A reusable Nuxt 3 admin CMS module with visual page editor powered by Supabase",
5
5
  "license": "MIT",
6
6
  "module": "./dist/module.mjs",