@wistia/vhs 2.31.0 → 2.31.1-beta.27e39cc0.d0750ab

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.
@@ -1 +1 @@
1
- {"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../../src/components/Menu/Menu.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAcvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAK7C,KAAK,gBAAgB,GAAG,iBAAiB,GAAG;IAC1C,KAAK,CAAC,EAAE,QAAQ,GAAG,KAAK,GAAG,OAAO,CAAC;IACnC,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;IAChB,YAAY,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IACxC,YAAY,CAAC,EAAE,WAAW,CAAC;CAC5B,CAAC;AAEF,KAAK,kBAAkB,GAAG,gBAAgB,GAAG;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,KAAK,CAAC;CACjB,CAAC;AAEF,KAAK,0BAA0B,GAAG,gBAAgB,GAAG;IACnD,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,OAAO,EAAE,SAAS,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,0BAA0B,GAAG,kBAAkB,CAAC;AAuCxE,KAAK,YAAY,GAAG;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,SAAS,CAAC;IACpB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,WAAW,CAAC,EAAE,SAAS,CAAC;CACzB,CAAC;AAMF,KAAK,cAAc,GAAG;IACpB,QAAQ,EAAE,SAAS,GAAG,MAAM,CAAC;CAC9B,CAAC;AAEF,eAAO,MAA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AAS,GAAG,MAAM,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,SAAS,2BAA4B,cAAc,4CAW/D,CAAC;AAEF,eAAO,MAAM,cAAc,gKAAyB,CAAC;AAErD,eAAO,MAAM,OAAO,2CAA4C,YAAY,4CA8B3E,CAAC;AAEF,eAAO,MAAM,IAAI;wFASd,SAAS,GAAG,WAAW;;CAgCzB,CAAC"}
@@ -37,9 +37,17 @@ export type TooltipProps = Omit<ComponentPropsWithoutRef<'div'>, 'id'> & {
37
37
  * Whether content within the label should wrap
38
38
  */
39
39
  shouldWrap?: boolean;
40
+ /**
41
+ * Color to override background of the tooltip.
42
+ */
43
+ backgroundColorOverride?: string;
44
+ /**
45
+ * Color to override font color of the tooltip.
46
+ */
47
+ fontColorOverride?: string;
40
48
  };
41
49
  export declare const Tooltip: {
42
- ({ label, direction, duration, eventType, forceState, maxChars, children, id, shouldWrap, ...otherProps }: TooltipProps): JSX.Element;
50
+ ({ label, direction, duration, eventType, forceState, maxChars, children, id, shouldWrap, backgroundColorOverride, fontColorOverride, ...otherProps }: TooltipProps): JSX.Element;
43
51
  displayName: string;
44
52
  };
45
53
  //# sourceMappingURL=Tooltip.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../../src/components/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAiBjE,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC,GAAG;IACvE;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC;IAChD;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;IACrC;;OAEG;IACH,SAAS,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,CAAC,EAAE,MAAM,CAAC;IACjC;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,OAAO;2JAajB,YAAY,GAAG,WAAW;;CAkH5B,CAAC"}
@@ -6,7 +6,9 @@ type TooltipContentProps = {
6
6
  forceState?: string | undefined;
7
7
  id?: string | undefined;
8
8
  shouldWrap: boolean;
9
+ backgroundColorOverride: string | undefined;
10
+ fontColorOverride: string | undefined;
9
11
  };
10
- export declare const TooltipContent: ({ id, active, direction, children, forceState, shouldWrap, }: TooltipContentProps) => import("react/jsx-runtime").JSX.Element;
12
+ export declare const TooltipContent: ({ id, active, direction, children, forceState, shouldWrap, backgroundColorOverride, fontColorOverride, }: TooltipContentProps) => import("react/jsx-runtime").JSX.Element;
11
13
  export {};
12
14
  //# sourceMappingURL=TooltipContent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TooltipContent.d.ts","sourceRoot":"","sources":["../../../../src/components/Tooltip/TooltipContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,KAAK,mBAAmB,GAAG;IACzB,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,EAAE,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC;IAC/C,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AA8HF,eAAO,MAAM,cAAc,iEAOxB,mBAAmB,4CAiBrB,CAAC"}
