@wistia/vhs 2.48.1 → 2.48.2-beta.42e12d2c.fb26280
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/index.cjs +517 -526
- package/dist/index.cjs.map +4 -4
- package/dist/index.mjs +517 -526
- package/dist/index.mjs.map +4 -4
- package/dist/src/hooks/useKeyPressOnce/UseKeyPressOnceExample.d.ts.map +1 -1
- package/dist/src/hooks/usePreventScroll/UsePreventScrollExample.d.ts.map +1 -1
- package/dist/src/private/components/HideInVisualRegressionTests/HideInVisualRegressionTests.d.ts.map +1 -0
- package/dist/src/private/components/HideInVisualRegressionTests/index.d.ts +2 -0
- package/dist/src/private/components/HideInVisualRegressionTests/index.d.ts.map +1 -0
- package/dist/src/private/helpers/escapeHtml.d.ts +8 -0
- package/dist/src/private/helpers/escapeHtml.d.ts.map +1 -0
- package/package.json +20 -10
- package/dist/.storybook/components/HideInVisualRegressionTests.d.ts.map +0 -1
- package/dist/.storybook/helpers/getRandomEmoji.d.ts +0 -2
- package/dist/.storybook/helpers/getRandomEmoji.d.ts.map +0 -1
- package/dist/.storybook/helpers/placeholderText.d.ts +0 -8
- package/dist/.storybook/helpers/placeholderText.d.ts.map +0 -1
- /package/dist/{.storybook/components → src/private/components/HideInVisualRegressionTests}/HideInVisualRegressionTests.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UseKeyPressOnceExample.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useKeyPressOnce/UseKeyPressOnceExample.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UseKeyPressOnceExample.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useKeyPressOnce/UseKeyPressOnceExample.tsx"],"names":[],"mappings":"AAoDA,eAAO,MAAM,sBAAsB,+CAmClC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UsePreventScrollExample.d.ts","sourceRoot":"","sources":["../../../../src/hooks/usePreventScroll/UsePreventScrollExample.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UsePreventScrollExample.d.ts","sourceRoot":"","sources":["../../../../src/hooks/usePreventScroll/UsePreventScrollExample.tsx"],"names":[],"mappings":"AAgBA,eAAO,MAAM,uBAAuB,+CAsBnC,CAAC"}
|
package/dist/src/private/components/HideInVisualRegressionTests/HideInVisualRegressionTests.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HideInVisualRegressionTests.d.ts","sourceRoot":"","sources":["../../../../../src/private/components/HideInVisualRegressionTests/HideInVisualRegressionTests.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,KAAK,gCAAgC,GAAG;IACtC,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAIF,eAAO,MAAM,2BAA2B,kBAErC,gCAAgC,KAAG,WAOrC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/private/components/HideInVisualRegressionTests/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Handle special characters by escaping in the provided text string.
|
|
3
|
+
*
|
|
4
|
+
* @param {string} stringToEscape - the string to escape
|
|
5
|
+
* @return {string} - the escaped string
|
|
6
|
+
*/
|
|
7
|
+
export declare const escapeHtml: (stringToEscape: number | string | null | undefined) => string;
|
|
8
|
+
//# sourceMappingURL=escapeHtml.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"escapeHtml.d.ts","sourceRoot":"","sources":["../../../../src/private/helpers/escapeHtml.ts"],"names":[],"mappings":"AASA;;;;;GAKG;AACH,eAAO,MAAM,UAAU,mBAAoB,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,KAAG,MAwC/E,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wistia/vhs",
|
|
3
|
-
"version": "2.48.
|
|
3
|
+
"version": "2.48.2-beta.42e12d2c.fb26280",
|
|
4
4
|
"packageManager": "yarn@4.1.1",
|
|
5
5
|
"description": "Visual Hype System",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -8,11 +8,24 @@
|
|
|
8
8
|
"module": "dist/index.mjs",
|
|
9
9
|
"types": "dist/src/index.d.ts",
|
|
10
10
|
"sideEffects": false,
|
|
11
|
+
"exports": {
|
|
12
|
+
"./package.json": "./package.json",
|
|
13
|
+
".": {
|
|
14
|
+
"require": {
|
|
15
|
+
"types": "./dist/src/index.d.ts",
|
|
16
|
+
"default": "./dist/index.cjs"
|
|
17
|
+
},
|
|
18
|
+
"import": {
|
|
19
|
+
"types": "./dist/src/index.d.ts",
|
|
20
|
+
"default": "./dist/index.mjs"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
11
24
|
"files": [
|
|
12
25
|
"dist"
|
|
13
26
|
],
|
|
14
27
|
"engines": {
|
|
15
|
-
"node": ">=
|
|
28
|
+
"node": ">=18.0.0 || >=20.0.0"
|
|
16
29
|
},
|
|
17
30
|
"scripts": {
|
|
18
31
|
"browsers": "./scripts/browserSupport.mjs",
|
|
@@ -36,6 +49,7 @@
|
|
|
36
49
|
"lint:style": "stylelint --cache --cache-location .stylelintcache --report-needless-disables \"**/*.tsx\"",
|
|
37
50
|
"outdated": "yarn upgrade-interactive",
|
|
38
51
|
"prepublishOnly": "yarn run build",
|
|
52
|
+
"publint": "publint run --strict",
|
|
39
53
|
"storybook": "cross-env NODE_OPTIONS=--openssl-legacy-provider storybook dev --host localhost --port 6006",
|
|
40
54
|
"storybook:build": "cross-env NODE_OPTIONS=--openssl-legacy-provider storybook build --quiet",
|
|
41
55
|
"test": "cross-env NODE_ENV=test vitest run",
|
|
@@ -43,8 +57,7 @@
|
|
|
43
57
|
"test:coverage": "yarn run test --coverage=true && open ./coverage/lcov-report/index.html",
|
|
44
58
|
"test:debug": "echo 'open chrome://inspect/#devices' && cross-env NODE_ENV=test vitest --inspect-brk --no-file-parallelism",
|
|
45
59
|
"ts:check": "tsc",
|
|
46
|
-
"ts:generate": "tsx ./scripts/generateTypes.ts"
|
|
47
|
-
"ts:progress": "node ./scripts/typescriptMigrationProgress.mjs"
|
|
60
|
+
"ts:generate": "tsx ./scripts/generateTypes.ts"
|
|
48
61
|
},
|
|
49
62
|
"peerDependencies": {
|
|
50
63
|
"@types/react": "^17.0 || ^18.0",
|
|
@@ -60,12 +73,11 @@
|
|
|
60
73
|
"@wistia/type-guards": "^0.0.8",
|
|
61
74
|
"@wistia/vhs-design-tokens": "^2.1.0",
|
|
62
75
|
"date-fns": "^3.6.0",
|
|
63
|
-
"escape-html": "^1.0.3",
|
|
64
76
|
"formik": "^2.4.5",
|
|
65
77
|
"is-hotkey": "^0.2.0",
|
|
66
|
-
"lodash.isequal": "^4.5.0",
|
|
67
78
|
"polished": "^4.3.1",
|
|
68
79
|
"react-aria-live": "^2.0.5",
|
|
80
|
+
"react-fast-compare": "^3.2.2",
|
|
69
81
|
"react-is": "^18.2.0",
|
|
70
82
|
"react-slider": "^2.0.6",
|
|
71
83
|
"react-transition-group": "^4.4.5",
|
|
@@ -92,8 +104,6 @@
|
|
|
92
104
|
"@testing-library/jest-dom": "^6.4.2",
|
|
93
105
|
"@testing-library/react": "^15.0.1",
|
|
94
106
|
"@testing-library/user-event": "^14.5.2",
|
|
95
|
-
"@types/escape-html": "^1.0.4",
|
|
96
|
-
"@types/lodash.template": "^4.5.3",
|
|
97
107
|
"@types/node": "^20.12.7",
|
|
98
108
|
"@types/react": "18.2.21",
|
|
99
109
|
"@types/react-dom": "^18.2.24",
|
|
@@ -116,9 +126,9 @@
|
|
|
116
126
|
"globby": "^14.0.1",
|
|
117
127
|
"jsdoc-to-markdown": "^8.0.1",
|
|
118
128
|
"jsdom": "^24.0.0",
|
|
119
|
-
"lodash.camelcase": "^4.3.0",
|
|
120
|
-
"lodash.template": "^4.5.0",
|
|
121
129
|
"minimist": "^1.2.8",
|
|
130
|
+
"pascalcase": "^2.0.0",
|
|
131
|
+
"publint": "^0.2.7",
|
|
122
132
|
"react": "^18.2.0",
|
|
123
133
|
"react-dom": "^18.2.0",
|
|
124
134
|
"shx": "^0.3.4",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HideInVisualRegressionTests.d.ts","sourceRoot":"","sources":["../../../.storybook/components/HideInVisualRegressionTests.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,KAAK,gCAAgC,GAAG;IACtC,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAIF,eAAO,MAAM,2BAA2B,kBAErC,gCAAgC,KAAG,WAOrC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getRandomEmoji.d.ts","sourceRoot":"","sources":["../../../.storybook/helpers/getRandomEmoji.ts"],"names":[],"mappings":"AAuCA,eAAO,MAAM,cAAc,sBAAgB,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE,GAAG,MAAM,GAAG,SAO5E,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
type dictType = keyof typeof dictionary;
|
|
2
|
-
declare const dictionary: {
|
|
3
|
-
default: string[];
|
|
4
|
-
marketing: string[];
|
|
5
|
-
};
|
|
6
|
-
export declare const placeholderText: (wordCount?: number, dictionaryType?: dictType, addPeriod?: boolean, noSpaces?: boolean) => string;
|
|
7
|
-
export {};
|
|
8
|
-
//# sourceMappingURL=placeholderText.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"placeholderText.d.ts","sourceRoot":"","sources":["../../../.storybook/helpers/placeholderText.ts"],"names":[],"mappings":"AAEA,KAAK,QAAQ,GAAG,MAAM,OAAO,UAAU,CAAC;AAGxC,QAAA,MAAM,UAAU;;;CAGf,CAAC;AAMF,eAAO,MAAM,eAAe,wCAEV,QAAQ,oDAgBzB,CAAC"}
|