Skip to content

Commit d7c699a

Browse files
committed
chore: update dependencies
1 parent 70344f1 commit d7c699a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+3619
-3042
lines changed

data/themes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export let themes = [
112112
},
113113
]
114114

115-
export let getThemeNameById = (id: string): string => {
115+
export function getThemeNameById(id: string): string {
116116
let theme = themes.find(themeValue => themeValue.id === id)
117117
return theme ? theme.name : ''
118118
}

docs/elements/theme-dropdown/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export let ThemeDropdown = component$<ThemeDropdownProps>(({ close }) => {
3838
})
3939
}
4040

41-
let handleEscape = (event: KeyboardEvent): void => {
41+
function handleEscape(event: KeyboardEvent): void {
4242
if (event.key === 'Escape') {
4343
close?.()
4444
}

docs/hooks/use-click-outside.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import type { Signal, QRL } from '@builder.io/qwik'
22

33
import { useOnDocument, $ } from '@builder.io/qwik'
44

5-
export let useClickOutside = (
5+
export function useClickOutside(
66
reference: Signal<HTMLElement | undefined>,
77
onClickOut: QRL<() => void>,
8-
): void => {
8+
): void {
99
useOnDocument(
1010
'click',
1111
$(async event => {

docs/utils/create-highlighter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ let jsEngine = createJavaScriptRegexEngine({
1818
forgiving: true,
1919
})
2020

21-
export let createHighlighter = async (): Promise<
21+
export async function createHighlighter(): Promise<
2222
HighlighterGeneric<BundledLanguage, BundledTheme>
23-
> => {
23+
> {
2424
highlighter ??= await createShikiHighlighter({
2525
engine: jsEngine,
2626
langs: ['tsx'],

docs/utils/update-css-variables.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,7 @@ export let colorNames = [
1313
'purple',
1414
] as const
1515

16-
let setColor = (key: string, value: string): void => {
17-
let root = document.documentElement
18-
root.style.setProperty(`--color-${key}`, value)
19-
}
20-
21-
export let updateThemeCSSVariables = ({
16+
export function updateThemeCSSVariables({
2217
backgroundSecondary,
2318
backgroundTertiary,
2419
backgroundPrimary,
@@ -28,7 +23,7 @@ export let updateThemeCSSVariables = ({
2823
themeType,
2924
border,
3025
main,
31-
}: AdditionalData & ThemeSource): void => {
26+
}: AdditionalData & ThemeSource): void {
3227
setColor('background-brand', backgroundBrand)
3328
setColor('background-primary', backgroundPrimary)
3429
setColor('background-secondary', backgroundSecondary)
@@ -43,3 +38,8 @@ export let updateThemeCSSVariables = ({
4338

4439
document.documentElement.style.setProperty('color-scheme', themeType)
4540
}
41+
42+
function setColor(key: string, value: string): void {
43+
let root = document.documentElement
44+
root.style.setProperty(`--color-${key}`, value)
45+
}

extension/core/build/build-icons.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { processIcons } from './process-icons'
1818
* @param {Config} config - Extension configuration.
1919
* @returns {Promise<void>} Promise that resolves when the build is complete.
2020
*/
21-
export let buildIcons = async (theme: Theme, config: Config): Promise<void> => {
21+
export async function buildIcons(theme: Theme, config: Config): Promise<void> {
2222
let buildLogger = logger.withContext('Build')
2323
buildLogger.info('Starting icon theme build process')
2424

extension/core/build/create-loader-icon.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ interface LoaderIconOptions {
1818
* appearance.
1919
* @returns {string} SVG string containing an animated loader icon.
2020
*/
21-
export let createLoaderIcon = (options: LoaderIconOptions = {}): string => {
21+
export function createLoaderIcon(options: LoaderIconOptions = {}): string {
2222
let color = options.color ?? '#636363'
2323
let circleRadius = options.circleRadius ?? 6
2424
let duration = options.duration ?? 1

extension/core/build/create-theme-associations.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ import type { FormattedIconValue } from '../../types/icon'
1111
* @returns {ThemeData} Map of file extensions and file names to icon IDs for
1212
* light and dark themes
1313
*/
14-
export let createThemeAssociations = (
14+
export function createThemeAssociations(
1515
icons: FormattedIconValue[],
16-
): ThemeData => {
16+
): ThemeData {
1717
let themeData: ThemeData = {
1818
light: {
1919
fileExtensions: {},

extension/core/build/create-theme-schema.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ interface CreateThemeSchemaOptions {
2424
* config
2525
* @returns {ThemeSchema} The complete theme schema
2626
*/
27-
export let createThemeSchema = (
27+
export function createThemeSchema(
2828
iconDefinitions: IconDefinitions,
2929
themeData: ThemeData,
3030
options: CreateThemeSchemaOptions,
31-
): ThemeSchema => {
31+
): ThemeSchema {
3232
let { config, theme } = options
3333
let fileId = 'file'
3434
let fileLightId = 'file-light'

extension/core/build/get-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { version } from '../../../package.json'
1414
* @param {ExtensionContext} context - VSCode extension context.
1515
* @returns {Config} The extension configuration object
1616
*/
17-
export let getConfig = (context: ExtensionContext): Config => {
17+
export function getConfig(context: ExtensionContext): Config {
1818
let configLogger = logger.withContext('Config')
1919
let extensionPath = path.join(context.extensionPath, 'dist')
2020
let outputPath = path.join(extensionPath, 'output')

0 commit comments

Comments
 (0)