@verifiedinc-public/shared-ui-elements 7.7.2 → 7.9.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/dist/components/index.mjs +1 -1
- package/dist/components/verified/OneClickPoweredByVerified/components/1-Click Access powered by Verified/blackGreen.d.ts +6 -0
- package/dist/components/verified/OneClickPoweredByVerified/components/1-Click Access powered by Verified/index.d.ts +3 -1
- package/dist/components/verified/OneClickPoweredByVerified/components/1-Click Access powered by Verified/whiteGreen.d.ts +6 -0
- package/dist/components/verified/OneClickPoweredByVerified/components/1-Click Apply powered by Verified/blackGreen.d.ts +6 -0
- package/dist/components/verified/OneClickPoweredByVerified/components/1-Click Apply powered by Verified/index.d.ts +3 -1
- package/dist/components/verified/OneClickPoweredByVerified/components/1-Click Apply powered by Verified/whiteGreen.d.ts +6 -0
- package/dist/components/verified/OneClickPoweredByVerified/components/1-Click AutoFill powered by Verified/blackGreen.d.ts +6 -0
- package/dist/components/verified/OneClickPoweredByVerified/components/1-Click AutoFill powered by Verified/index.d.ts +3 -1
- package/dist/components/verified/OneClickPoweredByVerified/components/1-Click AutoFill powered by Verified/whiteGreen.d.ts +6 -0
- package/dist/components/verified/OneClickPoweredByVerified/components/1-Click Login powered by Verified/blackGreen.d.ts +6 -0
- package/dist/components/verified/OneClickPoweredByVerified/components/1-Click Login powered by Verified/index.d.ts +3 -1
- package/dist/components/verified/OneClickPoweredByVerified/components/1-Click Login powered by Verified/whiteGreen.d.ts +6 -0
- package/dist/components/verified/OneClickPoweredByVerified/components/1-Click Signup powered by Verified/blackGreen.d.ts +6 -0
- package/dist/components/verified/OneClickPoweredByVerified/components/1-Click Signup powered by Verified/index.d.ts +3 -1
- package/dist/components/verified/OneClickPoweredByVerified/components/1-Click Signup powered by Verified/whiteGreen.d.ts +6 -0
- package/dist/components/verified/OneClickPoweredByVerified/components/1-Click Verify powered by Verified/blackGreen.d.ts +6 -0
- package/dist/components/verified/OneClickPoweredByVerified/components/1-Click Verify powered by Verified/index.d.ts +3 -1
- package/dist/components/verified/OneClickPoweredByVerified/components/1-Click Verify powered by Verified/whiteGreen.d.ts +6 -0
- package/dist/components/verified/OneClickPoweredByVerified/index.d.ts +1 -1
- package/dist/components/verified/powered-by-verified/index.d.ts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/shared/magic-legal-language-BQ0NRDJs.mjs +155 -0
- package/dist/shared/notification-sBaCxCY5.mjs +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.mjs +1 -1
- package/dist/utils/notification.d.ts +15 -0
- package/package.json +2 -2
- package/dist/shared/magic-legal-language-DvLQDa5g.mjs +0 -155
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";async function c({event:n,clientSalt:t}){const e=Date.now(),a=`${n}:${e}:${t}`,r=await crypto.subtle.digest("SHA-256",new TextEncoder().encode(a)),i=Array.from(new Uint8Array(r)).map(o=>o.toString(16).padStart(2,"0")).join("");return{timestamp:e,signature:i,clientSalt:t}}export{c as p};
|
package/dist/utils/index.d.ts
CHANGED
package/dist/utils/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{wrapPromise as a}from"./wrapPromise/index.mjs";import{f as s,b as o,a as r,c as e,s as t,t as m,u as i}from"../shared/uuidColor-CbuBMrIl.mjs";import{c as
|
|
1
|
+
"use strict";import{wrapPromise as a}from"./wrapPromise/index.mjs";import{f as s,b as o,a as r,c as e,s as t,t as m,u as i}from"../shared/uuidColor-CbuBMrIl.mjs";import{c as n,g as p,a as d,p as f,s as l,v as C}from"../shared/phone-cSkbYk4g.mjs";import{masks as T}from"./masks/index.mjs";import{o as g,s as h,a as F}from"../shared/ssn-I4gN8M-_.mjs";import{toCapitalize as y,toSentenceCase as D}from"./string/index.mjs";import{k as P}from"../shared/formatKebabToPretty-Du43TgPC.mjs";import{g as S}from"../shared/generateKeyFromString-D1AuwK4y.mjs";import{alpha as U,contrastColor as c,darken as u,getThemeFromPrimaryColor as k,lighten as M}from"./color/index.mjs";import{addressFormatter as Y,fromUSAddress as A,parseCountryCode as N,toUSaddress as _,toUSaddressPretty as b}from"./address/index.mjs";import{D as x,a as E,m as H}from"../shared/makeGoogleFont-pok2oDWs.mjs";import{p as L}from"../shared/notification-sBaCxCY5.mjs";export{x as DEFAULT_FONT_FAMILY,E as DEFAULT_FONT_WEIGHTS,Y as addressFormatter,U as alpha,c as contrastColor,n as countries,u as darken,s as formatDateMMDDYYYY,o as formatDateMMYY,r as formatDateToTimestamp,e as formatExtendedDate,A as fromUSAddress,S as generateKeyFromString,p as getPhoneData,d as getPhoneDataByFieldName,k as getThemeFromPrimaryColor,P as kebabCaseToPretty,M as lighten,H as makeGoogleFontUrl,T as masks,g as omitProperties,N as parseCountryCode,f as parseToPhoneNational,L as prepareNotification,l as sortByCountryName,h as ssnFormatter,F as ssnRegex,t as stringToHashedColor,y as toCapitalize,D as toSentenceCase,_ as toUSaddress,b as toUSaddressPretty,m as toUTCMilliseconds,i as uuidToHashedColor,C as validatePhone,a as wrapPromise};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type PrepareNotificationOptions = {
|
|
2
|
+
event: string;
|
|
3
|
+
clientSalt: string;
|
|
4
|
+
};
|
|
5
|
+
export type SignedNotification = {
|
|
6
|
+
timestamp: number;
|
|
7
|
+
signature: string;
|
|
8
|
+
clientSalt: string;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Prepares a notification by creating a unique signature and timestamp.
|
|
12
|
+
* @param options - The notification payload containing event and clientSalt.
|
|
13
|
+
* @returns A promise that resolves to the prepared notification object.
|
|
14
|
+
*/
|
|
15
|
+
export declare function prepareNotification({ event, clientSalt, }: PrepareNotificationOptions): Promise<SignedNotification>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@verifiedinc-public/shared-ui-elements",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.9.0",
|
|
4
4
|
"description": "A set of UI components, utilities that is shareable with the core apps.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"keywords": [],
|
|
@@ -123,8 +123,8 @@
|
|
|
123
123
|
"@tanstack/react-query": ">=5",
|
|
124
124
|
"decimal.js": ">=10.4.3",
|
|
125
125
|
"framer-motion": ">=11.11.1",
|
|
126
|
-
"immer": ">=10",
|
|
127
126
|
"html-to-image": ">=1.11.13 <2",
|
|
127
|
+
"immer": ">=10",
|
|
128
128
|
"libphonenumber-js": ">=1.11.11",
|
|
129
129
|
"notistack": ">=3.0.1",
|
|
130
130
|
"qr-code-styling": ">=1.9.2 <2",
|