@vectoriox/iox-ui 5.139.0 → 5.140.0
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/composite-core/index.d.ts +3 -1
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs +3 -1
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +23 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/package.json +1 -1
- package/src/composite-core/consent.ts +4 -2
- package/src/generation-core/compose-layout.ts +25 -1
|
@@ -2571,6 +2571,7 @@ declare const CONSENT_WORDS: {
|
|
|
2571
2571
|
readonly preferences: "Preferences";
|
|
2572
2572
|
readonly settings: "Cookie settings";
|
|
2573
2573
|
readonly done: "Done";
|
|
2574
|
+
readonly privacy: "Privacy policy";
|
|
2574
2575
|
readonly prefsTitle: "Your privacy choices";
|
|
2575
2576
|
readonly prefsSub: "Change these any time from “Cookie settings” at the foot of the site.";
|
|
2576
2577
|
readonly alwaysOn: "Always on";
|
|
@@ -2597,6 +2598,7 @@ declare const CONSENT_WORDS: {
|
|
|
2597
2598
|
readonly preferences: "העדפות";
|
|
2598
2599
|
readonly settings: "הגדרות עוגיות";
|
|
2599
2600
|
readonly done: "סיום";
|
|
2601
|
+
readonly privacy: "מדיניות פרטיות";
|
|
2600
2602
|
readonly prefsTitle: "הבחירות שלך לפרטיות";
|
|
2601
2603
|
readonly prefsSub: "אפשר לשנות בכל עת ב„הגדרות עוגיות” שבתחתית האתר.";
|
|
2602
2604
|
readonly alwaysOn: "תמיד פועלות";
|
|
@@ -2631,7 +2633,7 @@ interface ConsentRecipeOptions {
|
|
|
2631
2633
|
categories?: ReadonlyArray<ConsentCategory>;
|
|
2632
2634
|
/** The privacy page's route — linked from the banner when the site has one. */
|
|
2633
2635
|
privacyRoute?: string | null;
|
|
2634
|
-
/** The privacy link's words (the page's title). */
|
|
2636
|
+
/** The privacy link's words (the page's title; the site's language's "Privacy policy" when it has none). */
|
|
2635
2637
|
privacyLabel?: string;
|
|
2636
2638
|
}
|
|
2637
2639
|
interface ConsentRecipe {
|
|
@@ -6707,6 +6707,7 @@ const CONSENT_WORDS = {
|
|
|
6707
6707
|
title: 'Cookies on this site',
|
|
6708
6708
|
body: 'Analytics and marketing cookies run only if you allow them. Necessary ones always run.',
|
|
6709
6709
|
accept: 'Accept all', reject: 'Reject all', preferences: 'Preferences', settings: 'Cookie settings', done: 'Done',
|
|
6710
|
+
privacy: 'Privacy policy',
|
|
6710
6711
|
prefsTitle: 'Your privacy choices',
|
|
6711
6712
|
prefsSub: 'Change these any time from “Cookie settings” at the foot of the site.',
|
|
6712
6713
|
alwaysOn: 'Always on',
|
|
@@ -6720,6 +6721,7 @@ const CONSENT_WORDS = {
|
|
|
6720
6721
|
title: 'עוגיות באתר הזה',
|
|
6721
6722
|
body: 'עוגיות לסטטיסטיקה ולשיווק פועלות רק באישורך. עוגיות הכרחיות פועלות תמיד.',
|
|
6722
6723
|
accept: 'לאשר הכול', reject: 'לדחות הכול', preferences: 'העדפות', settings: 'הגדרות עוגיות', done: 'סיום',
|
|
6724
|
+
privacy: 'מדיניות פרטיות',
|
|
6723
6725
|
prefsTitle: 'הבחירות שלך לפרטיות',
|
|
6724
6726
|
prefsSub: 'אפשר לשנות בכל עת ב„הגדרות עוגיות” שבתחתית האתר.',
|
|
6725
6727
|
alwaysOn: 'תמיד פועלות',
|
|
@@ -6805,7 +6807,7 @@ function buildConsentRecipe(create, options = {}) {
|
|
|
6805
6807
|
? [recipePart(create, 'consent-privacy', 'Link', ConsentRole.Privacy, Style.Link,
|
|
6806
6808
|
// Hugs its words: the words column stretches its children, and a stretched link draws its underline the
|
|
6807
6809
|
// column's whole width (AW1 Rule 0, 2026-11-21). `flex-start` is logical — the start side in Hebrew too.
|
|
6808
|
-
{ label: options.privacyLabel ||
|
|
6810
|
+
{ label: options.privacyLabel || t.privacy, linkType: 'page', pageRoute: options.privacyRoute }, 'Privacy policy', { ...WORDS, alignSelf: 'flex-start' })]
|
|
6809
6811
|
: []),
|
|
6810
6812
|
];
|
|
6811
6813
|
const accept = button(create, 'consent-accept', ConsentRole.Accept, Style.Primary, t.accept, 'Accept all');
|