@everlywell/consumer-ui 1.47.7 → 1.47.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/index.js +9 -9
- package/index.mjs +469 -444
- package/lib/components/Footer/Footer/Footer.d.ts.map +1 -1
- package/lib/components/Navbar/types.d.ts.map +1 -1
- package/lib/utils/sanitize.d.ts +20 -0
- package/lib/utils/sanitize.d.ts.map +1 -0
- package/lib/utils/testHelpers/setupTests.d.ts +0 -5
- package/lib/utils/testHelpers/setupTests.d.ts.map +1 -1
- package/package.json +4 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Footer.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Footer/Footer/Footer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAmB,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC3F,OAAO,EAAoB,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC/F,OAAO,EAAmB,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC3F,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"Footer.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Footer/Footer/Footer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAmB,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC3F,OAAO,EAAoB,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC/F,OAAO,EAAmB,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC3F,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAGzD;;;;;;;;;;;;;;;GAeG;AAEH,MAAM,MAAM,WAAW,GAAG;IACxB,kBAAkB,CAAC,EAAE,oBAAoB,CAAC,UAAU,CAAC,CAAC;IACtD,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,qBAAqB,CAAC,aAAa,CAAC,CAAC;IAClD,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,eAAe,CAAC,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;IAChD,aAAa,CAAC,EAAE,mBAAmB,CAAC;IACpC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACpC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,WAAW,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAChC,CAAC;AAEF,QAAA,MAAM,MAAM,oFA0GV,CAAC;AAEH,eAAe,MAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../libs/consumer-ui/src/lib/components/Navbar/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../libs/consumer-ui/src/lib/components/Navbar/types.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;AAE3D;;;;;GAKG;AACH,eAAO,MAAM,YAAY,SACjB,MAAM,GAAG,SAAS,wBACF,OAAO;;;;;;CAS9B,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sanitizes an HTML string to prevent XSS attacks.
|
|
3
|
+
* Allows safe inline markup (links, formatting) while stripping
|
|
4
|
+
* scripts, event handlers, and other dangerous content.
|
|
5
|
+
*/
|
|
6
|
+
export declare const sanitizeHtml: (html: string) => string;
|
|
7
|
+
/**
|
|
8
|
+
* Returns true if the URL is not a known-safe link shape and therefore
|
|
9
|
+
* unsafe to place in an href/to attribute.
|
|
10
|
+
*
|
|
11
|
+
* Uses an allowlist rather than a denylist: relative paths, hash links,
|
|
12
|
+
* query-only links, and the schemes in SAFE_URL_SCHEMES are permitted;
|
|
13
|
+
* everything else (javascript:, data:, vbscript:, and unknown schemes) is
|
|
14
|
+
* rejected. Control characters that browsers strip from URL attribute
|
|
15
|
+
* values (tab, newline, carriage return, etc.) are removed before the
|
|
16
|
+
* scheme is evaluated, so obfuscated payloads like `java	script:` cannot
|
|
17
|
+
* slip past the check while still executing on click.
|
|
18
|
+
*/
|
|
19
|
+
export declare const isDangerousUrl: (url: string | undefined) => boolean;
|
|
20
|
+
//# sourceMappingURL=sanitize.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sanitize.d.ts","sourceRoot":"","sources":["../../../../../libs/consumer-ui/src/lib/utils/sanitize.ts"],"names":[],"mappings":"AAkDA;;;;GAIG;AACH,eAAO,MAAM,YAAY,SAAU,MAAM,KAAG,MAE3C,CAAC;AAIF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,cAAc,QAAS,MAAM,GAAG,SAAS,KAAG,OAmBxD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setupTests.d.ts","sourceRoot":"","sources":["../../../../../../libs/consumer-ui/src/lib/utils/testHelpers/setupTests.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"setupTests.d.ts","sourceRoot":"","sources":["../../../../../../libs/consumer-ui/src/lib/utils/testHelpers/setupTests.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everlywell/consumer-ui",
|
|
3
|
-
"version": "1.47.
|
|
3
|
+
"version": "1.47.8",
|
|
4
4
|
"main": "./index.js",
|
|
5
5
|
"types": "./index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -19,6 +19,8 @@
|
|
|
19
19
|
"@chakra-ui/react": "^2.8.1",
|
|
20
20
|
"@emotion/react": "11.11.4",
|
|
21
21
|
"@emotion/styled": "11.11.5",
|
|
22
|
-
"
|
|
22
|
+
"dompurify": "^3.4.12",
|
|
23
|
+
"framer-motion": "^11.0.0",
|
|
24
|
+
"jsdom": "~24.0.0"
|
|
23
25
|
}
|
|
24
26
|
}
|