@yatoday/astro-ui 0.17.11 → 0.17.13

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.
@@ -14,7 +14,9 @@ const { language, textDirection, locales, defaultLocale } = I18N;
14
14
  const currentLang = Astro.currentLocale || language;
15
15
 
16
16
  // Build i18n config for Metadata component (for hreflang generation)
17
- const i18nConfig = locales?.length ? { locales, defaultLocale: defaultLocale || language } : undefined;
17
+ // Allow page-level override via metadata.i18n for single-language pages
18
+ const globalI18nConfig = locales?.length ? { locales, defaultLocale: defaultLocale || language } : undefined;
19
+ const i18nConfig = metadata.i18n || globalI18nConfig;
18
20
  ---
19
21
 
20
22
  <!doctype html>
@@ -18,6 +18,10 @@ const {
18
18
  space-between="10"
19
19
  centered-slides="true"
20
20
  slides-per-view="1.2"
21
+ prevent-clicks="true"
22
+ prevent-clicks-propagation="true"
23
+ threshold="10"
24
+ touch-start-prevent-default="false"
21
25
  navigation={withNavigation
22
26
  ? JSON.stringify({
23
27
  nextEl: `#btn-next-${id}`,
@@ -23,6 +23,10 @@
23
23
  space-between="10"
24
24
  centered-slides="true"
25
25
  slides-per-view="1.2"
26
+ prevent-clicks="true"
27
+ prevent-clicks-propagation="true"
28
+ threshold="10"
29
+ touch-start-prevent-default="false"
26
30
  navigation={withNavigation
27
31
  ? JSON.stringify({
28
32
  nextEl: `#btn-next-${id}`,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@yatoday/astro-ui",
3
3
  "type": "module",
4
- "version": "0.17.11",
4
+ "version": "0.17.13",
5
5
  "scripts": {
6
6
  "prepare": "husky",
7
7
  "pre-commit": "lint-staged",