diff --git a/build.gradle b/build.gradle
index a75f60f..7807642 100644
--- a/build.gradle
+++ b/build.gradle
@@ -48,5 +48,5 @@ build {
}
halo {
- version = "2.17.0"
+ version = "2.20"
}
diff --git a/packages/search-widget/lit-localize.json b/packages/search-widget/lit-localize.json
new file mode 100644
index 0000000..3cb1888
--- /dev/null
+++ b/packages/search-widget/lit-localize.json
@@ -0,0 +1,19 @@
+{
+ "$schema": "https://raw.githubusercontent.com/lit/lit/main/packages/localize-tools/config.schema.json",
+ "sourceLocale": "en",
+ "targetLocales": [
+ "es",
+ "zh-CN",
+ "zh-TW"
+ ],
+ "tsConfig": "./tsconfig.json",
+ "output": {
+ "mode": "runtime",
+ "outputDir": "./src/generated/locales",
+ "localeCodesModule": "./src/generated/locale-codes.ts"
+ },
+ "interchange": {
+ "format": "xliff",
+ "xliffDir": "./xliff/"
+ }
+}
\ No newline at end of file
diff --git a/packages/search-widget/package.json b/packages/search-widget/package.json
index cb32eb6..99679ec 100644
--- a/packages/search-widget/package.json
+++ b/packages/search-widget/package.json
@@ -23,6 +23,7 @@
"prettier": "prettier \"**/*.{cjs,html,js,json,md,ts}\" --ignore-path ./.gitignore --write"
},
"dependencies": {
+ "@lit/localize": "^0.12.2",
"lit": "^3.2.0",
"lodash-es": "^4.17.21",
"overlayscrollbars": "^2.10.0"
@@ -30,6 +31,7 @@
"devDependencies": {
"@iconify/json": "^2.2.234",
"@julr/unocss-preset-forms": "^0.1.0",
+ "@lit/localize-tools": "^0.8.0",
"@types/lodash-es": "^4.17.12",
"@unocss/eslint-config": "^0.61.9",
"@unocss/reset": "^0.61.9",
diff --git a/packages/search-widget/src/constants/index.ts b/packages/search-widget/src/constants/index.ts
index f025308..6ae1998 100644
--- a/packages/search-widget/src/constants/index.ts
+++ b/packages/search-widget/src/constants/index.ts
@@ -1,17 +1,2 @@
export const HISTORY_KEY = 'halo:search-widgets:history:hits';
-export const MAX_HISTORY_ITEMS = 50;
-
-export const SHORTCUT_HELP_LIST = [
- {
- text: '选择',
- kbdIcons: ['i-lucide-arrow-up', 'i-lucide-arrow-down'],
- },
- {
- text: '确认',
- kbdIcons: ['i-lucide-corner-down-left'],
- },
- {
- text: '关闭',
- kbdIcons: ['i-mdi-keyboard-esc'],
- },
-];
+export const MAX_HISTORY_ITEMS = 50;
\ No newline at end of file
diff --git a/packages/search-widget/src/generated/locale-codes.ts b/packages/search-widget/src/generated/locale-codes.ts
new file mode 100644
index 0000000..23dbf36
--- /dev/null
+++ b/packages/search-widget/src/generated/locale-codes.ts
@@ -0,0 +1,27 @@
+// Do not modify this file by hand!
+// Re-generate this file by running lit-localize.
+
+/**
+ * The locale code that templates in this source code are written in.
+ */
+export const sourceLocale = `en`;
+
+/**
+ * The other locale codes that this application is localized into. Sorted
+ * lexicographically.
+ */
+export const targetLocales = [
+ `es`,
+ `zh-CN`,
+ `zh-TW`,
+] as const;
+
+/**
+ * All valid project locale codes. Sorted lexicographically.
+ */
+export const allLocales = [
+ `en`,
+ `es`,
+ `zh-CN`,
+ `zh-TW`,
+] as const;
diff --git a/packages/search-widget/src/generated/locales/es.ts b/packages/search-widget/src/generated/locales/es.ts
new file mode 100644
index 0000000..05e65b4
--- /dev/null
+++ b/packages/search-widget/src/generated/locales/es.ts
@@ -0,0 +1,20 @@
+
+ // Do not modify this file by hand!
+ // Re-generate this file by running lit-localize
+
+
+
+
+ /* eslint-disable no-irregular-whitespace */
+ /* eslint-disable @typescript-eslint/no-explicit-any */
+
+ export const templates = {
+ 's5e8250fb85d64c23': `Cerrar`,
+'sa84142fc34654130': `Sin resultados de búsqueda`,
+'sad5f82f8364e5a1c': `Introducir palabras clave para buscar`,
+'sb4f1dffbb6be6302': `Borrar`,
+'sb85774dc5d18ff0f': `Confirmar`,
+'sbce70cbdb856635e': `Recientes`,
+'sfc63e31ac7c956ed': `Seleccionar`,
+ };
+
\ No newline at end of file
diff --git a/packages/search-widget/src/generated/locales/zh-CN.ts b/packages/search-widget/src/generated/locales/zh-CN.ts
new file mode 100644
index 0000000..f3d472e
--- /dev/null
+++ b/packages/search-widget/src/generated/locales/zh-CN.ts
@@ -0,0 +1,20 @@
+
+ // Do not modify this file by hand!
+ // Re-generate this file by running lit-localize
+
+
+
+
+ /* eslint-disable no-irregular-whitespace */
+ /* eslint-disable @typescript-eslint/no-explicit-any */
+
+ export const templates = {
+ 's5e8250fb85d64c23': `关闭`,
+'sa84142fc34654130': `没有搜索结果`,
+'sad5f82f8364e5a1c': `输入关键词以搜索`,
+'sb4f1dffbb6be6302': `清空`,
+'sb85774dc5d18ff0f': `确认`,
+'sbce70cbdb856635e': `最近搜索`,
+'sfc63e31ac7c956ed': `选择`,
+ };
+
\ No newline at end of file
diff --git a/packages/search-widget/src/generated/locales/zh-TW.ts b/packages/search-widget/src/generated/locales/zh-TW.ts
new file mode 100644
index 0000000..65fef31
--- /dev/null
+++ b/packages/search-widget/src/generated/locales/zh-TW.ts
@@ -0,0 +1,20 @@
+
+ // Do not modify this file by hand!
+ // Re-generate this file by running lit-localize
+
+
+
+
+ /* eslint-disable no-irregular-whitespace */
+ /* eslint-disable @typescript-eslint/no-explicit-any */
+
+ export const templates = {
+ 's5e8250fb85d64c23': `關閉`,
+'sa84142fc34654130': `沒有搜尋結果`,
+'sad5f82f8364e5a1c': `輸入關鍵字以搜尋`,
+'sb4f1dffbb6be6302': `清空`,
+'sb85774dc5d18ff0f': `確認`,
+'sbce70cbdb856635e': `最近搜尋`,
+'sfc63e31ac7c956ed': `選擇`,
+ };
+
\ No newline at end of file
diff --git a/packages/search-widget/src/index.ts b/packages/search-widget/src/index.ts
index ab42f8a..2173eac 100644
--- a/packages/search-widget/src/index.ts
+++ b/packages/search-widget/src/index.ts
@@ -1,4 +1,5 @@
import { SearchForm } from './search-form';
import { SearchModal } from './search-modal';
+import './locale';
export { SearchForm, SearchModal };
diff --git a/packages/search-widget/src/locale/index.ts b/packages/search-widget/src/locale/index.ts
new file mode 100644
index 0000000..54c90da
--- /dev/null
+++ b/packages/search-widget/src/locale/index.ts
@@ -0,0 +1,34 @@
+import { configureLocalization, LocaleModule } from '@lit/localize';
+import * as templates_es from '../generated/locales/es';
+import * as templates_zh_CN from '../generated/locales/zh-CN';
+import * as templates_zh_TW from '../generated/locales/zh-TW';
+import { allLocales, sourceLocale, targetLocales } from '../generated/locale-codes';
+
+const localizedTemplates = new Map([
+ ['es', templates_es],
+ ['zh-CN', templates_zh_CN],
+ ['zh-TW', templates_zh_TW],
+]);
+
+const { setLocale } = configureLocalization({
+ sourceLocale,
+ targetLocales,
+ loadLocale: async (locale) => localizedTemplates.get(locale) as LocaleModule,
+});
+
+setLocale(getLocale());
+
+function getLanguageFromCookie() {
+ const match = document.cookie.match(new RegExp('(^| )language=([^;]+)'));
+ const matchedLanguage = allLocales.find((locale) => locale === match?.[2]);
+ return matchedLanguage;
+}
+
+function getLanguageFromBrowser() {
+ const language = allLocales.find((locale) => locale === navigator.language);
+ return language;
+}
+
+export function getLocale() {
+ return getLanguageFromCookie() || getLanguageFromBrowser() || sourceLocale;
+}
diff --git a/packages/search-widget/src/search-form.ts b/packages/search-widget/src/search-form.ts
index f5fae63..6277a6f 100644
--- a/packages/search-widget/src/search-form.ts
+++ b/packages/search-widget/src/search-form.ts
@@ -5,12 +5,9 @@ import { customElement, property, state } from 'lit/decorators.js';
import { Ref, createRef, ref } from 'lit/directives/ref.js';
import { unsafeHTML } from 'lit/directives/unsafe-html.js';
import { DebouncedFunc, debounce, uniqBy } from 'lodash-es';
-import {
- HISTORY_KEY,
- MAX_HISTORY_ITEMS,
- SHORTCUT_HELP_LIST,
-} from './constants';
+import { HISTORY_KEY, MAX_HISTORY_ITEMS } from './constants';
import baseStyles from './styles/base';
+import { msg } from '@lit/localize';
@customElement('search-form')
export class SearchForm extends LitElement {
@@ -65,7 +62,7 @@ export class SearchForm extends LitElement {
>
- ${SHORTCUT_HELP_LIST.map(
+ ${[
+ {
+ text: html`${msg('Select')}`,
+ kbdIcons: ['i-lucide-arrow-up', 'i-lucide-arrow-down'],
+ },
+ {
+ text: html`${msg('Confirm')}`,
+ kbdIcons: ['i-lucide-corner-down-left'],
+ },
+ {
+ text: html`${msg('Close')}`,
+ kbdIcons: ['i-mdi-keyboard-esc'],
+ },
+ ].map(
(item) => html`
${item.kbdIcons.map(
@@ -127,7 +137,7 @@ export class SearchForm extends LitElement {
renderEmpty() {
return html`
- 没有搜索结果
+ ${msg('No search results')}
`;
}
@@ -136,12 +146,14 @@ export class SearchForm extends LitElement {
${this.historyHits.length
? html`
-
搜索历史
+
+ ${msg('Recent')}
+
- 清除历史
+ ${msg('Clear')}
diff --git a/packages/search-widget/xliff/es.xlf b/packages/search-widget/xliff/es.xlf
new file mode 100644
index 0000000..b783762
--- /dev/null
+++ b/packages/search-widget/xliff/es.xlf
@@ -0,0 +1,35 @@
+
+
+
+
+
+ Select
+ Seleccionar
+
+
+ Confirm
+ Confirmar
+
+
+ Close
+ Cerrar
+
+
+ Enter keywords to search
+ Introducir palabras clave para buscar
+
+
+ No search results
+ Sin resultados de búsqueda
+
+
+ Recent
+ Recientes
+
+
+ Clear
+ Borrar
+
+
+
+
diff --git a/packages/search-widget/xliff/zh-CN.xlf b/packages/search-widget/xliff/zh-CN.xlf
new file mode 100644
index 0000000..9fa98e7
--- /dev/null
+++ b/packages/search-widget/xliff/zh-CN.xlf
@@ -0,0 +1,35 @@
+
+
+
+
+
+ Select
+ 选择
+
+
+ Confirm
+ 确认
+
+
+ Close
+ 关闭
+
+
+ Enter keywords to search
+ 输入关键词以搜索
+
+
+ No search results
+ 没有搜索结果
+
+
+ Recent
+ 最近搜索
+
+
+ Clear
+ 清空
+
+
+
+
diff --git a/packages/search-widget/xliff/zh-TW.xlf b/packages/search-widget/xliff/zh-TW.xlf
new file mode 100644
index 0000000..761a7c9
--- /dev/null
+++ b/packages/search-widget/xliff/zh-TW.xlf
@@ -0,0 +1,35 @@
+
+
+
+
+
+ Select
+ 選擇
+
+
+ Confirm
+ 確認
+
+
+ Close
+ 關閉
+
+
+ Enter keywords to search
+ 輸入關鍵字以搜尋
+
+
+ No search results
+ 沒有搜尋結果
+
+
+ Recent
+ 最近搜尋
+
+
+ Clear
+ 清空
+
+
+
+
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index b5e10c1..1c2e3f2 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -38,6 +38,9 @@ importers:
packages/search-widget:
dependencies:
+ '@lit/localize':
+ specifier: ^0.12.2
+ version: 0.12.2
lit:
specifier: ^3.2.0
version: 3.2.0
@@ -54,6 +57,9 @@ importers:
'@julr/unocss-preset-forms':
specifier: ^0.1.0
version: 0.1.0(unocss@0.61.9(postcss@8.4.41)(rollup@4.20.0)(vite@5.3.5(@types/node@18.19.43)))
+ '@lit/localize-tools':
+ specifier: ^0.8.0
+ version: 0.8.0
'@types/lodash-es':
specifier: ^4.17.12
version: 4.17.12
@@ -586,6 +592,13 @@ packages:
'@lit-labs/ssr-dom-shim@1.2.0':
resolution: {integrity: sha512-yWJKmpGE6lUURKAaIltoPIE/wrbY3TEkqQt+X0m+7fQNnAv0keydnYvbiJFP1PnMhizmIWRWOG5KLhYyc/xl+g==}
+ '@lit/localize-tools@0.8.0':
+ resolution: {integrity: sha512-18HY8Ln8ZhSW2CYlXY9+CgDeEoxIY4dBvJ7W5fOe5262NvWEQghMgEC01WT9SQm4Non9C42aDGEYLEegw2ZBhw==}
+ hasBin: true
+
+ '@lit/localize@0.12.2':
+ resolution: {integrity: sha512-Qv9kvgJKDq/JVSwXOxuWvQnnOBysHA99ti9im9a4fImCmx+fto+XXcUYQbjZHqiueEEc4V20PcRDPO+1g/6seQ==}
+
'@lit/reactive-element@2.0.4':
resolution: {integrity: sha512-GFn91inaUa2oHLak8awSIigYz0cU0Payr1rcFsrkf5OJ5eSPxElyZfKh0f2p9FsTiZWXQdWGJeXZICEfXXYSXQ==}
@@ -622,6 +635,9 @@ packages:
resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==}
engines: {node: '>= 8'}
+ '@parse5/tools@0.3.0':
+ resolution: {integrity: sha512-zxRyTHkqb7WQMV8kTNBKWb1BeOFUKXBXTBWuxg9H9hfvQB3IwP6Iw2U75Ia5eyRxPNltmY7E8YAlz6zWwUnjKg==}
+
'@pkgr/core@0.1.1':
resolution: {integrity: sha512-cq8o4cWH0ibXh9VGi5P20Tu9XF/0fFXl9EUinr9QfTM7a7p0oTA4iJRCQWppXR1Pg8dSM0UCItCkPwsk9qWWYA==}
engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0}
@@ -987,6 +1003,10 @@ packages:
'@vue/shared@3.4.36':
resolution: {integrity: sha512-fdPLStwl1sDfYuUftBaUVn2pIrVFDASYerZSrlBvVBfylObPA1gtcWJHy5Ox8jLEJ524zBibss488Q3SZtU1uA==}
+ '@xmldom/xmldom@0.8.10':
+ resolution: {integrity: sha512-2WALfTl4xo2SkGCYRt6rDTFfk9R1czmBvUQy12gK2KuRKIpWEhcbbzy8EZXtz/jkRqHX8bFEc6FC1HjX4TUWYw==}
+ engines: {node: '>=10.0.0'}
+
acorn-jsx@5.3.2:
resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==}
peerDependencies:
@@ -1109,6 +1129,9 @@ packages:
engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}
hasBin: true
+ buffer-from@1.1.2:
+ resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==}
+
bundle-require@5.0.0:
resolution: {integrity: sha512-GuziW3fSSmopcx4KRymQEJVbZUfqlCqcq7dvs6TYwKRZiegK/2buMxQTPs6MGlNv50wms1699qYO54R8XfRX4w==}
engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
@@ -1297,6 +1320,10 @@ packages:
emoji-regex@8.0.0:
resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==}
+ entities@4.5.0:
+ resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==}
+ engines: {node: '>=0.12'}
+
entities@5.0.0:
resolution: {integrity: sha512-BeJFvFRJddxobhvEdm5GqHzRV/X+ACeuw0/BuuxsCh1EUZcAIz8+kYmBp/LrQuloy6K1f3a0M7+IhmZ7QnkISA==}
engines: {node: '>=0.12'}
@@ -1334,6 +1361,7 @@ packages:
eslint@8.57.0:
resolution: {integrity: sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
+ deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options.
hasBin: true
espree@9.6.1:
@@ -1447,6 +1475,10 @@ packages:
resolution: {integrity: sha512-GMBAbW9antB8iZRHLoGw0b3HANt57diZYFO/HL1JGIC1MjKrdmhxvrJbupnVvpys0zsz7yBApXdQyfepKly2kA==}
engines: {node: '>=0.10.0'}
+ fs-extra@10.1.0:
+ resolution: {integrity: sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==}
+ engines: {node: '>=12'}
+
fs-extra@7.0.1:
resolution: {integrity: sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==}
engines: {node: '>=6 <7 || >=8'}
@@ -1719,6 +1751,12 @@ packages:
jsonfile@4.0.0:
resolution: {integrity: sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==}
+ jsonfile@6.1.0:
+ resolution: {integrity: sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==}
+
+ jsonschema@1.4.1:
+ resolution: {integrity: sha512-S6cATIPVv1z0IlxdN+zUk5EPjkGCdnhN4wVSBlvoUO1tOLJootbo9CquNJmbIh4yikWHiUedhRYrNPn1arpEmQ==}
+
keyv@4.5.4:
resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==}
@@ -1848,6 +1886,9 @@ packages:
resolution: {integrity: sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==}
engines: {node: '>=16 || 14 >=14.17'}
+ minimist@1.2.8:
+ resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==}
+
mixin-deep@1.3.2:
resolution: {integrity: sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==}
engines: {node: '>=0.10.0'}
@@ -1950,6 +1991,9 @@ packages:
parse5@5.1.0:
resolution: {integrity: sha512-fxNG2sQjHvlVAYmzBZS9YlDp6PTSSDwa98vkD4QgVDDCAo84z5X1t5XyJQ62ImdLXx5NdIIfihey6xpum9/gRQ==}
+ parse5@7.2.1:
+ resolution: {integrity: sha512-BuBYQYlv1ckiPdQi/ohiivi9Sagc9JG+Ozs0r7b/0iK3sKmrb0b9FdWdBbOdx6hBCM/F9Ir82ofnBhtZOjCRPQ==}
+
pascalcase@0.1.1:
resolution: {integrity: sha512-XHXfu/yOQRy9vYOtUDVMN60OEJjW013GoObG1o+xwQTpB9eYJX/BjXMsdW13ZDPruFhYYn0AG22w0xgQMwl3Nw==}
engines: {node: '>=0.10.0'}
@@ -2158,6 +2202,9 @@ packages:
resolution: {integrity: sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==}
deprecated: See https://github.com/lydell/source-map-resolve#deprecated
+ source-map-support@0.5.21:
+ resolution: {integrity: sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==}
+
source-map-url@0.4.1:
resolution: {integrity: sha512-cPiFOTLUKvJFIg4SKVScy4ilPPW6rFgMgfuZJPNoDuMs3nC1HbMUycBoJw77xFIp6z1UJQJOfx6C9GMH80DiTw==}
deprecated: See https://github.com/lydell/source-map-url#deprecated
@@ -2311,6 +2358,10 @@ packages:
resolution: {integrity: sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==}
engines: {node: '>= 4.0.0'}
+ universalify@2.0.1:
+ resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==}
+ engines: {node: '>= 10.0.0'}
+
unocss@0.61.9:
resolution: {integrity: sha512-D7nEObT1lhCUwXU5MoQ2Msh5S5g1EHVVSqDNM2ODs6dqWSboDCsRTPZQiyQmV9vCobrjYcvAFno9ZAgO7pvurw==}
engines: {node: '>=14'}
@@ -2890,6 +2941,24 @@ snapshots:
'@lit-labs/ssr-dom-shim@1.2.0': {}
+ '@lit/localize-tools@0.8.0':
+ dependencies:
+ '@lit/localize': 0.12.2
+ '@parse5/tools': 0.3.0
+ '@xmldom/xmldom': 0.8.10
+ fast-glob: 3.3.2
+ fs-extra: 10.1.0
+ jsonschema: 1.4.1
+ lit: 3.2.0
+ minimist: 1.2.8
+ parse5: 7.2.1
+ source-map-support: 0.5.21
+ typescript: 5.5.4
+
+ '@lit/localize@0.12.2':
+ dependencies:
+ lit: 3.2.0
+
'@lit/reactive-element@2.0.4':
dependencies:
'@lit-labs/ssr-dom-shim': 1.2.0
@@ -2948,6 +3017,10 @@ snapshots:
'@nodelib/fs.scandir': 2.1.5
fastq: 1.17.1
+ '@parse5/tools@0.3.0':
+ dependencies:
+ parse5: 7.2.1
+
'@pkgr/core@0.1.1': {}
'@polka/url@1.0.0-next.25': {}
@@ -3427,6 +3500,8 @@ snapshots:
'@vue/shared@3.4.36': {}
+ '@xmldom/xmldom@0.8.10': {}
+
acorn-jsx@5.3.2(acorn@8.11.3):
dependencies:
acorn: 8.11.3
@@ -3556,6 +3631,8 @@ snapshots:
node-releases: 2.0.18
update-browserslist-db: 1.1.0(browserslist@4.23.3)
+ buffer-from@1.1.2: {}
+
bundle-require@5.0.0(esbuild@0.23.0):
dependencies:
esbuild: 0.23.0
@@ -3728,6 +3805,8 @@ snapshots:
emoji-regex@8.0.0: {}
+ entities@4.5.0: {}
+
entities@5.0.0: {}
esbuild@0.21.5:
@@ -3981,6 +4060,12 @@ snapshots:
dependencies:
map-cache: 0.2.2
+ fs-extra@10.1.0:
+ dependencies:
+ graceful-fs: 4.2.11
+ jsonfile: 6.1.0
+ universalify: 2.0.1
+
fs-extra@7.0.1:
dependencies:
graceful-fs: 4.2.11
@@ -4219,6 +4304,14 @@ snapshots:
optionalDependencies:
graceful-fs: 4.2.11
+ jsonfile@6.1.0:
+ dependencies:
+ universalify: 2.0.1
+ optionalDependencies:
+ graceful-fs: 4.2.11
+
+ jsonschema@1.4.1: {}
+
keyv@4.5.4:
dependencies:
json-buffer: 3.0.1
@@ -4365,6 +4458,8 @@ snapshots:
dependencies:
brace-expansion: 2.0.1
+ minimist@1.2.8: {}
+
mixin-deep@1.3.2:
dependencies:
for-in: 1.0.2
@@ -4478,6 +4573,10 @@ snapshots:
parse5@5.1.0: {}
+ parse5@7.2.1:
+ dependencies:
+ entities: 4.5.0
+
pascalcase@0.1.1: {}
path-browserify@1.0.1: {}
@@ -4669,6 +4768,11 @@ snapshots:
source-map-url: 0.4.1
urix: 0.1.0
+ source-map-support@0.5.21:
+ dependencies:
+ buffer-from: 1.1.2
+ source-map: 0.6.1
+
source-map-url@0.4.1: {}
source-map@0.5.7: {}
@@ -4799,6 +4903,8 @@ snapshots:
universalify@0.1.2: {}
+ universalify@2.0.1: {}
+
unocss@0.61.9(postcss@8.4.41)(rollup@4.20.0)(vite@5.3.5(@types/node@18.19.43)):
dependencies:
'@unocss/astro': 0.61.9(rollup@4.20.0)(vite@5.3.5(@types/node@18.19.43))