Skip to content

Commit

Permalink
chore(deps): update all non-major dependencies (#1497)
Browse files Browse the repository at this point in the history
* chore(deps): update all non-major dependencies

* fix: ts

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Robb Niznik <[email protected]>
  • Loading branch information
renovate[bot] and Niznikr authored Dec 2, 2024
1 parent f6b7b8e commit 0b27100
Show file tree
Hide file tree
Showing 10 changed files with 223 additions and 228 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"@testing-library/react": "^16.0.0",
"@testing-library/user-event": "^14.5.2",
"@types/css-modules": "^1.0.5",
"@types/node": "^22.9.0",
"@types/node": "^22.10.1",
"@types/react": "^18.3.1",
"@types/react-dom": "^18.3.0",
"@vanilla-extract/css": "^1.16.0",
Expand All @@ -68,7 +68,7 @@
"@vitest/coverage-v8": "^2.1.1",
"@vitest/ui": "^2.1.1",
"browserslist": "^4.24.0",
"chromatic": "^11.18.1",
"chromatic": "^11.19.0",
"deepmerge": "^4.3.1",
"husky": "^9.1.1",
"jsdom": "^25.0.0",
Expand All @@ -82,7 +82,7 @@
"rollup-plugin-pure": "^0.2.1",
"storybook": "^8.4.0",
"storybook-addon-pseudo-states": "^4.0.0",
"typescript": "^5.6.2",
"typescript": "^5.7.2",
"typescript-plugin-css-modules": "^5.1.0",
"vite": "^6.0.2",
"vitest": "^2.1.1"
Expand Down
1 change: 1 addition & 0 deletions packages/components/stories/composition.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ export const ListBoxTooltip: Story = {
<ListBoxItem ref={ref} {...props}>
{({ isFocused }) => {
return (
/* @ts-expect-error render props */
<>
{props.children}
<TooltipTrigger isOpen={isFocused}>
Expand Down
2 changes: 1 addition & 1 deletion packages/drawer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"@react-aria/interactions": "3.22.5",
"@react-aria/overlays": "3.24.0",
"classix": "2.2.0",
"framer-motion": "11.11.1"
"framer-motion": "11.12.0"
},
"peerDependencies": {
"react": "18.3.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/markdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"dependencies": {
"@launchpad-ui/tokens": "workspace:~",
"classix": "2.2.0",
"isomorphic-dompurify": "^2.16.0",
"isomorphic-dompurify": "^2.18.0",
"marked": "^15.0.0"
},
"peerDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/markdown/src/Markdown.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import type { ElementType, ReactNode, RefObject } from 'react';

import { cx } from 'classix';
import { addHook } from 'isomorphic-dompurify';
import DOMPurify from 'isomorphic-dompurify';

import styles from './styles/Markdown.module.css';
import { isAnchorNode, renderMarkdown } from './utils';

addHook('afterSanitizeAttributes', (node) => {
DOMPurify.addHook('afterSanitizeAttributes', (node) => {
// Ensure we add the required rel attribute.
if (isAnchorNode(node) && node.target.toLowerCase() === '_blank') {
node.setAttribute('rel', 'noopener noreferrer');
Expand Down
4 changes: 2 additions & 2 deletions packages/markdown/src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Config } from 'isomorphic-dompurify';
import type { Tokens } from 'marked';

import { sanitize } from 'isomorphic-dompurify';
import DOMPurify from 'isomorphic-dompurify';
import { marked } from 'marked';

function isAnchorNode(node: Element): node is HTMLAnchorElement {
Expand Down Expand Up @@ -48,7 +48,7 @@ function renderMarkdown(
sanitizationConfig.ALLOWED_TAGS = allowedTags;
}

return sanitize(html, sanitizationConfig);
return DOMPurify.sanitize(html, sanitizationConfig);
}

export { isAnchorNode, renderMarkdown };
2 changes: 1 addition & 1 deletion packages/modal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"@react-aria/interactions": "3.22.5",
"@react-aria/overlays": "3.24.0",
"classix": "2.2.0",
"framer-motion": "11.11.1"
"framer-motion": "11.12.0"
},
"peerDependencies": {
"react": "18.3.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/popover/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@launchpad-ui/overlay": "workspace:~",
"@launchpad-ui/tokens": "workspace:~",
"classix": "2.2.0",
"framer-motion": "11.11.1"
"framer-motion": "11.12.0"
},
"peerDependencies": {
"react": "18.3.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/tokens/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
},
"devDependencies": {
"json-to-ts": "^2.1.0",
"prettier": "^3.3.3",
"prettier": "^3.4.1",
"style-dictionary": "^4.2.0",
"tsx": "^4.19.0"
}
Expand Down
Loading

0 comments on commit 0b27100

Please sign in to comment.