@wistia/vhs 2.66.1 → 2.66.3
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/README.md +2 -4
- package/dist/components/ActionModal/ActionModal.d.ts.map +1 -1
- package/dist/components/Box/Box.d.ts.map +1 -1
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/ButtonContent.d.ts.map +1 -1
- package/dist/components/Button/ButtonStyledComponent.d.ts.map +1 -1
- package/dist/components/Button/getButtonColor.d.ts.map +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.d.ts.map +1 -1
- package/dist/components/ButtonLink/ButtonLink.d.ts.map +1 -1
- package/dist/components/CollapsibleGroup/CollapsibleGroup.d.ts.map +1 -1
- package/dist/components/FormGlobalError/FormGlobalError.d.ts.map +1 -1
- package/dist/components/IconButton/IconButton.d.ts.map +1 -1
- package/dist/components/Input/Input.d.ts.map +1 -1
- package/dist/components/Link/Link.d.ts.map +1 -1
- package/dist/components/Link/linkStyle.d.ts.map +1 -1
- package/dist/components/LinkButton/LinkButton.d.ts.map +1 -1
- package/dist/components/List/List.d.ts.map +1 -1
- package/dist/components/List/ListItem.d.ts.map +1 -1
- package/dist/components/MediaObject/MediaObject.d.ts.map +1 -1
- package/dist/components/MenuButton/MenuButton.d.ts.map +1 -1
- package/dist/components/Modal/Modal.d.ts.map +1 -1
- package/dist/components/Modal/ModalParts.d.ts.map +1 -1
- package/dist/components/RangeSelectorCalendar/RangeSelectorCalendar.d.ts.map +1 -1
- package/dist/components/RangeSelectorInput/RangeSelectorInput.d.ts.map +1 -1
- package/dist/components/RangeSelectorInput/iterators.d.ts.map +1 -1
- package/dist/components/RangeSelectorInput/selection.d.ts.map +1 -1
- package/dist/components/RichTextEditor/EditorButtons.d.ts.map +1 -1
- package/dist/components/RichTextEditor/utilities/withImagesPlugin.d.ts.map +1 -1
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Toast/Toast.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/Truncate/Truncate.d.ts.map +1 -1
- package/dist/components/WistiaLogo/WistiaLogo.d.ts.map +1 -1
- package/dist/helpers/stringHelpers/camelCase.d.ts.map +1 -1
- package/dist/helpers/stringHelpers/isUrl.d.ts.map +1 -1
- package/dist/helpers/stringHelpers/truncate.d.ts.map +1 -1
- package/dist/hooks/useElementObserver/useElementObserver.d.ts.map +1 -1
- package/dist/hooks/useEvent/useEvent.d.ts.map +1 -1
- package/dist/hooks/useFocusTrap/helpers.d.ts.map +1 -1
- package/dist/hooks/useFocusTrap/useFocusTrap.d.ts.map +1 -1
- package/dist/hooks/useKeyPressOnce/UseKeyPressOnceExample.d.ts.map +1 -1
- package/dist/hooks/useThemeColor/UseThemeColorExample.d.ts.map +1 -1
- package/dist/hooks/useThemeColor/useThemeColor.d.ts +7 -25
- package/dist/hooks/useThemeColor/useThemeColor.d.ts.map +1 -1
- package/dist/index.cjs +419 -411
- package/dist/index.cjs.map +4 -4
- package/dist/index.mjs +420 -412
- package/dist/index.mjs.map +4 -4
- package/dist/private/components/Calendar/Calendar.d.ts.map +1 -1
- package/dist/private/components/FormConnectorHidden/FormConnectorHidden.d.ts.map +1 -1
- package/dist/private/components/Menu/Menu.d.ts.map +1 -1
- package/dist/private/hooks/useMouseLeave/useMouseLeave.d.ts.map +1 -1
- package/package.json +15 -17
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Calendar.d.ts","sourceRoot":"","sources":["../../../../src/private/components/Calendar/Calendar.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AA8DjC,eAAO,MAAM,GAAG,4GAmBf,CAAC;AAcF,eAAO,MAAM,SAAS,0GAGrB,CAAC;AAcF,KAAK,cAAc,GAAG;IACpB,GAAG,EAAE,IAAI,CAAC;IACV,UAAU,EAAE,OAAO,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;CAC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C/B,CAAC;AAEF,eAAO,MAAM,QAAQ;oHAQlB,aAAa,GAAG,GAAG,CAAC,OAAO;;CAmL7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormConnectorHidden.d.ts","sourceRoot":"","sources":["../../../../src/private/components/FormConnectorHidden/FormConnectorHidden.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAKzC,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,KAAK,EAAE;QACL,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,OAAO,CAAC;QAC1C,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KACrC,CAAC;IACF;;OAEG;IACH,IAAI,CAAC,EAAE;QACL,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAAC;QAC5C,aAAa,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,KAAK,OAAO,CAAC,GAAG,SAAS,CAAC;QAC7E,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAAC;KAC7C,CAAC;IACF;;OAEG;IACH,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;IAC3C;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,mBAAmB;+GAM7B,wBAAwB;;
|
|
1
|
+
{"version":3,"file":"FormConnectorHidden.d.ts","sourceRoot":"","sources":["../../../../src/private/components/FormConnectorHidden/FormConnectorHidden.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAKzC,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,KAAK,EAAE;QACL,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,OAAO,CAAC;QAC1C,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KACrC,CAAC;IACF;;OAEG;IACH,IAAI,CAAC,EAAE;QACL,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAAC;QAC5C,aAAa,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,KAAK,OAAO,CAAC,GAAG,SAAS,CAAC;QAC7E,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAAC;KAC7C,CAAC;IACF;;OAEG;IACH,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;IAC3C;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,mBAAmB;+GAM7B,wBAAwB;;CA8B1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../../src/private/components/Menu/Menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAqB,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAY/D,eAAO,MAAM,kBAAkB,UAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../../src/private/components/Menu/Menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAqB,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAY/D,eAAO,MAAM,kBAAkB,UAA2B,CAAC;AAsI3D,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC;;OAEG;IACH,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACxC;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,KAAK,OAAO,CAAC;IACrC;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,KAAK,OAAO,CAAC;IACpC;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACpC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,IAAI,+FAiGhB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMouseLeave.d.ts","sourceRoot":"","sources":["../../../../src/private/hooks/useMouseLeave/useMouseLeave.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,aAAa,QAAO,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,
|
|
1
|
+
{"version":3,"file":"useMouseLeave.d.ts","sourceRoot":"","sources":["../../../../src/private/hooks/useMouseLeave/useMouseLeave.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,aAAa,QAAO,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAiF/E,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wistia/vhs",
|
|
3
|
-
"version": "2.66.
|
|
3
|
+
"version": "2.66.3",
|
|
4
4
|
"description": "Visual Hype System - Wistia's opinionated component library for building React UIs",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -28,15 +28,15 @@
|
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
30
|
"browsers": "node ./scripts/browserSupport.mjs",
|
|
31
|
-
"build": "yarn build:src && node ./scripts/
|
|
31
|
+
"build": "yarn build:src && node ./scripts/buildTypes.mjs",
|
|
32
32
|
"build:analyze": "yarn build:src --metafile && esbuild-visualizer --metadata ./stats/esbuild-stats.json --filename ./stats/esbuild-stats.html",
|
|
33
33
|
"build:src": "cross-env NODE_ENV=production ./esbuild.config.mjs",
|
|
34
34
|
"build:types": "tsc --project tsconfig.build.json",
|
|
35
35
|
"build:types:debug": "tsc --project tsconfig.build.json --showConfig",
|
|
36
|
-
"build:watch": "
|
|
36
|
+
"build:watch": "cross-env NODE_ENV=development ./esbuild.config.mjs --watch",
|
|
37
|
+
"build:watch_": "concurrently \"yarn build:watch:src\" \"yarn build:watch:types\"",
|
|
37
38
|
"build:watch:src": "cross-env NODE_ENV=development ./esbuild.config.mjs --watch",
|
|
38
39
|
"build:watch:types": "tsc --watch --project tsconfig.build.json",
|
|
39
|
-
"bundlewatch": "yarn build:src && bundlewatch --config .bundlewatch.json",
|
|
40
40
|
"clean": "shx rm -rf ./dist && echo 'dist directory has been removed'",
|
|
41
41
|
"depcheck": "depcheck",
|
|
42
42
|
"generate": "node ./scripts/generators/generateComponent.mjs",
|
|
@@ -45,7 +45,6 @@
|
|
|
45
45
|
"prepack": "yarn run build",
|
|
46
46
|
"publint_": "publint-check",
|
|
47
47
|
"test": "cross-env NODE_ENV=test vitest run",
|
|
48
|
-
"test:ci": "yarn run test",
|
|
49
48
|
"test:coverage": "yarn run test --coverage=true && open ./coverage/index.html",
|
|
50
49
|
"test:debug": "echo 'open chrome://inspect/#devices' && cross-env NODE_ENV=test vitest --inspect-brk --no-file-parallelism",
|
|
51
50
|
"ts:generate": "tsx ./scripts/generateTypes.ts",
|
|
@@ -61,11 +60,11 @@
|
|
|
61
60
|
},
|
|
62
61
|
"dependencies": {
|
|
63
62
|
"@radix-ui/react-dropdown-menu": "^2.1.1",
|
|
64
|
-
"@wistia/type-guards": "^0.
|
|
63
|
+
"@wistia/type-guards": "^0.6.0",
|
|
65
64
|
"@wistia/vhs-design-tokens": "2.1.3",
|
|
66
65
|
"date-fns": "^3.6.0",
|
|
67
66
|
"formik": "^2.4.6",
|
|
68
|
-
"framer-motion": "^11.
|
|
67
|
+
"framer-motion": "^11.5.4",
|
|
69
68
|
"is-hotkey": "^0.2.0",
|
|
70
69
|
"polished": "^4.3.1",
|
|
71
70
|
"react-aria-live": "^2.0.5",
|
|
@@ -77,19 +76,19 @@
|
|
|
77
76
|
"slate-hyperscript": "^0.100.0",
|
|
78
77
|
"slate-react": "0.99.0",
|
|
79
78
|
"throttle-debounce": "^5.0.2",
|
|
80
|
-
"type-fest": "^4.
|
|
79
|
+
"type-fest": "^4.26.0",
|
|
81
80
|
"uuid": "^10.0.0"
|
|
82
81
|
},
|
|
83
82
|
"devDependencies": {
|
|
84
83
|
"@repo/config": "workspace:*",
|
|
85
84
|
"@storybook/react": "^8.2.9",
|
|
86
85
|
"@testing-library/dom": "^10.4.0",
|
|
87
|
-
"@testing-library/jest-dom": "^6.
|
|
88
|
-
"@testing-library/react": "^16.0.
|
|
86
|
+
"@testing-library/jest-dom": "^6.5.0",
|
|
87
|
+
"@testing-library/react": "^16.0.1",
|
|
89
88
|
"@testing-library/user-event": "^14.5.2",
|
|
90
89
|
"@types/is-hotkey": "^0.1.10",
|
|
91
|
-
"@types/node": "^20.
|
|
92
|
-
"@types/react": "^18.3.
|
|
90
|
+
"@types/node": "^20.16.5",
|
|
91
|
+
"@types/react": "^18.3.5",
|
|
93
92
|
"@types/react-aria-live": "^2.0.6",
|
|
94
93
|
"@types/react-dom": "^18.3.0",
|
|
95
94
|
"@types/react-slider": "^1.3.6",
|
|
@@ -97,16 +96,15 @@
|
|
|
97
96
|
"@types/throttle-debounce": "^5.0.2",
|
|
98
97
|
"@types/uuid": "^10.0.0",
|
|
99
98
|
"browserslist": "^4.23.3",
|
|
100
|
-
"bundlewatch": "^0.4.0",
|
|
101
99
|
"concurrently": "^8.2.2",
|
|
102
100
|
"cross-env": "^7.0.3",
|
|
103
101
|
"depcheck": "^1.4.7",
|
|
104
|
-
"esbuild": "^0.23.
|
|
102
|
+
"esbuild": "^0.23.1",
|
|
105
103
|
"esbuild-plugin-browserslist": "^0.14.0",
|
|
106
104
|
"esbuild-visualizer": "^0.6.0",
|
|
107
105
|
"globby": "^14.0.2",
|
|
108
|
-
"jsdoc-to-markdown": "^
|
|
109
|
-
"jsdom": "^
|
|
106
|
+
"jsdoc-to-markdown": "^9.0.0",
|
|
107
|
+
"jsdom": "^25.0.0",
|
|
110
108
|
"minimist": "^1.2.8",
|
|
111
109
|
"pascalcase": "^2.0.0",
|
|
112
110
|
"prettier": "^3.3.3",
|
|
@@ -115,7 +113,7 @@
|
|
|
115
113
|
"shx": "^0.3.4",
|
|
116
114
|
"signale": "^1.4.0",
|
|
117
115
|
"styled-components": "^5.3.11",
|
|
118
|
-
"tsx": "^4.
|
|
116
|
+
"tsx": "^4.19.0",
|
|
119
117
|
"typescript": "^5.5.4",
|
|
120
118
|
"vitest": "^2.0.5",
|
|
121
119
|
"vitest-axe": "^1.0.0-pre.3",
|