@hashicorp/react-components 0.0.0-canary.866e055 → 0.0.0-canary.96df0c1
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/package.json +3 -2
- package/src/lib/parse-url/index.ts +1 -1
- package/src/lib/v/index.ts +4 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hashicorp/react-components",
|
|
3
|
-
"version": "0.0.0-canary.
|
|
3
|
+
"version": "0.0.0-canary.96df0c1",
|
|
4
4
|
"main": "src/index.ts",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"lint": "next-hashicorp lint",
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
"@hashicorp/platform-util": "^0.2.0",
|
|
14
14
|
"@hashicorp/react-design-system-components": "*",
|
|
15
15
|
"@hashicorp/web-mktg-logos": "*",
|
|
16
|
-
"@radix-ui/react-
|
|
16
|
+
"@radix-ui/react-navigation-menu": "^1.2.0",
|
|
17
|
+
"@radix-ui/react-visually-hidden": "^1.1.0",
|
|
17
18
|
"@vercel/analytics": "^1.3.1",
|
|
18
19
|
"@vercel/fetch": "^7.0.0",
|
|
19
20
|
"@vercel/stega": "^0.1.2",
|
package/src/lib/v/index.ts
CHANGED
|
@@ -4,6 +4,8 @@ import { vercelStegaSplit } from '@vercel/stega'
|
|
|
4
4
|
* Takes in a Vercel Visual Editing string and returns the string without
|
|
5
5
|
* hidden data.
|
|
6
6
|
*/
|
|
7
|
-
export function v<
|
|
8
|
-
|
|
7
|
+
export function v<VercelVEString extends string>(
|
|
8
|
+
s: VercelVEString
|
|
9
|
+
): VercelVEString {
|
|
10
|
+
return vercelStegaSplit(s).cleaned as VercelVEString
|
|
9
11
|
}
|