1
+ {"version":3,"file":"TooltipContent.d.ts","sourceRoot":"","sources":["../../../../src/components/Tooltip/TooltipContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,KAAK,mBAAmB,GAAG;IACzB,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,EAAE,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC;IAC/C,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB,UAAU,EAAE,OAAO,CAAC;IACpB,uBAAuB,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5C,iBAAiB,EAAE,MAAM,GAAG,SAAS,CAAC;CACvC,CAAC;AA8HF,eAAO,MAAM,cAAc,6GASxB,mBAAmB,4CAkBrB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wistia/vhs",
3
- "version": "2.31.0",
3
+ "version": "2.31.1-beta.27e39cc0.d0750ab",
4
4
  "packageManager": "yarn@4.0.0",
5
5
  "description": "Visual Hype System",
6
6
  "main": "dist/index.cjs.js",
@@ -57,7 +57,7 @@
57
57
  "dependencies": {
58
58
  "@radix-ui/react-dropdown-menu": "^2.0.6",
59
59
  "@wistia/type-guards": "^0.0.8",
60
- "@wistia/vhs-design-tokens": "^1.4.2",
60
+ "@wistia/vhs-design-tokens": "^1.4.3",
61
61
  "date-fns": "^2.30.0",
62
62
  "escape-html": "^1.0.3",
63
63
  "formik": "^2.4.5",
@@ -71,23 +71,23 @@
71
71
  "slate": "0.94.1",
72
72
  "slate-history": "^0.100.0",
73
73
  "slate-hyperscript": "^0.100.0",
74
- "slate-react": "0.101.3",
74
+ "slate-react": "^0.99.0",
75
75
  "throttle-debounce": "^5.0.0",
76
76
  "type-fest": "^4.8.3",
77
77
  "uuid": "^9.0.1"
78
78
  },
79
79
  "devDependencies": {
80
80
  "@jest/globals": "^29.7.0",
81
- "@storybook/addon-a11y": "^7.6.4",
82
- "@storybook/addon-controls": "^7.6.4",
83
- "@storybook/addon-docs": "^7.6.4",
84
- "@storybook/addon-links": "^7.6.4",
85
- "@storybook/addon-mdx-gfm": "^7.6.4",
86
- "@storybook/blocks": "^7.6.4",
87
- "@storybook/manager-api": "^7.6.4",
88
- "@storybook/react": "^7.6.4",
89
- "@storybook/react-vite": "^7.6.4",
90
- "@storybook/theming": "^7.6.4",
81
+ "@storybook/addon-a11y": "^7.6.5",
82
+ "@storybook/addon-controls": "^7.6.5",
83
+ "@storybook/addon-docs": "^7.6.5",
84
+ "@storybook/addon-links": "^7.6.5",
85
+ "@storybook/addon-mdx-gfm": "^7.6.5",
86
+ "@storybook/blocks": "^7.6.5",
87
+ "@storybook/manager-api": "^7.6.5",
88
+ "@storybook/react": "^7.6.5",
89
+ "@storybook/react-vite": "^7.6.5",
90
+ "@storybook/theming": "^7.6.5",
91
91
  "@testing-library/dom": "^9.3.3",
92
92
  "@testing-library/jest-dom": "^6.1.5",
93
93
  "@testing-library/react": "^14.1.2",
@@ -96,13 +96,13 @@
96
96
  "@types/jest": "^29.5.11",
97
97
  "@types/jest-axe": "^3.5.9",
98
98
  "@types/lodash.template": "^4.5.3",
99
- "@types/node": "^20.10.4",
99
+ "@types/node": "^20.10.5",
100
100
  "@types/react": "18.2.21",
101
- "@types/react-dom": "^18.2.17",
101
+ "@types/react-dom": "^18.2.18",
102
102
  "@types/react-transition-group": "^4.4.10",
103
103
  "@types/styled-components": "^5.1.34",
104
104
  "@types/uuid": "^9.0.7",
105
- "@wistia/eslint-config": "^0.26.1",
105
+ "@wistia/eslint-config": "^0.27.0",
106
106
  "browserslist": "^4.22.2",
107
107
  "bundlewatch": "^0.3.3",
108
108
  "chromatic": "^10.1.0",
@@ -112,8 +112,8 @@
112
112
  "esbuild": "^0.19.9",
113
113
  "esbuild-jest": "^0.5.0",
114
114
  "esbuild-plugin-browserslist": "^0.10.0",
115
- "esbuild-visualizer": "^0.5.0",
116
- "eslint": "^8.55.0",
115
+ "esbuild-visualizer": "^0.5.1",
116
+ "eslint": "^8.56.0",
117
117
  "globby": "^14.0.0",
118
118
  "jest": "^29.7.0",
119
119
  "jest-axe": "^8.0.0",
@@ -129,13 +129,13 @@
129
129
  "react": "^18.2.0",
130
130
  "react-dom": "^18.2.0",
131
131
  "shx": "^0.3.4",
132
- "storybook": "^7.6.4",
132
+ "storybook": "^7.6.5",
133
133
  "styled-components": "^5.3.11",
134
134
  "stylelint": "^16.0.2",
135
135
  "tsx": "^4.6.2",
136
136
  "typescript": "^5.3.3",
137
- "vite": "^5.0.8",
138
- "yup": "^1.3.2"
137
+ "vite": "^5.0.10",
138
+ "yup": "^1.3.3"
139
139
  },
140
140
  "author": "Wistia Engineering",
141
141
  "license": "UNLICENSED",