@redacto.io/consent-sdk-react 10.0.0-beta.6 → 10.0.0-beta.8
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/CHANGELOG.md +12 -0
- package/dist/privacy-center.d.mts +3 -2
- package/dist/privacy-center.d.ts +3 -2
- package/dist/privacy-center.js +47 -76
- package/dist/privacy-center.mjs +47 -76
- package/package.json +1 -1
- package/src/RedactoPrivacyCenter/api/actions.ts +3 -1
- package/src/RedactoPrivacyCenter/api/client.ts +6 -1
- package/src/RedactoPrivacyCenter/components/ConsentManager.tsx +2 -1
- package/src/RedactoPrivacyCenter/components/SelectUser.tsx +24 -26
- package/src/RedactoPrivacyCenter/components/SelectUserGate.tsx +0 -6
- package/src/RedactoPrivacyCenter/components/constant.ts +3 -3
- package/src/RedactoPrivacyCenter/lib/api.ts +3 -0
- package/src/RedactoPrivacyCenter/lib/types.ts +0 -1
- package/src/RedactoPrivacyCenter/locales/as/translation.json +1 -2
- package/src/RedactoPrivacyCenter/locales/bn/translation.json +1 -2
- package/src/RedactoPrivacyCenter/locales/brx/translation.json +1 -2
- package/src/RedactoPrivacyCenter/locales/doi/translation.json +1 -2
- package/src/RedactoPrivacyCenter/locales/en/translation.json +1 -2
- package/src/RedactoPrivacyCenter/locales/gom/translation.json +1 -2
- package/src/RedactoPrivacyCenter/locales/gu/translation.json +1 -2
- package/src/RedactoPrivacyCenter/locales/hi/translation.json +1 -2
- package/src/RedactoPrivacyCenter/locales/kn/translation.json +1 -2
- package/src/RedactoPrivacyCenter/locales/ks/translation.json +1 -2
- package/src/RedactoPrivacyCenter/locales/mai/translation.json +1 -2
- package/src/RedactoPrivacyCenter/locales/ml/translation.json +1 -2
- package/src/RedactoPrivacyCenter/locales/mni-Mtei/translation.json +1 -2
- package/src/RedactoPrivacyCenter/locales/mr/translation.json +1 -2
- package/src/RedactoPrivacyCenter/locales/ne/translation.json +1 -2
- package/src/RedactoPrivacyCenter/locales/or/translation.json +1 -2
- package/src/RedactoPrivacyCenter/locales/pa/translation.json +1 -2
- package/src/RedactoPrivacyCenter/locales/sa/translation.json +1 -2
- package/src/RedactoPrivacyCenter/locales/sat/translation.json +1 -2
- package/src/RedactoPrivacyCenter/locales/sd/translation.json +1 -2
- package/src/RedactoPrivacyCenter/locales/ta/translation.json +1 -2
- package/src/RedactoPrivacyCenter/locales/te/translation.json +1 -2
- package/src/RedactoPrivacyCenter/locales/ur/translation.json +1 -2
- package/src/RedactoPrivacyCenter/styles/injectStyles.ts +0 -11
- package/tests/consentClient.test.ts +46 -0
|
@@ -47,6 +47,6 @@ export const ACTIVITY_FETCH_ERROR_MESSAGE = 'Failed to fetch activity data';
|
|
|
47
47
|
export const PICKED_ORG_USER_KEY = 'pc_picked_org_user_id';
|
|
48
48
|
|
|
49
49
|
// The shared-contact picker/switch user-facing strings are localized via i18n —
|
|
50
|
-
// see the chooseYourProfile /
|
|
51
|
-
//
|
|
52
|
-
//
|
|
50
|
+
// see the chooseYourProfile / loginIdentifierLinkedToMultipleProfiles /
|
|
51
|
+
// signingInEllipsis / couldNotSwitchProfile / switchProfile keys in
|
|
52
|
+
// locales/*/translation.json.
|
|
@@ -394,6 +394,7 @@ export const manageConsent = async ({
|
|
|
394
394
|
productUuid,
|
|
395
395
|
noticeUuid,
|
|
396
396
|
dataElements,
|
|
397
|
+
language,
|
|
397
398
|
}: {
|
|
398
399
|
organizationId: string;
|
|
399
400
|
workspaceId: string;
|
|
@@ -407,6 +408,7 @@ export const manageConsent = async ({
|
|
|
407
408
|
productUuid?: string;
|
|
408
409
|
noticeUuid?: string;
|
|
409
410
|
dataElements?: Array<{ uuid: string; selected: boolean }>;
|
|
411
|
+
language?: string;
|
|
410
412
|
}): Promise<boolean | null> => {
|
|
411
413
|
try {
|
|
412
414
|
// Ensure we have a valid token before making the API call
|
|
@@ -429,6 +431,7 @@ export const manageConsent = async ({
|
|
|
429
431
|
productUuid,
|
|
430
432
|
noticeUuid,
|
|
431
433
|
dataElements,
|
|
434
|
+
language,
|
|
432
435
|
});
|
|
433
436
|
return result;
|
|
434
437
|
} catch (error: any) {
|
|
@@ -856,7 +856,6 @@ export type SelectPrincipalResponse = Readonly<{
|
|
|
856
856
|
export type GatePhase = 'checking' | 'picking' | 'resolved';
|
|
857
857
|
|
|
858
858
|
export type SelectUserProps = Readonly<{
|
|
859
|
-
email: string | null;
|
|
860
859
|
candidates: IdentityCandidate[];
|
|
861
860
|
onSelect: (orgUserId: string) => void;
|
|
862
861
|
busyOrgUserId: string | null;
|
|
@@ -333,8 +333,7 @@
|
|
|
333
333
|
"retrying": "Retrying...",
|
|
334
334
|
"switchProfile": "প্ৰ'ফাইল সলনি কৰক",
|
|
335
335
|
"chooseYourProfile": "আপোনাৰ প্ৰ'ফাইল বাছনি কৰক",
|
|
336
|
-
"
|
|
337
|
-
"contactLinkedToMultipleProfiles": "এই যোগাযোগটো একাধিক প্ৰ'ফাইলৰ সৈতে সংযুক্ত। আপুনি চাব বিচৰাটো বাছনি কৰক।",
|
|
336
|
+
"loginIdentifierLinkedToMultipleProfiles": "লগইন আইডি একাধিক প্ৰ'ফাইলৰ সৈতে সংযুক্ত। আপুনি চাব বিচৰাটো বাছনি কৰক।",
|
|
338
337
|
"signingInEllipsis": "ছাইন ইন হৈ আছে…",
|
|
339
338
|
"couldNotSwitchProfile": "সেই প্ৰ'ফাইললৈ সলনি কৰিব পৰা নগ'ল। অনুগ্ৰহ কৰি পুনৰ চেষ্টা কৰক।",
|
|
340
339
|
"purposeNotRevocable": "This purpose can't be withdrawn directly.",
|
|
@@ -333,8 +333,7 @@
|
|
|
333
333
|
"retrying": "Retrying...",
|
|
334
334
|
"switchProfile": "প্রোফাইল পরিবর্তন করুন",
|
|
335
335
|
"chooseYourProfile": "আপনার প্রোফাইল বেছে নিন",
|
|
336
|
-
"
|
|
337
|
-
"contactLinkedToMultipleProfiles": "এই যোগাযোগটি একাধিক প্রোফাইলের সাথে যুক্ত। আপনি যেটি দেখতে চান সেটি বেছে নিন।",
|
|
336
|
+
"loginIdentifierLinkedToMultipleProfiles": "লগইন আইডি একাধিক প্রোফাইলের সাথে যুক্ত। আপনি যেটি দেখতে চান সেটি বেছে নিন।",
|
|
338
337
|
"signingInEllipsis": "সাইন ইন হচ্ছে…",
|
|
339
338
|
"couldNotSwitchProfile": "সেই প্রোফাইলে স্যুইচ করা যায়নি। অনুগ্রহ করে আবার চেষ্টা করুন।",
|
|
340
339
|
"purposeNotRevocable": "This purpose can't be withdrawn directly.",
|
|
@@ -333,8 +333,7 @@
|
|
|
333
333
|
"retrying": "Retrying...",
|
|
334
334
|
"switchProfile": "प्रोफाइल सोलाय",
|
|
335
335
|
"chooseYourProfile": "नोंथांनि प्रफाइल सायख",
|
|
336
|
-
"
|
|
337
|
-
"contactLinkedToMultipleProfiles": "बे सोमोन्दोआ मोनसेनिख्रुइ बांसिन प्रफाइलजों नांजाब दं। नोंथाङा नायनो लुबैयोब्ला बेखौ सायख।",
|
|
336
|
+
"loginIdentifierLinkedToMultipleProfiles": "लॉगिन आईडी मोनसेनिख्रुइ बांसिन प्रफाइलजों नांजाब दं। नोंथाङा नायनो लुबैयोब्ला बेखौ सायख।",
|
|
338
337
|
"signingInEllipsis": "साइन इन जायगासिनो दं…",
|
|
339
338
|
"couldNotSwitchProfile": "बै प्रफाइलआव स्विच खालामनो हायाखै। अननानै फिन नाजा।",
|
|
340
339
|
"purposeNotRevocable": "This purpose can't be withdrawn directly.",
|
|
@@ -333,8 +333,7 @@
|
|
|
333
333
|
"retrying": "Retrying...",
|
|
334
334
|
"switchProfile": "प्रोफाइल बदलो",
|
|
335
335
|
"chooseYourProfile": "अपनी प्रोफाइल चुनो",
|
|
336
|
-
"
|
|
337
|
-
"contactLinkedToMultipleProfiles": "एह् संपर्क इक कोला मता प्रोफाइलें कन्नै जुड़्या दा ऐ। जेह्ड़ी तुसें दिक्खनी ऐ ओह् चुनो।",
|
|
336
|
+
"loginIdentifierLinkedToMultipleProfiles": "लॉगिन आईडी इक कोला मता प्रोफाइलें कन्नै जुड़्या दा ऐ। जेह्ड़ी तुसें दिक्खनी ऐ ओह् चुनो।",
|
|
338
337
|
"signingInEllipsis": "साइन इन होआ करदा ऐ…",
|
|
339
338
|
"couldNotSwitchProfile": "ओह् प्रोफाइल पर स्विच नेईं होई सकेआ। कृपा करियै दुबारा कोशिश करो।",
|
|
340
339
|
"purposeNotRevocable": "This purpose can't be withdrawn directly.",
|
|
@@ -347,8 +347,7 @@
|
|
|
347
347
|
"selectPurposesForThisProduct": "Select purposes within this product.",
|
|
348
348
|
"switchProfile": "Switch profile",
|
|
349
349
|
"chooseYourProfile": "Choose your profile",
|
|
350
|
-
"
|
|
351
|
-
"contactLinkedToMultipleProfiles": "This contact is linked to more than one profile. Choose the one you want to view.",
|
|
350
|
+
"loginIdentifierLinkedToMultipleProfiles": "The login identifier is linked to more than one profile. Choose the one you want to view.",
|
|
352
351
|
"signingInEllipsis": "Signing in…",
|
|
353
352
|
"couldNotSwitchProfile": "Could not switch to that profile. Please try again.",
|
|
354
353
|
"purposeNotRevocable": "This purpose can't be withdrawn directly.",
|
|
@@ -333,8 +333,7 @@
|
|
|
333
333
|
"retrying": "Retrying...",
|
|
334
334
|
"switchProfile": "प्रोफायल बदला",
|
|
335
335
|
"chooseYourProfile": "तुमचें प्रोफायल निवडात",
|
|
336
|
-
"
|
|
337
|
-
"contactLinkedToMultipleProfiles": "हो संपर्क एकापरस चड प्रोफायलांक जोडला. तुमकां जें पळोवपाक जाय तें निवडात.",
|
|
336
|
+
"loginIdentifierLinkedToMultipleProfiles": "लॉगिन आयडी एकापरस चड प्रोफायलांक जोडला. तुमकां जें पळोवपाक जाय तें निवडात.",
|
|
338
337
|
"signingInEllipsis": "साइन इन जावन आसा…",
|
|
339
338
|
"couldNotSwitchProfile": "त्या प्रोफायलाचेर स्विच करूंक जालें ना. उपकार करून परत यत्न करात.",
|
|
340
339
|
"purposeNotRevocable": "This purpose can't be withdrawn directly.",
|
|
@@ -333,8 +333,7 @@
|
|
|
333
333
|
"retrying": "Retrying...",
|
|
334
334
|
"switchProfile": "પ્રોફાઇલ બદલો",
|
|
335
335
|
"chooseYourProfile": "તમારી પ્રોફાઇલ પસંદ કરો",
|
|
336
|
-
"
|
|
337
|
-
"contactLinkedToMultipleProfiles": "આ સંપર્ક એક કરતાં વધુ પ્રોફાઇલ સાથે જોડાયેલ છે. તમે જે જોવા માંગો છો તે પસંદ કરો.",
|
|
336
|
+
"loginIdentifierLinkedToMultipleProfiles": "લોગિન આઈડી એક કરતાં વધુ પ્રોફાઇલ સાથે જોડાયેલ છે. તમે જે જોવા માંગો છો તે પસંદ કરો.",
|
|
338
337
|
"signingInEllipsis": "સાઇન ઇન થઈ રહ્યું છે…",
|
|
339
338
|
"couldNotSwitchProfile": "તે પ્રોફાઇલ પર સ્વિચ કરી શકાયું નહીં. કૃપા કરીને ફરી પ્રયાસ કરો.",
|
|
340
339
|
"purposeNotRevocable": "This purpose can't be withdrawn directly.",
|
|
@@ -336,8 +336,7 @@
|
|
|
336
336
|
"retrying": "Retrying...",
|
|
337
337
|
"switchProfile": "प्रोफ़ाइल बदलें",
|
|
338
338
|
"chooseYourProfile": "अपनी प्रोफ़ाइल चुनें",
|
|
339
|
-
"
|
|
340
|
-
"contactLinkedToMultipleProfiles": "यह संपर्क एक से अधिक प्रोफ़ाइल से जुड़ा है। जिसे आप देखना चाहते हैं उसे चुनें।",
|
|
339
|
+
"loginIdentifierLinkedToMultipleProfiles": "लॉगिन आईडी एक से अधिक प्रोफ़ाइल से जुड़ा है। जिसे आप देखना चाहते हैं उसे चुनें।",
|
|
341
340
|
"signingInEllipsis": "साइन इन हो रहा है…",
|
|
342
341
|
"couldNotSwitchProfile": "उस प्रोफ़ाइल पर स्विच नहीं किया जा सका। कृपया पुनः प्रयास करें।",
|
|
343
342
|
"purposeNotRevocable": "This purpose can't be withdrawn directly.",
|
|
@@ -333,8 +333,7 @@
|
|
|
333
333
|
"retrying": "Retrying...",
|
|
334
334
|
"switchProfile": "ಪ್ರೊಫೈಲ್ ಬದಲಾಯಿಸಿ",
|
|
335
335
|
"chooseYourProfile": "ನಿಮ್ಮ ಪ್ರೊಫೈಲ್ ಆಯ್ಕೆಮಾಡಿ",
|
|
336
|
-
"
|
|
337
|
-
"contactLinkedToMultipleProfiles": "ಈ ಸಂಪರ್ಕವು ಒಂದಕ್ಕಿಂತ ಹೆಚ್ಚು ಪ್ರೊಫೈಲ್ಗಳಿಗೆ ಲಿಂಕ್ ಆಗಿದೆ. ನೀವು ವೀಕ್ಷಿಸಲು ಬಯಸುವುದನ್ನು ಆಯ್ಕೆಮಾಡಿ.",
|
|
336
|
+
"loginIdentifierLinkedToMultipleProfiles": "ಲಾಗಿನ್ ಐಡಿ ಒಂದಕ್ಕಿಂತ ಹೆಚ್ಚು ಪ್ರೊಫೈಲ್ಗಳಿಗೆ ಲಿಂಕ್ ಆಗಿದೆ. ನೀವು ವೀಕ್ಷಿಸಲು ಬಯಸುವುದನ್ನು ಆಯ್ಕೆಮಾಡಿ.",
|
|
338
337
|
"signingInEllipsis": "ಸೈನ್ ಇನ್ ಆಗುತ್ತಿದೆ…",
|
|
339
338
|
"couldNotSwitchProfile": "ಆ ಪ್ರೊಫೈಲ್ಗೆ ಬದಲಾಯಿಸಲು ಸಾಧ್ಯವಾಗಲಿಲ್ಲ. ದಯವಿಟ್ಟು ಮತ್ತೆ ಪ್ರಯತ್ನಿಸಿ.",
|
|
340
339
|
"purposeNotRevocable": "This purpose can't be withdrawn directly.",
|
|
@@ -333,8 +333,7 @@
|
|
|
333
333
|
"retrying": "Retrying...",
|
|
334
334
|
"switchProfile": "پروفائل بدلاو",
|
|
335
335
|
"chooseYourProfile": "پننہٕ پروفائل ژارٕو",
|
|
336
|
-
"
|
|
337
|
-
"contactLinkedToMultipleProfiles": "یہ رابطہ چھُ اکہ کھۄتہ زیادٕ پروفائلن سٟتؠ جوڑنہ آمُت۔ یُس توہہِ وُچھُن چھِو یژھان سُ ژارٕو۔",
|
|
336
|
+
"loginIdentifierLinkedToMultipleProfiles": "لاگ اِن آئی ڈی چھُ اکہ کھۄتہ زیادٕ پروفائلن سٟتؠ جوڑنہ آمُت۔ یُس توہہِ وُچھُن چھِو یژھان سُ ژارٕو۔",
|
|
338
337
|
"signingInEllipsis": "سائن اِن گژھان چھُ…",
|
|
339
338
|
"couldNotSwitchProfile": "تہِ پروفائلس منٛز سوِچ کرُن آو نہ۔ مہربانی کرِتھ دوبارٕ کوشش کریو۔",
|
|
340
339
|
"purposeNotRevocable": "This purpose can't be withdrawn directly.",
|
|
@@ -333,8 +333,7 @@
|
|
|
333
333
|
"retrying": "Retrying...",
|
|
334
334
|
"switchProfile": "प्रोफाइल बदलू",
|
|
335
335
|
"chooseYourProfile": "अपन प्रोफाइल चुनू",
|
|
336
|
-
"
|
|
337
|
-
"contactLinkedToMultipleProfiles": "ई संपर्क एकाधिक प्रोफाइलसँ जुड़ल अछि। जे अहाँ देखय चाहैत छी ओकरा चुनू।",
|
|
336
|
+
"loginIdentifierLinkedToMultipleProfiles": "लॉगिन आइडी एकाधिक प्रोफाइलसँ जुड़ल अछि। जे अहाँ देखय चाहैत छी ओकरा चुनू।",
|
|
338
337
|
"signingInEllipsis": "साइन इन भ' रहल अछि…",
|
|
339
338
|
"couldNotSwitchProfile": "ओ प्रोफाइल पर स्विच नहि भ' सकल। कृपया फेर सँ प्रयास करू।",
|
|
340
339
|
"purposeNotRevocable": "This purpose can't be withdrawn directly.",
|
|
@@ -333,8 +333,7 @@
|
|
|
333
333
|
"retrying": "Retrying...",
|
|
334
334
|
"switchProfile": "പ്രൊഫൈൽ മാറ്റുക",
|
|
335
335
|
"chooseYourProfile": "നിങ്ങളുടെ പ്രൊഫൈൽ തിരഞ്ഞെടുക്കുക",
|
|
336
|
-
"
|
|
337
|
-
"contactLinkedToMultipleProfiles": "ഈ കോൺടാക്റ്റ് ഒന്നിലധികം പ്രൊഫൈലുകളുമായി ബന്ധിപ്പിച്ചിരിക്കുന്നു. നിങ്ങൾ കാണാൻ ആഗ്രഹിക്കുന്നത് തിരഞ്ഞെടുക്കുക.",
|
|
336
|
+
"loginIdentifierLinkedToMultipleProfiles": "ലോഗിൻ ഐഡി ഒന്നിലധികം പ്രൊഫൈലുകളുമായി ബന്ധിപ്പിച്ചിരിക്കുന്നു. നിങ്ങൾ കാണാൻ ആഗ്രഹിക്കുന്നത് തിരഞ്ഞെടുക്കുക.",
|
|
338
337
|
"signingInEllipsis": "സൈൻ ഇൻ ചെയ്യുന്നു…",
|
|
339
338
|
"couldNotSwitchProfile": "ആ പ്രൊഫൈലിലേക്ക് മാറാൻ കഴിഞ്ഞില്ല. വീണ്ടും ശ്രമിക്കുക.",
|
|
340
339
|
"purposeNotRevocable": "This purpose can't be withdrawn directly.",
|
|
@@ -333,8 +333,7 @@
|
|
|
333
333
|
"retrying": "Retrying...",
|
|
334
334
|
"switchProfile": "প্রোফাইল হোংদোক-উ",
|
|
335
335
|
"chooseYourProfile": "নহাক্কী প্রোফাইল খনবিয়ু",
|
|
336
|
-
"
|
|
337
|
-
"contactLinkedToMultipleProfiles": "মসি কন্টেক্ট অসি প্রোফাইল অমদগী হেন্না লোইননবা লৈ। নহাক্না য়েংনিংবা অদু খনবিয়ু।",
|
|
336
|
+
"loginIdentifierLinkedToMultipleProfiles": "লগইন আইডি অসি প্রোফাইল অমদগী হেন্না লোইননবা লৈ। নহাক্না য়েংনিংবা অদু খনবিয়ু।",
|
|
338
337
|
"signingInEllipsis": "সাইন ইন তৌরি…",
|
|
339
338
|
"couldNotSwitchProfile": "প্রোফাইল অদুদা হোংদোকপা ঙমদ্রে। চানবীদুনা অমুক হন্না হোৎনবিয়ু।",
|
|
340
339
|
"purposeNotRevocable": "This purpose can't be withdrawn directly.",
|
|
@@ -333,8 +333,7 @@
|
|
|
333
333
|
"retrying": "Retrying...",
|
|
334
334
|
"switchProfile": "प्रोफाइल बदला",
|
|
335
335
|
"chooseYourProfile": "तुमची प्रोफाइल निवडा",
|
|
336
|
-
"
|
|
337
|
-
"contactLinkedToMultipleProfiles": "हा संपर्क एकापेक्षा जास्त प्रोफाइलशी जोडलेला आहे. तुम्हाला जी पाहायची आहे ती निवडा.",
|
|
336
|
+
"loginIdentifierLinkedToMultipleProfiles": "लॉगिन आयडी एकापेक्षा जास्त प्रोफाइलशी जोडलेला आहे. तुम्हाला जी पाहायची आहे ती निवडा.",
|
|
338
337
|
"signingInEllipsis": "साइन इन करत आहे…",
|
|
339
338
|
"couldNotSwitchProfile": "त्या प्रोफाइलवर स्विच करता आले नाही. कृपया पुन्हा प्रयत्न करा.",
|
|
340
339
|
"purposeNotRevocable": "This purpose can't be withdrawn directly.",
|
|
@@ -333,8 +333,7 @@
|
|
|
333
333
|
"retrying": "Retrying...",
|
|
334
334
|
"switchProfile": "प्रोफाइल बदल्नुहोस्",
|
|
335
335
|
"chooseYourProfile": "आफ्नो प्रोफाइल छान्नुहोस्",
|
|
336
|
-
"
|
|
337
|
-
"contactLinkedToMultipleProfiles": "यो सम्पर्क एकभन्दा बढी प्रोफाइलसँग जोडिएको छ। तपाईंले हेर्न चाहनुभएको छान्नुहोस्।",
|
|
336
|
+
"loginIdentifierLinkedToMultipleProfiles": "लगइन आईडी एकभन्दा बढी प्रोफाइलसँग जोडिएको छ। तपाईंले हेर्न चाहनुभएको छान्नुहोस्।",
|
|
338
337
|
"signingInEllipsis": "साइन इन हुँदैछ…",
|
|
339
338
|
"couldNotSwitchProfile": "त्यो प्रोफाइलमा स्विच गर्न सकिएन। कृपया फेरि प्रयास गर्नुहोस्।",
|
|
340
339
|
"purposeNotRevocable": "This purpose can't be withdrawn directly.",
|
|
@@ -333,8 +333,7 @@
|
|
|
333
333
|
"retrying": "Retrying...",
|
|
334
334
|
"switchProfile": "ପ୍ରୋଫାଇଲ୍ ବଦଳାନ୍ତୁ",
|
|
335
335
|
"chooseYourProfile": "ଆପଣଙ୍କ ପ୍ରୋଫାଇଲ୍ ବାଛନ୍ତୁ",
|
|
336
|
-
"
|
|
337
|
-
"contactLinkedToMultipleProfiles": "ଏହି ଯୋଗାଯୋଗ ଏକାଧିକ ପ୍ରୋଫାଇଲ୍ ସହିତ ଯୋଡ଼ାଯାଇଛି। ଆପଣ ଦେଖିବାକୁ ଚାହୁଁଥିବାଟି ବାଛନ୍ତୁ।",
|
|
336
|
+
"loginIdentifierLinkedToMultipleProfiles": "ଲଗଇନ୍ ଆଇଡି ଏକାଧିକ ପ୍ରୋଫାଇଲ୍ ସହିତ ଯୋଡ଼ାଯାଇଛି। ଆପଣ ଦେଖିବାକୁ ଚାହୁଁଥିବାଟି ବାଛନ୍ତୁ।",
|
|
338
337
|
"signingInEllipsis": "ସାଇନ୍ ଇନ୍ ହେଉଛି…",
|
|
339
338
|
"couldNotSwitchProfile": "ସେହି ପ୍ରୋଫାଇଲକୁ ସ୍ୱିଚ୍ କରାଯାଇପାରିଲା ନାହିଁ। ଦୟାକରି ପୁନର୍ବାର ଚେଷ୍ଟା କରନ୍ତୁ।",
|
|
340
339
|
"purposeNotRevocable": "This purpose can't be withdrawn directly.",
|
|
@@ -333,8 +333,7 @@
|
|
|
333
333
|
"retrying": "Retrying...",
|
|
334
334
|
"switchProfile": "ਪ੍ਰੋਫਾਈਲ ਬਦਲੋ",
|
|
335
335
|
"chooseYourProfile": "ਆਪਣੀ ਪ੍ਰੋਫਾਈਲ ਚੁਣੋ",
|
|
336
|
-
"
|
|
337
|
-
"contactLinkedToMultipleProfiles": "ਇਹ ਸੰਪਰਕ ਇੱਕ ਤੋਂ ਵੱਧ ਪ੍ਰੋਫਾਈਲਾਂ ਨਾਲ ਜੁੜਿਆ ਹੋਇਆ ਹੈ। ਜੋ ਤੁਸੀਂ ਵੇਖਣਾ ਚਾਹੁੰਦੇ ਹੋ ਉਹ ਚੁਣੋ।",
|
|
336
|
+
"loginIdentifierLinkedToMultipleProfiles": "ਲੌਗਇਨ ਆਈਡੀ ਇੱਕ ਤੋਂ ਵੱਧ ਪ੍ਰੋਫਾਈਲਾਂ ਨਾਲ ਜੁੜਿਆ ਹੋਇਆ ਹੈ। ਜੋ ਤੁਸੀਂ ਵੇਖਣਾ ਚਾਹੁੰਦੇ ਹੋ ਉਹ ਚੁਣੋ।",
|
|
338
337
|
"signingInEllipsis": "ਸਾਈਨ ਇਨ ਹੋ ਰਿਹਾ ਹੈ…",
|
|
339
338
|
"couldNotSwitchProfile": "ਉਸ ਪ੍ਰੋਫਾਈਲ 'ਤੇ ਸਵਿੱਚ ਨਹੀਂ ਕੀਤਾ ਜਾ ਸਕਿਆ। ਕਿਰਪਾ ਕਰਕੇ ਦੁਬਾਰਾ ਕੋਸ਼ਿਸ਼ ਕਰੋ।",
|
|
340
339
|
"purposeNotRevocable": "This purpose can't be withdrawn directly.",
|
|
@@ -333,8 +333,7 @@
|
|
|
333
333
|
"retrying": "Retrying...",
|
|
334
334
|
"switchProfile": "प्रोफ़ाइलं परिवर्तयतु",
|
|
335
335
|
"chooseYourProfile": "स्वप्रोफ़ाइलं चिनोतु",
|
|
336
|
-
"
|
|
337
|
-
"contactLinkedToMultipleProfiles": "अयं सम्पर्कः एकाधिकैः प्रोफ़ाइलैः सह सम्बद्धः अस्ति। यत् द्रष्टुम् इच्छति तत् चिनोतु।",
|
|
336
|
+
"loginIdentifierLinkedToMultipleProfiles": "प्रवेश-आयडी एकाधिकैः प्रोफ़ाइलैः सह सम्बद्धः अस्ति। यत् द्रष्टुम् इच्छति तत् चिनोतु।",
|
|
338
337
|
"signingInEllipsis": "प्रवेशः क्रियते…",
|
|
339
338
|
"couldNotSwitchProfile": "तां प्रोफ़ाइलं प्रति परिवर्तनं न शक्यते स्म। कृपया पुनः प्रयत्नं करोतु।",
|
|
340
339
|
"purposeNotRevocable": "This purpose can't be withdrawn directly.",
|
|
@@ -333,8 +333,7 @@
|
|
|
333
333
|
"retrying": "Retrying...",
|
|
334
334
|
"switchProfile": "ᱯᱨᱳᱯᱷᱟᱭᱤᱞ ᱵᱚᱫᱚᱞ ᱢᱮ",
|
|
335
335
|
"chooseYourProfile": "ᱟᱢᱟᱜ ᱯᱨᱳᱯᱷᱟᱭᱤᱞ ᱵᱟᱪᱷᱟᱣ ᱢᱮ",
|
|
336
|
-
"
|
|
337
|
-
"contactLinkedToMultipleProfiles": "ᱱᱳᱶᱟ ᱠᱚᱱᱴᱮᱠᱴ ᱫᱚ ᱢᱤᱫ ᱠᱷᱚᱱ ᱰᱷᱮᱨ ᱯᱨᱳᱯᱷᱟᱭᱤᱞ ᱥᱟᱶ ᱡᱩᱰᱟᱹᱣ ᱟᱠᱟᱱᱟ᱾ ᱟᱢ ᱧᱮᱞ ᱥᱟᱱᱟᱢ ᱚᱱᱟ ᱵᱟᱪᱷᱟᱣ ᱢᱮ᱾",
|
|
336
|
+
"loginIdentifierLinkedToMultipleProfiles": "ᱞᱚᱜᱤᱱ ᱟᱭᱰᱤ ᱫᱚ ᱢᱤᱫ ᱠᱷᱚᱱ ᱰᱷᱮᱨ ᱯᱨᱳᱯᱷᱟᱭᱤᱞ ᱥᱟᱶ ᱡᱩᱰᱟᱹᱣ ᱟᱠᱟᱱᱟ᱾ ᱟᱢ ᱧᱮᱞ ᱥᱟᱱᱟᱢ ᱚᱱᱟ ᱵᱟᱪᱷᱟᱣ ᱢᱮ᱾",
|
|
338
337
|
"signingInEllipsis": "ᱥᱟᱭᱤᱱ ᱤᱱ ᱮᱫᱟᱭ…",
|
|
339
338
|
"couldNotSwitchProfile": "ᱚᱱᱟ ᱯᱨᱳᱯᱷᱟᱭᱤᱞ ᱛᱮ ᱥᱩᱭᱪ ᱵᱟᱝ ᱦᱩᱭ ᱞᱮᱱᱟ᱾ ᱫᱟᱭᱟ ᱠᱟᱛᱮ ᱫᱩᱠᱟᱹᱛᱮ ᱠᱩᱨᱩᱢᱩᱴᱩ ᱢᱮ᱾",
|
|
340
339
|
"purposeNotRevocable": "This purpose can't be withdrawn directly.",
|
|
@@ -333,8 +333,7 @@
|
|
|
333
333
|
"retrying": "Retrying...",
|
|
334
334
|
"switchProfile": "پروفائل تبديل ڪريو",
|
|
335
335
|
"chooseYourProfile": "پنهنجو پروفائل چونڊيو",
|
|
336
|
-
"
|
|
337
|
-
"contactLinkedToMultipleProfiles": "هي رابطو هڪ کان وڌيڪ پروفائلن سان ڳنڍيل آهي. جيڪو توهان ڏسڻ چاهيو ٿا اهو چونڊيو.",
|
|
336
|
+
"loginIdentifierLinkedToMultipleProfiles": "لاگ ان آئيڊي هڪ کان وڌيڪ پروفائلن سان ڳنڍيل آهي. جيڪو توهان ڏسڻ چاهيو ٿا اهو چونڊيو.",
|
|
338
337
|
"signingInEllipsis": "سائن ان ٿي رهيو آهي…",
|
|
339
338
|
"couldNotSwitchProfile": "ان پروفائل تي سوئچ نه ٿي سگهيو. مهرباني ڪري ٻيهر ڪوشش ڪريو.",
|
|
340
339
|
"purposeNotRevocable": "This purpose can't be withdrawn directly.",
|
|
@@ -333,8 +333,7 @@
|
|
|
333
333
|
"retrying": "Retrying...",
|
|
334
334
|
"switchProfile": "சுயவிவரத்தை மாற்று",
|
|
335
335
|
"chooseYourProfile": "உங்கள் சுயவிவரத்தைத் தேர்ந்தெடுக்கவும்",
|
|
336
|
-
"
|
|
337
|
-
"contactLinkedToMultipleProfiles": "இந்தத் தொடர்பு ஒன்றுக்கு மேற்பட்ட சுயவிவரங்களுடன் இணைக்கப்பட்டுள்ளது. நீங்கள் பார்க்க விரும்புவதைத் தேர்ந்தெடுக்கவும்.",
|
|
336
|
+
"loginIdentifierLinkedToMultipleProfiles": "உள்நுழைவு ஐடி ஒன்றுக்கு மேற்பட்ட சுயவிவரங்களுடன் இணைக்கப்பட்டுள்ளது. நீங்கள் பார்க்க விரும்புவதைத் தேர்ந்தெடுக்கவும்.",
|
|
338
337
|
"signingInEllipsis": "உள்நுழைகிறது…",
|
|
339
338
|
"couldNotSwitchProfile": "அந்தச் சுயவிவரத்திற்கு மாற முடியவில்லை. மீண்டும் முயற்சிக்கவும்.",
|
|
340
339
|
"purposeNotRevocable": "This purpose can't be withdrawn directly.",
|
|
@@ -333,8 +333,7 @@
|
|
|
333
333
|
"retrying": "Retrying...",
|
|
334
334
|
"switchProfile": "ప్రొఫైల్ను మార్చండి",
|
|
335
335
|
"chooseYourProfile": "మీ ప్రొఫైల్ను ఎంచుకోండి",
|
|
336
|
-
"
|
|
337
|
-
"contactLinkedToMultipleProfiles": "ఈ సంప్రదింపు ఒకటి కంటే ఎక్కువ ప్రొఫైల్లతో అనుసంధానించబడింది. మీరు చూడాలనుకుంటున్నదాన్ని ఎంచుకోండి.",
|
|
336
|
+
"loginIdentifierLinkedToMultipleProfiles": "లాగిన్ ఐడి ఒకటి కంటే ఎక్కువ ప్రొఫైల్లతో అనుసంధానించబడింది. మీరు చూడాలనుకుంటున్నదాన్ని ఎంచుకోండి.",
|
|
338
337
|
"signingInEllipsis": "సైన్ ఇన్ అవుతోంది…",
|
|
339
338
|
"couldNotSwitchProfile": "ఆ ప్రొఫైల్కు మారడం సాధ్యం కాలేదు. దయచేసి మళ్లీ ప్రయత్నించండి.",
|
|
340
339
|
"purposeNotRevocable": "This purpose can't be withdrawn directly.",
|
|
@@ -333,8 +333,7 @@
|
|
|
333
333
|
"retrying": "Retrying...",
|
|
334
334
|
"switchProfile": "پروفائل تبدیل کریں",
|
|
335
335
|
"chooseYourProfile": "اپنی پروفائل منتخب کریں",
|
|
336
|
-
"
|
|
337
|
-
"contactLinkedToMultipleProfiles": "یہ رابطہ ایک سے زیادہ پروفائلز سے منسلک ہے۔ جسے آپ دیکھنا چاہتے ہیں اسے منتخب کریں۔",
|
|
336
|
+
"loginIdentifierLinkedToMultipleProfiles": "لاگ ان آئی ڈی ایک سے زیادہ پروفائلز سے منسلک ہے۔ جسے آپ دیکھنا چاہتے ہیں اسے منتخب کریں۔",
|
|
338
337
|
"signingInEllipsis": "سائن ان ہو رہا ہے…",
|
|
339
338
|
"couldNotSwitchProfile": "اس پروفائل پر سوئچ نہیں کیا جا سکا۔ براہ کرم دوبارہ کوشش کریں۔",
|
|
340
339
|
"purposeNotRevocable": "This purpose can't be withdrawn directly.",
|
|
@@ -747,17 +747,6 @@ export const injectPCStyles = () => {
|
|
|
747
747
|
white-space: nowrap;
|
|
748
748
|
max-width: 100%;
|
|
749
749
|
}
|
|
750
|
-
.pc-select-user__item-id {
|
|
751
|
-
margin-top: 0.125rem;
|
|
752
|
-
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
753
|
-
font-size: 0.6875rem;
|
|
754
|
-
color: var(--pc-text-secondary);
|
|
755
|
-
line-height: 1.25;
|
|
756
|
-
overflow: hidden;
|
|
757
|
-
text-overflow: ellipsis;
|
|
758
|
-
white-space: nowrap;
|
|
759
|
-
max-width: 100%;
|
|
760
|
-
}
|
|
761
750
|
.pc-select-user__item-status {
|
|
762
751
|
font-size: 0.75rem;
|
|
763
752
|
font-weight: 600;
|
|
@@ -93,6 +93,24 @@ describe('createConsentClient — legacy mode (no ledgerBaseUrl)', () => {
|
|
|
93
93
|
});
|
|
94
94
|
});
|
|
95
95
|
|
|
96
|
+
it('records the selected language in the legacy manage-consent body', async () => {
|
|
97
|
+
await client.manageConsent(
|
|
98
|
+
baseRequest,
|
|
99
|
+
'purp-1',
|
|
100
|
+
'jane@example.com',
|
|
101
|
+
'revoke',
|
|
102
|
+
undefined,
|
|
103
|
+
undefined,
|
|
104
|
+
undefined,
|
|
105
|
+
undefined,
|
|
106
|
+
undefined,
|
|
107
|
+
undefined,
|
|
108
|
+
undefined,
|
|
109
|
+
'doi',
|
|
110
|
+
);
|
|
111
|
+
expect(fetchedBody()).toMatchObject({ language: 'doi' });
|
|
112
|
+
});
|
|
113
|
+
|
|
96
114
|
it('routes getReceipts to the legacy dsar/privacy-center path', async () => {
|
|
97
115
|
await client.getReceipts(baseRequest, { skip: 0, limit: 10 });
|
|
98
116
|
expect(fetchedUrl()).toBe(`${LEGACY_PREFIX}/receipts?skip=0&limit=10`);
|
|
@@ -103,6 +121,16 @@ describe('createConsentClient — legacy mode (no ledgerBaseUrl)', () => {
|
|
|
103
121
|
await client.getReceiptPdf(baseRequest, 'r-1');
|
|
104
122
|
expect(fetchedUrl()).toBe(`${LEGACY_PREFIX}/receipts/r-1/pdf`);
|
|
105
123
|
});
|
|
124
|
+
|
|
125
|
+
it('appends the language query param to getActivities when provided', async () => {
|
|
126
|
+
await client.getActivities(baseRequest, 0, 15, 'doi');
|
|
127
|
+
expect(fetchedUrl()).toContain('language=doi');
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
it('omits the language query param from getActivities for the default language', async () => {
|
|
131
|
+
await client.getActivities(baseRequest, 0, 15);
|
|
132
|
+
expect(fetchedUrl()).not.toContain('language=');
|
|
133
|
+
});
|
|
106
134
|
});
|
|
107
135
|
|
|
108
136
|
describe('createConsentClient — ledger mode (ledgerBaseUrl set)', () => {
|
|
@@ -151,6 +179,24 @@ describe('createConsentClient — ledger mode (ledgerBaseUrl set)', () => {
|
|
|
151
179
|
});
|
|
152
180
|
});
|
|
153
181
|
|
|
182
|
+
it('records the selected language in the ledger partial submit body', async () => {
|
|
183
|
+
await client.manageConsent(
|
|
184
|
+
baseRequest,
|
|
185
|
+
'purp-1',
|
|
186
|
+
'jane@example.com',
|
|
187
|
+
'revoke',
|
|
188
|
+
undefined,
|
|
189
|
+
undefined,
|
|
190
|
+
undefined,
|
|
191
|
+
undefined,
|
|
192
|
+
undefined,
|
|
193
|
+
'notice-1',
|
|
194
|
+
[{ uuid: 'de-1', selected: true }],
|
|
195
|
+
'doi',
|
|
196
|
+
);
|
|
197
|
+
expect(fetchedBody()).toMatchObject({ language: 'doi' });
|
|
198
|
+
});
|
|
199
|
+
|
|
154
200
|
it('throws from manageConsent when noticeUuid is missing', async () => {
|
|
155
201
|
await expect(
|
|
156
202
|
client.manageConsent(baseRequest, 'purp-1', 'jane@example.com', 'revoke'),
|