diff --git a/changelog.d/987.misc b/changelog.d/987.misc new file mode 100644 index 00000000..da85c970 --- /dev/null +++ b/changelog.d/987.misc @@ -0,0 +1 @@ +Reduce bundle size of widget. diff --git a/package.json b/package.json index d64ad6cc..9183f72a 100644 --- a/package.json +++ b/package.json @@ -84,6 +84,7 @@ }, "devDependencies": { "@codemirror/lang-javascript": "^6.0.2", + "@fontsource/inter": "^5.1.0", "@napi-rs/cli": "^2.13.2", "@preact/preset-vite": "^2.2.0", "@rollup/plugin-alias": "^5.1.0", diff --git a/web/components/RoomConfigView.tsx b/web/components/RoomConfigView.tsx index 9a0f25dd..dbcbc03c 100644 --- a/web/components/RoomConfigView.tsx +++ b/web/components/RoomConfigView.tsx @@ -1,14 +1,8 @@ +import { lazy, Suspense } from "preact/compat" import { useState } from "preact/hooks" import { BridgeConfig, EmbedType } from "../BridgeAPI"; import style from "./RoomConfigView.module.scss"; import { ConnectionCard } from "./ConnectionCard"; -import { FeedsConfig } from "./roomConfig/FeedsConfig"; -import { GenericWebhookConfig } from "./roomConfig/GenericWebhookConfig"; -import { OutboundWebhookConfig } from "./roomConfig/OutboundWebhookConfig"; -import { GithubRepoConfig } from "./roomConfig/GithubRepoConfig"; -import { GitlabRepoConfig } from "./roomConfig/GitlabRepoConfig"; -import { JiraProjectConfig } from "./roomConfig/JiraProjectConfig"; - import FeedsIcon from "../icons/feeds.png"; import GitHubIcon from "../icons/github.png"; import GitLabIcon from "../icons/gitlab.png"; @@ -46,40 +40,40 @@ const connections: Record = { displayName: "RSS/Atom Feeds", description: "Subscribe to an RSS/Atom feed", icon: FeedsIcon, - component: FeedsConfig, + component: lazy(() => import("./roomConfig/FeedsConfig")), }, [ConnectionType.Github]: { displayName: 'Github', description: "Connect the room to a GitHub project", icon: GitHubIcon, darkIcon: true, - component: GithubRepoConfig, + component: lazy(() => import("./roomConfig/GithubRepoConfig")), }, [ConnectionType.Gitlab]: { displayName: 'Gitlab', description: "Connect the room to a GitLab project", icon: GitLabIcon, - component: GitlabRepoConfig, + component: lazy(() => import("./roomConfig/GitlabRepoConfig")), }, [ConnectionType.Jira]: { displayName: 'JIRA', description: "Connect the room to a JIRA project", icon: JiraIcon, - component: JiraProjectConfig, + component: lazy(() => import("./roomConfig/JiraProjectConfig")), }, [ConnectionType.Generic]: { displayName: 'Inbound (Generic) Webhook', description: "Create a webhook which can be used to connect any service to Matrix", icon: WebhookIcon, darkIcon: true, - component: GenericWebhookConfig, + component: lazy(() => import("./roomConfig/GenericWebhookConfig")), }, [ConnectionType.GenericOutbound]: { displayName: 'Outbound Webhook', description: "Create a webhook which can be used to connect any service to Matrix", icon: WebhookIcon, darkIcon: true, - component: OutboundWebhookConfig, + component: lazy(() => import("./roomConfig/OutboundWebhookConfig")), }, }; @@ -91,10 +85,9 @@ export default function RoomConfigView(props: IProps) { if (activeConnectionType) { const ConfigComponent = connections[activeConnectionType].component; - content = ; + content = + + ; } else { content = <>
@@ -115,7 +108,6 @@ export default function RoomConfigView(props: IProps) { } return
- {!serviceScope && activeConnectionType &&
setActiveConnectionType(null)}> diff --git a/web/components/roomConfig/FeedsConfig.tsx b/web/components/roomConfig/FeedsConfig.tsx index af5f23b4..3808b745 100644 --- a/web/components/roomConfig/FeedsConfig.tsx +++ b/web/components/roomConfig/FeedsConfig.tsx @@ -92,8 +92,7 @@ const roomConfigText: IRoomConfigText = { const RoomConfigListItemFunc = (c: FeedResponseItem) => c.config.label || c.config.url; -export const FeedsConfig: BridgeConfig = ({ roomId, showHeader }) => { - +const FeedsConfig: BridgeConfig = ({ roomId, showHeader }) => { return headerImg={FeedsIcon} showHeader={showHeader} @@ -105,3 +104,5 @@ export const FeedsConfig: BridgeConfig = ({ roomId, showHeader }) => { connectionConfigComponent={ConnectionConfiguration} />; }; + +export default FeedsConfig; \ No newline at end of file diff --git a/web/components/roomConfig/GenericWebhookConfig.tsx b/web/components/roomConfig/GenericWebhookConfig.tsx index d8a999d8..e939f800 100644 --- a/web/components/roomConfig/GenericWebhookConfig.tsx +++ b/web/components/roomConfig/GenericWebhookConfig.tsx @@ -1,7 +1,5 @@ import { FunctionComponent, createRef } from "preact"; import { useCallback, useEffect, useState } from "preact/hooks" -import CodeMirror from '@uiw/react-codemirror'; -import { javascript } from '@codemirror/lang-javascript'; import { add, format } from "date-fns"; import { BridgeConfig } from "../../BridgeAPI"; import type { GenericHookConnectionState, GenericHookResponseItem, GenericHookServiceConfig } from "../../../src/Connections/GenericHook"; @@ -10,6 +8,12 @@ import { InputField, ButtonSet, Button } from "../elements"; import WebhookIcon from "../../icons/webhook.png"; import { Alert, ToggleInput } from "@vector-im/compound-web"; import { InfoIcon, WarningIcon } from "@vector-im/compound-design-tokens/assets/web/icons" +import { lazy, Suspense } from "preact/compat"; +import { LoadingSpinner } from "../elements/LoadingSpinner"; +import { Extension } from "@uiw/react-codemirror"; + + +const CodeMirror = lazy(() => import("@uiw/react-codemirror")); const EXAMPLE_SCRIPT = `if (data.counter === undefined) { result = { @@ -29,10 +33,46 @@ const EXAMPLE_SCRIPT = `if (data.counter === undefined) { }`; const DOCUMENTATION_LINK = "https://matrix-org.github.io/matrix-hookshot/latest/setup/webhooks.html#script-api"; -const CODE_MIRROR_EXTENSIONS = [javascript({})]; const EXPIRY_WARN_AT_MS = 3 * 24 * 60 * 60 * 1000; +const CodeEditor: FunctionComponent<{value: string, onChange: (value: string) => void}> = ({value, onChange}) => { + const [codeMirrorTheme, setCodeMirrorTheme] = useState<"light"|"dark">("light"); + const [extensions, setExtensions] = useState(); + useEffect(() => { + const mm = window.matchMedia('(prefers-color-scheme: dark)'); + const fn = (event: MediaQueryListEvent) => { + setCodeMirrorTheme(event.matches ? "dark" : "light"); + }; + mm.addEventListener('change', fn); + setCodeMirrorTheme(mm.matches ? "dark" : "light"); + return () => mm.removeEventListener('change', fn); + }, []); + + useEffect(() => { + async function loader() { + const { javascript } = await import("@codemirror/lang-javascript"); + setExtensions([javascript({ jsx: false, typescript: false})]); + console.log('Extensions loaded'); + } + void loader(); + }, []); + + if (!extensions) { + return ; + } + + return }> + +

See the documentation for help writing transformation functions

+
; +}; + const ConnectionConfiguration: FunctionComponent> = ({serviceConfig, existingConnection, onSave, onRemove, isUpdating}) => { const [transFn, setTransFn] = useState(existingConnection?.config.transformationFunction as string || EXAMPLE_SCRIPT); const [transFnEnabled, setTransFnEnabled] = useState(serviceConfig.allowJsTransformationFunctions && !!existingConnection?.config.transformationFunction); @@ -58,21 +98,6 @@ const ConnectionConfiguration: FunctionComponent("light"); - useEffect(() => { - if (!transFnEnabled) { - return; - } - const mm = window.matchMedia('(prefers-color-scheme: dark)'); - const fn = (event: MediaQueryListEvent) => { - setCodeMirrorTheme(event.matches ? "dark" : "light"); - }; - mm.addEventListener('change', fn); - setCodeMirrorTheme(mm.matches ? "dark" : "light"); - return () => mm.removeEventListener('change', fn); - }, [transFnEnabled]); - - const hasExpired = existingConnection?.secrets?.timeRemainingMs ? existingConnection?.secrets?.timeRemainingMs <= 0 : false; const willExpireSoon = !hasExpired && existingConnection?.secrets?.timeRemainingMs ? existingConnection?.secrets?.timeRemainingMs <= EXPIRY_WARN_AT_MS : false; @@ -123,15 +148,7 @@ const ConnectionConfiguration: FunctionComponent setWaitForComplete(v => !v), [])} /> - - {transFnEnabled && <> -

See the documentation for help writing transformation functions

- } + {transFnEnabled && } { canEdit && } { canEdit && existingConnection && } @@ -173,3 +190,5 @@ export const GenericWebhookConfig: BridgeConfig = ({ roomId, showHeader }) => { connectionConfigComponent={ConnectionConfiguration} />; }; + +export default GenericWebhookConfig; \ No newline at end of file diff --git a/web/components/roomConfig/GithubRepoConfig.tsx b/web/components/roomConfig/GithubRepoConfig.tsx index 434848b0..a52792c4 100644 --- a/web/components/roomConfig/GithubRepoConfig.tsx +++ b/web/components/roomConfig/GithubRepoConfig.tsx @@ -177,7 +177,7 @@ const roomConfigText: IRoomConfigText = { const RoomConfigListItemFunc = (c: GitHubRepoResponseItem) => getRepoFullName(c.config); -export const GithubRepoConfig: BridgeConfig = ({ roomId, showHeader }) => { +const GithubRepoConfig: BridgeConfig = ({ roomId, showHeader }) => { return headerImg={GitHubIcon} darkHeaderImg={true} @@ -191,3 +191,5 @@ export const GithubRepoConfig: BridgeConfig = ({ roomId, showHeader }) => { connectionConfigComponent={ConnectionConfiguration} />; }; + +export default GithubRepoConfig; \ No newline at end of file diff --git a/web/components/roomConfig/GitlabRepoConfig.tsx b/web/components/roomConfig/GitlabRepoConfig.tsx index 573c56c9..62edf3f7 100644 --- a/web/components/roomConfig/GitlabRepoConfig.tsx +++ b/web/components/roomConfig/GitlabRepoConfig.tsx @@ -126,7 +126,7 @@ const RoomConfigText = { const RoomConfigListItemFunc = (c: GitLabRepoResponseItem) => c.config.path; -export const GitlabRepoConfig: BridgeConfig = ({ roomId, showHeader }) => { +const GitlabRepoConfig: BridgeConfig = ({ roomId, showHeader }) => { return headerImg={GitLabIcon} showHeader={showHeader} @@ -138,3 +138,5 @@ export const GitlabRepoConfig: BridgeConfig = ({ roomId, showHeader }) => { connectionConfigComponent={ConnectionConfiguration} />; }; + +export default GitlabRepoConfig; \ No newline at end of file diff --git a/web/components/roomConfig/JiraProjectConfig.tsx b/web/components/roomConfig/JiraProjectConfig.tsx index 12796dac..d33050da 100644 --- a/web/components/roomConfig/JiraProjectConfig.tsx +++ b/web/components/roomConfig/JiraProjectConfig.tsx @@ -110,7 +110,7 @@ const RoomConfigText = { const RoomConfigListItemFunc = (c: JiraProjectResponseItem) => c.config.url; -export const JiraProjectConfig: BridgeConfig = ({ roomId, showHeader }) => { +const JiraProjectConfig: BridgeConfig = ({ roomId, showHeader }) => { return headerImg={JiraIcon} showHeader={showHeader} @@ -122,3 +122,5 @@ export const JiraProjectConfig: BridgeConfig = ({ roomId, showHeader }) => { connectionConfigComponent={ConnectionConfiguration} />; }; + +export default JiraProjectConfig; diff --git a/web/components/roomConfig/OutboundWebhookConfig.tsx b/web/components/roomConfig/OutboundWebhookConfig.tsx index d64b6517..0bf24d90 100644 --- a/web/components/roomConfig/OutboundWebhookConfig.tsx +++ b/web/components/roomConfig/OutboundWebhookConfig.tsx @@ -70,7 +70,7 @@ const RoomConfigText = { const RoomConfigListItemFunc = (c: OutboundHookResponseItem) => c.config.name; -export const OutboundWebhookConfig: BridgeConfig = ({ roomId, showHeader }) => { +const OutboundWebhookConfig: BridgeConfig = ({ roomId, showHeader }) => { return headerImg={WebhookIcon} darkHeaderImg={true} @@ -83,3 +83,5 @@ export const OutboundWebhookConfig: BridgeConfig = ({ roomId, showHeader }) => { connectionConfigComponent={ConnectionConfiguration} />; }; + +export default OutboundWebhookConfig; \ No newline at end of file diff --git a/web/fonts/Inter/Inter-Bold.woff b/web/fonts/Inter/Inter-Bold.woff deleted file mode 100644 index 2ec7ac3d..00000000 Binary files a/web/fonts/Inter/Inter-Bold.woff and /dev/null differ diff --git a/web/fonts/Inter/Inter-Bold.woff2 b/web/fonts/Inter/Inter-Bold.woff2 deleted file mode 100644 index 6989c992..00000000 Binary files a/web/fonts/Inter/Inter-Bold.woff2 and /dev/null differ diff --git a/web/fonts/Inter/Inter-BoldItalic.woff b/web/fonts/Inter/Inter-BoldItalic.woff deleted file mode 100644 index aa35b797..00000000 Binary files a/web/fonts/Inter/Inter-BoldItalic.woff and /dev/null differ diff --git a/web/fonts/Inter/Inter-BoldItalic.woff2 b/web/fonts/Inter/Inter-BoldItalic.woff2 deleted file mode 100644 index 18b4c1ce..00000000 Binary files a/web/fonts/Inter/Inter-BoldItalic.woff2 and /dev/null differ diff --git a/web/fonts/Inter/Inter-Italic.woff b/web/fonts/Inter/Inter-Italic.woff deleted file mode 100644 index 4b765bd5..00000000 Binary files a/web/fonts/Inter/Inter-Italic.woff and /dev/null differ diff --git a/web/fonts/Inter/Inter-Italic.woff2 b/web/fonts/Inter/Inter-Italic.woff2 deleted file mode 100644 index bd5f255a..00000000 Binary files a/web/fonts/Inter/Inter-Italic.woff2 and /dev/null differ diff --git a/web/fonts/Inter/Inter-Medium.woff b/web/fonts/Inter/Inter-Medium.woff deleted file mode 100644 index 7d55f34c..00000000 Binary files a/web/fonts/Inter/Inter-Medium.woff and /dev/null differ diff --git a/web/fonts/Inter/Inter-Medium.woff2 b/web/fonts/Inter/Inter-Medium.woff2 deleted file mode 100644 index a916b47f..00000000 Binary files a/web/fonts/Inter/Inter-Medium.woff2 and /dev/null differ diff --git a/web/fonts/Inter/Inter-MediumItalic.woff b/web/fonts/Inter/Inter-MediumItalic.woff deleted file mode 100644 index 422ab057..00000000 Binary files a/web/fonts/Inter/Inter-MediumItalic.woff and /dev/null differ diff --git a/web/fonts/Inter/Inter-MediumItalic.woff2 b/web/fonts/Inter/Inter-MediumItalic.woff2 deleted file mode 100644 index f623924a..00000000 Binary files a/web/fonts/Inter/Inter-MediumItalic.woff2 and /dev/null differ diff --git a/web/fonts/Inter/Inter-Regular.woff b/web/fonts/Inter/Inter-Regular.woff deleted file mode 100644 index 7ff51b7d..00000000 Binary files a/web/fonts/Inter/Inter-Regular.woff and /dev/null differ diff --git a/web/fonts/Inter/Inter-Regular.woff2 b/web/fonts/Inter/Inter-Regular.woff2 deleted file mode 100644 index 554aed66..00000000 Binary files a/web/fonts/Inter/Inter-Regular.woff2 and /dev/null differ diff --git a/web/fonts/Inter/Inter-SemiBold.woff b/web/fonts/Inter/Inter-SemiBold.woff deleted file mode 100644 index 76e507a5..00000000 Binary files a/web/fonts/Inter/Inter-SemiBold.woff and /dev/null differ diff --git a/web/fonts/Inter/Inter-SemiBold.woff2 b/web/fonts/Inter/Inter-SemiBold.woff2 deleted file mode 100644 index 93079989..00000000 Binary files a/web/fonts/Inter/Inter-SemiBold.woff2 and /dev/null differ diff --git a/web/fonts/Inter/Inter-SemiBoldItalic.woff b/web/fonts/Inter/Inter-SemiBoldItalic.woff deleted file mode 100644 index 38218121..00000000 Binary files a/web/fonts/Inter/Inter-SemiBoldItalic.woff and /dev/null differ diff --git a/web/fonts/Inter/Inter-SemiBoldItalic.woff2 b/web/fonts/Inter/Inter-SemiBoldItalic.woff2 deleted file mode 100644 index f19f5505..00000000 Binary files a/web/fonts/Inter/Inter-SemiBoldItalic.woff2 and /dev/null differ diff --git a/web/fonts/OFL.txt b/web/fonts/OFL.txt deleted file mode 100644 index ad214842..00000000 --- a/web/fonts/OFL.txt +++ /dev/null @@ -1,93 +0,0 @@ -Copyright 2020 The Inter Project Authors (https://github.com/rsms/inter) - -This Font Software is licensed under the SIL Open Font License, Version 1.1. -This license is copied below, and is also available with a FAQ at: -http://scripts.sil.org/OFL - - ------------------------------------------------------------ -SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 ------------------------------------------------------------ - -PREAMBLE -The goals of the Open Font License (OFL) are to stimulate worldwide -development of collaborative font projects, to support the font creation -efforts of academic and linguistic communities, and to provide a free and -open framework in which fonts may be shared and improved in partnership -with others. - -The OFL allows the licensed fonts to be used, studied, modified and -redistributed freely as long as they are not sold by themselves. The -fonts, including any derivative works, can be bundled, embedded, -redistributed and/or sold with any software provided that any reserved -names are not used by derivative works. The fonts and derivatives, -however, cannot be released under any other type of license. The -requirement for fonts to remain under this license does not apply -to any document created using the fonts or their derivatives. - -DEFINITIONS -"Font Software" refers to the set of files released by the Copyright -Holder(s) under this license and clearly marked as such. This may -include source files, build scripts and documentation. - -"Reserved Font Name" refers to any names specified as such after the -copyright statement(s). - -"Original Version" refers to the collection of Font Software components as -distributed by the Copyright Holder(s). - -"Modified Version" refers to any derivative made by adding to, deleting, -or substituting -- in part or in whole -- any of the components of the -Original Version, by changing formats or by porting the Font Software to a -new environment. - -"Author" refers to any designer, engineer, programmer, technical -writer or other person who contributed to the Font Software. - -PERMISSION & CONDITIONS -Permission is hereby granted, free of charge, to any person obtaining -a copy of the Font Software, to use, study, copy, merge, embed, modify, -redistribute, and sell modified and unmodified copies of the Font -Software, subject to the following conditions: - -1) Neither the Font Software nor any of its individual components, -in Original or Modified Versions, may be sold by itself. - -2) Original or Modified Versions of the Font Software may be bundled, -redistributed and/or sold with any software, provided that each copy -contains the above copyright notice and this license. These can be -included either as stand-alone text files, human-readable headers or -in the appropriate machine-readable metadata fields within text or -binary files as long as those fields can be easily viewed by the user. - -3) No Modified Version of the Font Software may use the Reserved Font -Name(s) unless explicit written permission is granted by the corresponding -Copyright Holder. This restriction only applies to the primary font name as -presented to the users. - -4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font -Software shall not be used to promote, endorse or advertise any -Modified Version, except to acknowledge the contribution(s) of the -Copyright Holder(s) and the Author(s) or with their explicit written -permission. - -5) The Font Software, modified or unmodified, in part or in whole, -must be distributed entirely under this license, and must not be -distributed under any other license. The requirement for fonts to -remain under this license does not apply to any document created -using the Font Software. - -TERMINATION -This license becomes null and void if any of the above conditions are -not met. - -DISCLAIMER -THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT -OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE -COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL -DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM -OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/web/fonts/fonts.scss b/web/fonts/fonts.scss index 249a5af5..370dc267 100644 --- a/web/fonts/fonts.scss +++ b/web/fonts/fonts.scss @@ -8,78 +8,7 @@ $inter-unicode-range: U+0000-20e2,U+20e4-23ce,U+23d0-24c1,U+24c3-259f,U+25c2-2664,U+2666-2763,U+2765-2b05,U+2b07-2b1b,U+2b1d-10FFFF; -@font-face { - font-family: 'Inter'; - font-style: normal; - font-weight: 400; - font-display: swap; - unicode-range: $inter-unicode-range; - src: url("./Inter/Inter-Regular.woff2?v=3.18") format("woff2"), - url("./Inter/Inter-Regular.woff?v=3.18") format("woff"); -} -@font-face { - font-family: 'Inter'; - font-style: italic; - font-weight: 400; - font-display: swap; - unicode-range: $inter-unicode-range; - src: url("./Inter/Inter-Italic.woff2?v=3.18") format("woff2"), - url("./Inter/Inter-Italic.woff?v=3.18") format("woff"); -} - -@font-face { - font-family: 'Inter'; - font-style: normal; - font-weight: 500; - font-display: swap; - unicode-range: $inter-unicode-range; - src: url("./Inter/Inter-Medium.woff2?v=3.18") format("woff2"), - url("./Inter/Inter-Medium.woff?v=3.18") format("woff"); -} -@font-face { - font-family: 'Inter'; - font-style: italic; - font-weight: 500; - font-display: swap; - unicode-range: $inter-unicode-range; - src: url("./Inter/Inter-MediumItalic.woff2?v=3.18") format("woff2"), - url("./Inter/Inter-MediumItalic.woff?v=3.18") format("woff"); -} - -@font-face { - font-family: 'Inter'; - font-style: normal; - font-weight: 600; - font-display: swap; - unicode-range: $inter-unicode-range; - src: url("./Inter/Inter-SemiBold.woff2?v=3.18") format("woff2"), - url("./Inter/Inter-SemiBold.woff?v=3.18") format("woff"); -} -@font-face { - font-family: 'Inter'; - font-style: italic; - font-weight: 600; - font-display: swap; - unicode-range: $inter-unicode-range; - src: url("./Inter/Inter-SemiBoldItalic.woff2?v=3.18") format("woff2"), - url("./Inter/Inter-SemiBoldItalic.woff?v=3.18") format("woff"); -} - -@font-face { - font-family: 'Inter'; - font-style: normal; - font-weight: 700; - font-display: swap; - unicode-range: $inter-unicode-range; - src: url("./Inter/Inter-Bold.woff2?v=3.18") format("woff2"), - url("./Inter/Inter-Bold.woff?v=3.18") format("woff"); -} -@font-face { - font-family: 'Inter'; - font-style: italic; - font-weight: 700; - font-display: swap; - unicode-range: $inter-unicode-range; - src: url("./Inter/Inter-BoldItalic.woff2?v=3.18") format("woff2"), - url("./Inter/Inter-BoldItalic.woff?v=3.18") format("woff"); -} \ No newline at end of file +@import url("@fontsource/inter/400.css"); +@import url("@fontsource/inter/500.css"); +@import url("@fontsource/inter/600.css"); +@import url("@fontsource/inter/700.css"); \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index cf6a865e..73e04352 100644 --- a/yarn.lock +++ b/yarn.lock @@ -678,6 +678,11 @@ resolved "https://registry.yarnpkg.com/@floating-ui/utils/-/utils-0.2.8.tgz#21a907684723bbbaa5f0974cf7730bd797eb8e62" integrity sha512-kym7SodPp8/wloecOpcmSnWJsK7M0E5Wg8UcFA+uO4B9s5d0ywXOEro/8HM9x0rW+TljRzul/14UYz3TleT3ig== +"@fontsource/inter@^5.1.0": + version "5.1.0" + resolved "https://registry.yarnpkg.com/@fontsource/inter/-/inter-5.1.0.tgz#ab629b2c662457022d2d6a29854b8dc8ba538c47" + integrity sha512-zKZR3kf1G0noIes1frLfOHP5EXVVm0M7sV/l9f/AaYf+M/DId35FO4LkigWjqWYjTJZGgplhdv4cB+ssvCqr5A== + "@humanwhocodes/config-array@^0.11.13": version "0.11.13" resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.11.13.tgz#075dc9684f40a531d9b26b0822153c1e832ee297"