cinqcinqdev-seo 0.1.26 → 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
|
@@ -225,6 +225,8 @@ export const DEFAULT_SECTIONS = {
|
|
|
225
225
|
question: { type: "text", label: "Question", i18n: true },
|
|
226
226
|
answer: { type: "textarea", label: "Answer", i18n: true }
|
|
227
227
|
} },
|
|
228
|
+
bgColor: { type: "color", label: "Background" },
|
|
229
|
+
textColor: { type: "color", label: "Text Color" },
|
|
228
230
|
spacing: { type: "cards", label: "Espacement", options: spacingOptions },
|
|
229
231
|
radius: { type: "cards", label: "Arrondis", options: radiusOptions }
|
|
230
232
|
}
|
|
@@ -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 ?? "";
|